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