View Javadoc
1   package gboat2.base.view.jsp;
2   
3   import gboat2.base.view.GboatViewUtil;
4   import gboat2.base.view.components.Tab;
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 Tab
16   * 
17   * @date 2014年5月26日
18   * @author <a href="mailto:[email protected]">何明旺</a>
19   * @since 3.0.0-SNAPSHOT
20   */
21  public class TabTag extends AbstractClosingTag {
22  
23      private static final long serialVersionUID = 1L;
24  
25      protected String closable;
26      protected String formIds;
27      protected String href;
28      
29      @Override
30      public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
31          return new Tab(stack, req, res);
32      }
33  
34      @Override
35      protected void populateParams() {
36          super.populateParams();
37          GboatViewUtil.populateParams(this, component);
38      }
39  
40      public void setClosable(String closable) {
41          this.closable = closable;
42      }
43  
44      public void setFormIds(String formIds) {
45          this.formIds = formIds;
46      }
47  
48      public void setHref(String href) {
49          this.href = href;
50      }
51  
52  }