1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.apache.struts2.views.jsp.ui;
23
24 import org.apache.struts2.components.Component;
25 import org.apache.struts2.components.InputTransferSelect;
26 import com.opensymphony.xwork2.util.ValueStack;
27
28 import javax.servlet.http.HttpServletRequest;
29 import javax.servlet.http.HttpServletResponse;
30
31 /***
32 * InputTransferSelect jsp tag.
33 */
34 public class InputTransferSelectTag extends AbstractListTag {
35
36 private static final long serialVersionUID = 250474334495763536L;
37
38 protected String size;
39 protected String multiple;
40
41 protected String allowRemoveAll;
42 protected String allowUpDown;
43
44 protected String leftTitle;
45 protected String rightTitle;
46
47 protected String buttonCssClass;
48 protected String buttonCssStyle;
49
50 protected String addLabel;
51 protected String removeLabel;
52 protected String removeAllLabel;
53 protected String upLabel;
54 protected String downLabel;
55
56 protected String headerKey;
57 protected String headerValue;
58
59 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
60 return new InputTransferSelect(stack, req, res);
61 }
62
63 protected void populateParams() {
64 super.populateParams();
65
66 InputTransferSelect inputTransferSelect = (InputTransferSelect) component;
67 inputTransferSelect.setSize(size);
68 inputTransferSelect.setMultiple(multiple);
69 inputTransferSelect.setAllowRemoveAll(allowRemoveAll);
70 inputTransferSelect.setAllowUpDown(allowUpDown);
71 inputTransferSelect.setLeftTitle(leftTitle);
72 inputTransferSelect.setRightTitle(rightTitle);
73
74 inputTransferSelect.setButtonCssClass(buttonCssClass);
75 inputTransferSelect.setButtonCssStyle(buttonCssStyle);
76
77 inputTransferSelect.setAddLabel(addLabel);
78 inputTransferSelect.setRemoveLabel(removeLabel);
79 inputTransferSelect.setRemoveAllLabel(removeAllLabel);
80 inputTransferSelect.setUpLabel(upLabel);
81 inputTransferSelect.setDownLabel(downLabel);
82 inputTransferSelect.setHeaderKey(headerKey);
83 inputTransferSelect.setHeaderValue(headerValue);
84 }
85
86
87 public String getSize() {
88 return size;
89 }
90
91 public void setSize(String size) {
92 this.size = size;
93 }
94
95 public String getMultiple() {
96 return multiple;
97 }
98
99 public void setMultiple(String multiple) {
100 this.multiple = multiple;
101 }
102
103 public String getAllowRemoveAll() {
104 return allowRemoveAll;
105 }
106
107 public void setAllowRemoveAll(String allowRemoveAll) {
108 this.allowRemoveAll = allowRemoveAll;
109 }
110
111 public String getAllowUpDown() {
112 return allowUpDown;
113 }
114
115 public void setAllowUpDown(String allowUpDown) {
116 this.allowUpDown = allowUpDown;
117 }
118
119 public String getLeftTitle() {
120 return leftTitle;
121 }
122
123 public void setLeftTitle(String leftTitle) {
124 this.leftTitle = leftTitle;
125 }
126
127 public String getRightTitle() {
128 return rightTitle;
129 }
130
131 public void setRightTitle(String rightTitle) {
132 this.rightTitle = rightTitle;
133 }
134
135 public String getButtonCssClass() {
136 return buttonCssClass;
137 }
138
139 public void setButtonCssClass(String buttonCssClass) {
140 this.buttonCssClass = buttonCssClass;
141 }
142
143 public String getButtonCssStyle() {
144 return buttonCssStyle;
145 }
146
147 public void setButtonCssStyle(String buttonCssStyle) {
148 this.buttonCssStyle = buttonCssStyle;
149 }
150
151 public String getAddLabel() {
152 return addLabel;
153 }
154
155 public void setAddLabel(String addLabel) {
156 this.addLabel = addLabel;
157 }
158
159 public String getRemoveLabel() {
160 return removeLabel;
161 }
162
163 public void setRemoveLabel(String removeLabel) {
164 this.removeLabel = removeLabel;
165 }
166
167 public String getRemoveAllLabel() {
168 return removeAllLabel;
169 }
170
171 public void setRemoveAllLabel(String removeAllLabel) {
172 this.removeAllLabel = removeAllLabel;
173 }
174
175 public String getUpLabel() {
176 return upLabel;
177 }
178
179 public void setUpLabel(String upLabel) {
180 this.upLabel = upLabel;
181 }
182
183 public String getDownLabel() {
184 return downLabel;
185 }
186
187 public void setDownLabel(String downLabel) {
188 this.downLabel = downLabel;
189 }
190
191 public String getHeaderKey() {
192 return headerKey;
193 }
194
195 public void setHeaderKey(String headerKey) {
196 this.headerKey = headerKey;
197 }
198
199 public String getHeaderValue() {
200 return headerValue;
201 }
202
203 public void setHeaderValue(String headerValue) {
204 this.headerValue = headerValue;
205 }
206 }