View Javadoc
1   package gboat2.base.view.jsp;
2   
3   import gboat2.base.view.GboatViewUtil;
4   import gboat2.base.view.components.Topic;
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.ComponentTagSupport;
11  
12  import com.opensymphony.xwork2.util.ValueStack;
13  
14  /**
15   * @see gboat2.base.view.components.Topic
16   * @author <a href="mailto:[email protected]">何明旺</a>
17   * @since 3.0
18   * @date 2014年5月4日
19   */
20  public class TopicTag extends ComponentTagSupport {
21  
22      private static final long serialVersionUID = 1L;
23  
24      protected String onBeforeTopics;
25      
26      protected String onAfterValidationTopics;
27      
28      protected String onCompleteTopics;
29      
30      protected String onSuccessTopics;
31      
32      protected String onErrorTopics;
33      
34      protected String onAlwaysTopics;
35      
36      protected String onChangeTopics;
37      
38      protected String onEnableTopics;
39      
40      protected String onDisableTopics;
41  
42      protected String onFocusTopics;
43  
44      protected String onBlurTopics;
45      
46      protected String onShowTopics;
47      
48      protected String onHideTopics;
49      
50      protected String onRemoveTopics;
51  
52      @Override
53      public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
54          return new Topic(stack);
55      }
56      
57      @Override
58      protected void populateParams() {
59          super.populateParams();
60          GboatViewUtil.populateParams(this, component);
61      }
62  
63      public void setOnBeforeTopics(String onBeforeTopics) {
64          this.onBeforeTopics = onBeforeTopics;
65      }
66  
67      public void setOnAfterValidationTopics(String onAfterValidationTopics) {
68          this.onAfterValidationTopics = onAfterValidationTopics;
69      }
70  
71      public void setOnCompleteTopics(String onCompleteTopics) {
72          this.onCompleteTopics = onCompleteTopics;
73      }
74  
75      public void setOnSuccessTopics(String onSuccessTopics) {
76          this.onSuccessTopics = onSuccessTopics;
77      }
78  
79      public void setOnErrorTopics(String onErrorTopics) {
80          this.onErrorTopics = onErrorTopics;
81      }
82  
83      public void setOnAlwaysTopics(String onAlwaysTopics) {
84          this.onAlwaysTopics = onAlwaysTopics;
85      }
86  
87      public void setOnChangeTopics(String onChangeTopics) {
88          this.onChangeTopics = onChangeTopics;
89      }
90  
91      public void setOnEnableTopics(String onEnableTopics) {
92          this.onEnableTopics = onEnableTopics;
93      }
94  
95      public void setOnDisableTopics(String onDisableTopics) {
96          this.onDisableTopics = onDisableTopics;
97      }
98  
99      public void setOnFocusTopics(String onFocusTopics) {
100         this.onFocusTopics = onFocusTopics;
101     }
102 
103     public void setOnBlurTopics(String onBlurTopics) {
104         this.onBlurTopics = onBlurTopics;
105     }
106 
107     public void setOnShowTopics(String onShowTopics) {
108         this.onShowTopics = onShowTopics;
109     }
110 
111     public void setOnHideTopics(String onHideTopics) {
112         this.onHideTopics = onHideTopics;
113     }
114 
115     public void setOnRemoveTopics(String onRemoveTopics) {
116         this.onRemoveTopics = onRemoveTopics;
117     }
118 
119 }