View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2014年6月26日 下午1:13:17
4    */
5   package gboat2.base.view.jsp;
6   
7   import gboat2.base.view.components.Attach;
8   
9   import javax.servlet.http.HttpServletRequest;
10  import javax.servlet.http.HttpServletResponse;
11  
12  import org.apache.struts2.components.Component;
13  
14  import com.opensymphony.xwork2.util.ValueStack;
15  
16  /**
17   * @see Attach
18   * @date 2014年6月26日
19   * @author <a href="mailto:[email protected]">何明旺</a>
20   * @since 3.0.0-SNAPSHOT
21   */
22  public class AttachTag extends AbstractAttachTag {
23  
24      private static final long serialVersionUID = 1904115256861121844L;
25  
26      protected String attachMap;
27      protected String downloadUrl;
28  
29      protected String chunkSize;
30      protected String multiSelection;
31      protected String preventDuplicates;
32      protected String uniqueNames;
33      protected String rename;
34      protected String sortable;
35      protected String multipleQueues;
36      
37      @Override
38      public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
39          return new Attach(stack, req, res);
40      }
41  
42      public void setAttachMap(String attachMap) {
43          this.attachMap = attachMap;
44      }
45  
46      public void setDownloadUrl(String downloadUrl) {
47          this.downloadUrl = downloadUrl;
48      }
49  
50      public void setChunkSize(String chunkSize) {
51          this.chunkSize = chunkSize;
52      }
53  
54      public void setMultiSelection(String multiSelection) {
55          this.multiSelection = multiSelection;
56      }
57  
58      public void setPreventDuplicates(String preventDuplicates) {
59          this.preventDuplicates = preventDuplicates;
60      }
61  
62      public void setUniqueNames(String uniqueNames) {
63          this.uniqueNames = uniqueNames;
64      }
65  
66      public void setRename(String rename) {
67          this.rename = rename;
68      }
69  
70      public void setSortable(String sortable) {
71          this.sortable = sortable;
72      }
73  
74      public void setMultipleQueues(String multipleQueues) {
75          this.multipleQueues = multipleQueues;
76      }
77  
78  }