View Javadoc
1   package gboat2.base.view.jsp;
2   
3   import gboat2.base.view.GboatViewUtil;
4   import gboat2.base.view.components.Droppable;
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.Droppable
16   * @author <a href="mailto:[email protected]">何明旺</a>
17   * @since 3.0
18   * @date 2014年5月4日
19   */
20  public class DroppableTag extends AbstractUITag {
21  
22      private static final long serialVersionUID = 1L;
23      
24      protected String accept;
25      protected String activeClass;
26      protected String addClasses;
27      protected String disabled;
28      protected String greedy;
29      protected String hoverClass;
30      protected String scope;
31      protected String tolerance;
32  
33      protected String onActivateTopics;
34      protected String onDeactivateTopics;
35      protected String onDropTopics;
36      protected String onOutTopics;
37      protected String onOverTopics;
38      
39      @Override
40      public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
41          return new Droppable(stack, req, res);
42      }
43  
44      @Override
45      protected void populateParams() {
46          super.populateParams();
47          GboatViewUtil.populateParams(this, component);
48      }
49  
50      public void setAccept(String accept) {
51          this.accept = accept;
52      }
53  
54      public void setActiveClass(String activeClass) {
55          this.activeClass = activeClass;
56      }
57  
58      public void setAddClasses(String addClasses) {
59          this.addClasses = addClasses;
60      }
61  
62      public void setDisabled(String disabled) {
63          this.disabled = disabled;
64      }
65  
66      public void setGreedy(String greedy) {
67          this.greedy = greedy;
68      }
69  
70      public void setHoverClass(String hoverClass) {
71          this.hoverClass = hoverClass;
72      }
73  
74      public void setScope(String scope) {
75          this.scope = scope;
76      }
77  
78      public void setTolerance(String tolerance) {
79          this.tolerance = tolerance;
80      }
81  
82      public void setOnActivateTopics(String onActivateTopics) {
83          this.onActivateTopics = onActivateTopics;
84      }
85  
86      public void setOnDeactivateTopics(String onDeactivateTopics) {
87          this.onDeactivateTopics = onDeactivateTopics;
88      }
89  
90      public void setOnDropTopics(String onDropTopics) {
91          this.onDropTopics = onDropTopics;
92      }
93  
94      public void setOnOutTopics(String onOutTopics) {
95          this.onOutTopics = onOutTopics;
96      }
97  
98      public void setOnOverTopics(String onOverTopics) {
99          this.onOverTopics = onOverTopics;
100     }
101 
102 }