View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2014年5月21日 下午2:42:17
4    */
5   package gboat2.base.view.jsp;
6   
7   import gboat2.base.view.GboatViewUtil;
8   import gboat2.base.view.components.Label;
9   
10  import javax.servlet.http.HttpServletRequest;
11  import javax.servlet.http.HttpServletResponse;
12  
13  import org.apache.struts2.components.Component;
14  
15  import com.opensymphony.xwork2.util.ValueStack;
16  
17  
18  /**
19   * 创建一个 Label 标签
20   * @date 2014年5月21日
21   * @author <a href="mailto:[email protected]">何明旺</a>
22   * @since 3.0.0-SNAPSHOT
23   * @see Label
24   */
25  public class LabelTag extends org.apache.struts2.views.jsp.ui.LabelTag {
26  
27      private static final long serialVersionUID = 1L;
28  
29      protected String colspan;
30      protected String groupColumns;
31      protected String labelCssClass;
32      protected String labelCssStyle;
33      
34      @Override
35      public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
36          return new Label(stack, req, res);
37      }
38  
39      @Override
40      protected void populateParams() {
41          super.populateParams();
42          GboatViewUtil.populateParams(this, component);
43      }
44  
45      public void setColspan(String colspan) {
46          this.colspan = colspan;
47      }
48      
49      public void setGroupColumns(String groupColumns) {
50          this.groupColumns = groupColumns;
51      }
52      
53      public void setLabelCssClass(String labelCssClass) {
54          this.labelCssClass = labelCssClass;
55      }
56      
57      public void setLabelCssStyle(String labelCssStyle) {
58          this.labelCssStyle = labelCssStyle;
59      }
60      
61  }