1 package gboat2.base.view.jsp;
2
3 import gboat2.base.view.GboatViewUtil;
4 import gboat2.base.view.components.Draggable;
5
6 import javax.servlet.http.HttpServletRequest;
7 import javax.servlet.http.HttpServletResponse;
8
9 import org.apache.struts2.components.Component;
10 import org.apache.struts2.views.jsp.ui.AbstractUITag;
11
12 import com.opensymphony.xwork2.util.ValueStack;
13
14
15
16
17
18
19
20
21 public class DraggableTag extends AbstractUITag {
22
23 private static final long serialVersionUID = 1L;
24
25 protected String addClasses;
26 protected String appendTo;
27 protected String axis;
28 protected String cancel;
29 protected String connectToSortable;
30 protected String containment;
31 protected String cursor;
32 protected String cursorAt;
33 protected String delay;
34 protected String disabled;
35 protected String distance;
36 protected String grid;
37 protected String handle;
38 protected String helper;
39 protected String iframeFix;
40 protected String opacity;
41 protected String refreshPositions;
42 protected String revert;
43 protected String revertDuration;
44 protected String scope;
45 protected String scroll;
46 protected String scrollSensitivity;
47 protected String scrollSpeed;
48 protected String snap;
49 protected String snapMode;
50 protected String snapTolerance;
51 protected String stack;
52 protected String zIndex;
53
54 protected String onDragTopics;
55 protected String onStartTopics;
56 protected String onStopTopics;
57
58 @Override
59 public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
60 return new Draggable(stack, req, res);
61 }
62
63 @Override
64 protected void populateParams() {
65 super.populateParams();
66 GboatViewUtil.populateParams(this, component);
67 }
68
69 public void setAddClasses(String addClasses) {
70 this.addClasses = addClasses;
71 }
72
73 public void setAppendTo(String appendTo) {
74 this.appendTo = appendTo;
75 }
76
77 public void setAxis(String axis) {
78 this.axis = axis;
79 }
80
81 public void setCancel(String cancel) {
82 this.cancel = cancel;
83 }
84
85 public void setConnectToSortable(String connectToSortable) {
86 this.connectToSortable = connectToSortable;
87 }
88
89 public void setContainment(String containment) {
90 this.containment = containment;
91 }
92
93 public void setCursor(String cursor) {
94 this.cursor = cursor;
95 }
96
97 public void setCursorAt(String cursorAt) {
98 this.cursorAt = cursorAt;
99 }
100
101 public void setDelay(String delay) {
102 this.delay = delay;
103 }
104
105 public void setDisabled(String disabled) {
106 this.disabled = disabled;
107 }
108
109 public void setDistance(String distance) {
110 this.distance = distance;
111 }
112
113 public void setGrid(String grid) {
114 this.grid = grid;
115 }
116
117 public void setHandle(String handle) {
118 this.handle = handle;
119 }
120
121 public void setHelper(String helper) {
122 this.helper = helper;
123 }
124
125 public void setIframeFix(String iframeFix) {
126 this.iframeFix = iframeFix;
127 }
128
129 public void setOpacity(String opacity) {
130 this.opacity = opacity;
131 }
132
133 public void setRefreshPositions(String refreshPositions) {
134 this.refreshPositions = refreshPositions;
135 }
136
137 public void setRevert(String revert) {
138 this.revert = revert;
139 }
140
141 public void setRevertDuration(String revertDuration) {
142 this.revertDuration = revertDuration;
143 }
144
145 public void setScope(String scope) {
146 this.scope = scope;
147 }
148
149 public void setScroll(String scroll) {
150 this.scroll = scroll;
151 }
152
153 public void setScrollSensitivity(String scrollSensitivity) {
154 this.scrollSensitivity = scrollSensitivity;
155 }
156
157 public void setScrollSpeed(String scrollSpeed) {
158 this.scrollSpeed = scrollSpeed;
159 }
160
161 public void setSnap(String snap) {
162 this.snap = snap;
163 }
164
165 public void setSnapMode(String snapMode) {
166 this.snapMode = snapMode;
167 }
168
169 public void setSnapTolerance(String snapTolerance) {
170 this.snapTolerance = snapTolerance;
171 }
172
173 public void setStack(String stack) {
174 this.stack = stack;
175 }
176
177 public void setZIndex(String zIndex) {
178 this.zIndex = zIndex;
179 }
180
181 public void setOnDragTopics(String onDragTopics) {
182 this.onDragTopics = onDragTopics;
183 }
184
185 public void setOnStartTopics(String onStartTopics) {
186 this.onStartTopics = onStartTopics;
187 }
188
189 public void setOnStopTopics(String onStopTopics) {
190 this.onStopTopics = onStopTopics;
191 }
192 }