View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2014年5月28日 下午5:09:13
4    */
5   package gboat2.base.view.jsp;
6   
7   import gboat2.base.view.GboatViewUtil;
8   import gboat2.base.view.components.GridOperation;
9   
10  import javax.servlet.http.HttpServletRequest;
11  import javax.servlet.http.HttpServletResponse;
12  
13  import org.apache.struts2.components.Component;
14  import org.apache.struts2.views.jsp.ui.AbstractUITag;
15  
16  import com.opensymphony.xwork2.util.ValueStack;
17  
18  /**
19   * @see GridOperation
20   * @date 2014年5月28日
21   * @author <a href="mailto:[email protected]">何明旺</a>
22   * @since 3.0.0-SNAPSHOT
23   */
24  public class GridOperationTag extends AbstractUITag {
25  
26      private static final long serialVersionUID = 1L;
27  
28      protected String icon;
29      protected String url;
30      protected String target;
31      protected String onClickTopic;
32      protected String options;
33  
34      /* (non-Javadoc)
35       * @see org.apache.struts2.views.jsp.ComponentTagSupport#getBean(com.opensymphony.xwork2.util.ValueStack, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
36       */
37      @Override
38      public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
39          return new GridOperation(stack, req, res);
40      }
41  
42      @Override
43      protected void populateParams() {
44          super.populateParams();
45          GboatViewUtil.populateParams(this, component);
46      }
47  
48      public void setIcon(String icon) {
49          this.icon = icon;
50      }
51  
52      public void setUrl(String url) {
53          this.url = url;
54      }
55  
56      public void setTarget(String target) {
57          this.target = target;
58      }
59  
60      public void setOnClickTopic(String onClickTopic) {
61          this.onClickTopic = onClickTopic;
62      }
63  
64      public void setOptions(String options) {
65          this.options = options;
66      }
67  
68  }