View Javadoc
1   package gboat2.base.view.jsp;
2   
3   import gboat2.base.view.GboatViewUtil;
4   import gboat2.base.view.components.Selectable;
5   
6   import javax.servlet.http.HttpServletRequest;
7   import javax.servlet.http.HttpServletResponse;
8   
9   import org.apache.struts2.components.Component;
10  import org.apache.struts2.views.jsp.ui.AbstractUITag;
11  
12  import com.opensymphony.xwork2.util.ValueStack;
13  
14  /**
15   * @see gboat2.base.view.components.Selectable
16   * 
17   * @author <a href="mailto:[email protected]">何明旺</a>
18   * @since 3.0
19   * @date 2014年5月5日
20   */
21  public class SelectableTag extends AbstractUITag {
22  
23      private static final long serialVersionUID = 1L;
24      
25      protected String appendTo;
26      protected String autoRefresh;
27      protected String cancel;
28      protected String delay;
29      protected String disabled;
30      protected String distance;
31      protected String filter;
32      protected String tolerance;
33  
34      protected String onSelectedTopics;
35      protected String onSelectingTopics;
36      protected String onStartTopics;
37      protected String onStopTopics;
38      protected String onUnselectedTopics;
39      protected String onUnselectingTopics;
40      
41      @Override
42      public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
43          return new Selectable(stack, req, res);
44      }
45  
46      @Override
47      protected void populateParams() {
48          super.populateParams();
49          GboatViewUtil.populateParams(this, component);
50      }
51  
52      public void setAppendTo(String appendTo) {
53          this.appendTo = appendTo;
54      }
55  
56      public void setAutoRefresh(String autoRefresh) {
57          this.autoRefresh = autoRefresh;
58      }
59  
60      public void setCancel(String cancel) {
61          this.cancel = cancel;
62      }
63  
64      public void setDelay(String delay) {
65          this.delay = delay;
66      }
67  
68      public void setDisabled(String disabled) {
69          this.disabled = disabled;
70      }
71  
72      public void setDistance(String distance) {
73          this.distance = distance;
74      }
75  
76      public void setFilter(String filter) {
77          this.filter = filter;
78      }
79  
80      public void setTolerance(String tolerance) {
81          this.tolerance = tolerance;
82      }
83  
84      public void setOnSelectedTopics(String onSelectedTopics) {
85          this.onSelectedTopics = onSelectedTopics;
86      }
87  
88      public void setOnSelectingTopics(String onSelectingTopics) {
89          this.onSelectingTopics = onSelectingTopics;
90      }
91  
92      public void setOnStartTopics(String onStartTopics) {
93          this.onStartTopics = onStartTopics;
94      }
95  
96      public void setOnStopTopics(String onStopTopics) {
97          this.onStopTopics = onStopTopics;
98      }
99  
100     public void setOnUnselectedTopics(String onUnselectedTopics) {
101         this.onUnselectedTopics = onUnselectedTopics;
102     }
103 
104     public void setOnUnselectingTopics(String onUnselectingTopics) {
105         this.onUnselectingTopics = onUnselectingTopics;
106     }
107 
108 }