1
2
3
4
5 package gboat2.base.view.jsp;
6
7 import gboat2.base.view.GboatViewUtil;
8 import gboat2.base.view.components.Button;
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.ui.AbstractUITag;
15
16 import com.opensymphony.xwork2.util.ValueStack;
17
18
19
20
21
22
23
24 public class ButtonTag extends AbstractUITag {
25
26 private static final long serialVersionUID = -1;
27
28
29 protected String type;
30
31
32 protected String category;
33
34
35 protected String size;
36
37
38 protected String block;
39
40
41 protected String active;
42
43
44 protected String loadingValue;
45
46
47 protected String code;
48
49 @Override
50 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
51 return new Button(stack, req, res);
52 }
53
54 @Override
55 protected void populateParams() {
56 super.populateParams();
57 GboatViewUtil.populateParams(this, component);
58 }
59
60 public void setType(String type) {
61 this.type = type;
62 }
63
64 public void setCategory(String category) {
65 this.category = category;
66 }
67
68 public void setSize(String size) {
69 this.size = size;
70 }
71
72 public void setBlock(String block) {
73 this.block = block;
74 }
75
76 public void setActive(String active) {
77 this.active = active;
78 }
79
80 public void setLoadingValue(String loadingValue) {
81 this.loadingValue = loadingValue;
82 }
83
84 public void setCode(String code) {
85 this.code = code;
86 }
87 }