1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.struts2.views.jsp.ui;
19
20 import javax.servlet.http.HttpServletRequest;
21 import javax.servlet.http.HttpServletResponse;
22
23 import org.apache.struts2.components.Component;
24 import org.apache.struts2.components.UpDownSelect;
25
26 import com.opensymphony.xwork2.util.ValueStack;
27
28 /***
29 * @see UpDownSelect
30 */
31 public class UpDownSelectTag extends SelectTag {
32
33 private static final long serialVersionUID = -8136573053799541353L;
34
35 protected String allowMoveUp;
36 protected String allowMoveDown;
37 protected String allowSelectAll;
38
39 protected String moveUpLabel;
40 protected String moveDownLabel;
41 protected String selectAllLabel;
42
43
44 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
45 return new UpDownSelect(stack, req, res);
46 }
47
48 protected void populateParams() {
49 super.populateParams();
50
51 UpDownSelect c = (UpDownSelect) component;
52
53 c.setAllowMoveUp(allowMoveUp);
54 c.setAllowMoveDown(allowMoveDown);
55 c.setAllowSelectAll(allowSelectAll);
56
57 c.setMoveUpLabel(moveUpLabel);
58 c.setMoveDownLabel(moveDownLabel);
59 c.setSelectAllLabel(selectAllLabel);
60
61 }
62
63
64 public String getAllowMoveUp() {
65 return allowMoveUp;
66 }
67
68 public void setAllowMoveUp(String allowMoveUp) {
69 this.allowMoveUp = allowMoveUp;
70 }
71
72
73
74 public String getAllowMoveDown() {
75 return allowMoveDown;
76 }
77
78 public void setAllowMoveDown(String allowMoveDown) {
79 this.allowMoveDown = allowMoveDown;
80 }
81
82
83
84 public String getAllowSelectAll() {
85 return allowSelectAll;
86 }
87
88 public void setAllowSelectAll(String allowSelectAll) {
89 this.allowSelectAll = allowSelectAll;
90 }
91
92
93 public String getMoveUpLabel() {
94 return moveUpLabel;
95 }
96
97 public void setMoveUpLabel(String moveUpLabel) {
98 this.moveUpLabel = moveUpLabel;
99 }
100
101
102
103 public String getMoveDownLabel() {
104 return moveDownLabel;
105 }
106
107 public void setMoveDownLabel(String moveDownLabel) {
108 this.moveDownLabel = moveDownLabel;
109 }
110
111
112
113 public String getSelectAllLabel() {
114 return selectAllLabel;
115 }
116
117 public void setSelectAllLabel(String selectAllLabel) {
118 this.selectAllLabel = selectAllLabel;
119 }
120 }