View Javadoc
1   package gboat2.base.view.jsp;
2   
3   import gboat2.base.view.GboatViewUtil;
4   import gboat2.base.view.components.Slider;
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.AbstractClosingTag;
11  
12  import com.opensymphony.xwork2.util.ValueStack;
13  
14  /**
15   * @see Slider
16   * 
17   * @author <a href="mailto:[email protected]">何明旺</a>
18   * @since 3.0
19   * @date 2014年6月9日
20   */
21  public class SliderTag extends AbstractClosingTag {
22  
23      private static final long serialVersionUID = 1L;
24  
25      protected String animate;
26      protected String max;
27      protected String min;
28      protected String orientation;
29      protected String range;
30      protected String step;
31      
32      protected String displayValueElement;
33      
34      protected String onChangeTopics;
35      protected String onSlideTopics;
36      protected String onStartTopics;
37      protected String onStopTopics;
38      
39      @Override
40      public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
41          return new Slider(stack, req, res);
42      }
43  
44      @Override
45      protected void populateParams() {
46          super.populateParams();
47          GboatViewUtil.populateParams(this, component);
48      }
49  
50      public void setAnimate(String animate) {
51          this.animate = animate;
52      }
53  
54      public void setMax(String max) {
55          this.max = max;
56      }
57  
58      public void setMin(String min) {
59          this.min = min;
60      }
61  
62      public void setOrientation(String orientation) {
63          this.orientation = orientation;
64      }
65  
66      public void setRange(String range) {
67          this.range = range;
68      }
69  
70      public void setStep(String step) {
71          this.step = step;
72      }
73  
74      public void setDisplayValueElement(String displayValueElement) {
75          this.displayValueElement = displayValueElement;
76      }
77  
78      public void setOnChangeTopics(String onChangeTopics) {
79          this.onChangeTopics = onChangeTopics;
80      }
81  
82      public void setOnSlideTopics(String onSlideTopics) {
83          this.onSlideTopics = onSlideTopics;
84      }
85  
86      public void setOnStartTopics(String onStartTopics) {
87          this.onStartTopics = onStartTopics;
88      }
89  
90      public void setOnStopTopics(String onStopTopics) {
91          this.onStopTopics = onStopTopics;
92      }
93  
94  }