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