1 package fr.ifremer.reefdb.ui.swing.content.manage.referential.department.local.replace;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 import fr.ifremer.quadrige3.ui.swing.component.bean.ExtendedComboBox;
28 import fr.ifremer.reefdb.dto.referential.DepartmentDTO;
29 import fr.ifremer.reefdb.ui.swing.content.manage.referential.replace.AbstractReplaceUI;
30 import fr.ifremer.reefdb.ui.swing.util.ReefDbUI;
31 import java.awt.Dialog;
32 import java.awt.Dialog.ModalityType;
33 import java.awt.Frame;
34 import java.awt.GraphicsConfiguration;
35 import java.awt.Window;
36 import jaxx.runtime.JAXXContext;
37 import jaxx.runtime.JAXXObjectDescriptor;
38 import jaxx.runtime.JAXXUtil;
39 import org.apache.commons.logging.Log;
40 import org.apache.commons.logging.LogFactory;
41 import static org.nuiton.i18n.I18n.t;
42
43 public class ReplaceDepartmentUI extends AbstractReplaceUI<DepartmentDTO, ReplaceDepartmentUIModel> implements ReefDbUI<ReplaceDepartmentUIModel, ReplaceDepartmentUIHandler> {
44
45
46
47
48
49 private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAALVTS08TURQ+rRQoiAKNBCMqPuLyNpElPnhJhBRNQBJjF3pn5rZcMp253HtGhhiNP8GfoHs3Ju5cGReuXbgx/gVjXLg1njuddgqMgY1d3Dbn8X3fOf3O2x9QMhoubfM4ZjoKULYEW51/+PC+sy1cXBLG1VJhqKH9KRShWIdhrxs3CFfqNdteTduri2FLhYEIerpnazBkcM8XZksIRDi/v8M1prrRTc/GKtId1K6oPNTXv34WX3kv3xQBYkXq7CjTR3Vlk/TVoCg9hHFiesqrPg+aJEPLoEl6R2xs0efG3OMtsQMvYKAG/YprAkO4fPyRE4ykP1YIZS2Uz12xuYLgNDSTDS1aQjMtRMNzWCSZ2SUBzA0DJDzW4gFvCko3hGWW3GeeIBXYslk/dCmQQrL19vdSN7+5olRC3Y9QaoWe8BGa/590zTJlzOMmjLQratIg7ckJF8IY4WaPjJ2Ie1o2xUyvknShzBE8YHdi0uUJr9PfA45cNwX2gtvMWFYxkipdiBBpPqjYPzZOeVbbUarWcG6fc8iTLPNkZppCHUo6ojDCZP2wjdcp1Tbw5AEDW8Ak+2ei8vXD9/fLHdf2EfeZ3NKeoyM3KR0qoVFa6tNty0Yo/eoaV7N1KBvh08UmFzmVI2wjTZM44huz7cy2s7vcbBFEaeDbx08TT76cgOIyDPkh95a5rV+BMm5p2kLoe7G6PZcoOrk7SO+o1UbOQok+rehCaid90BEsKYhpJ1M5O+kKc8qff1c23s119lIgnWf/WZ7tpvQI+mXgy0Ak95yeau79DisjIi/MTjLvSKH3SlVqpKnknc6bf/wxV8qXLkcZBvOufREuPjt0GO0Ucy3V8ziyeFeTMe2va3DQqcdgHrTH8WBP0fJP3fA48mlHBh75+tYh+IJ9R4/EtOHr9pnJR6gQwl/63WCpNAYAAA==";
50 private static final Log log = LogFactory.getLog(ReplaceDepartmentUI.class);
51 private static final long serialVersionUID = 1L;
52
53
54
55
56
57 private boolean allComponentsCreated;
58
59
60
61
62
63 protected final ReplaceDepartmentUIHandler handler = createHandler();
64 protected ReplaceDepartmentUI replaceUI = this;
65
66
67
68
69
70 public ReplaceDepartmentUI(Frame param0, String param1, boolean param2) {
71 super(param0 ,param1 ,param2);
72 $initialize();
73 }
74
75 public ReplaceDepartmentUI(JAXXContext param0, Frame param1, String param2, boolean param3) {
76 super(param0 ,param1 ,param2 ,param3);
77 $initialize();
78 }
79
80 public ReplaceDepartmentUI(Frame param0, String param1) {
81 super(param0 ,param1);
82 $initialize();
83 }
84
85 public ReplaceDepartmentUI(JAXXContext param0, Frame param1, String param2) {
86 super(param0 ,param1 ,param2);
87 $initialize();
88 }
89
90 public ReplaceDepartmentUI(Frame param0, String param1, boolean param2, GraphicsConfiguration param3) {
91 super(param0 ,param1 ,param2 ,param3);
92 $initialize();
93 }
94
95 public ReplaceDepartmentUI(JAXXContext param0, Frame param1, String param2, boolean param3, GraphicsConfiguration param4) {
96 super(param0 ,param1 ,param2 ,param3 ,param4);
97 $initialize();
98 }
99
100 public ReplaceDepartmentUI(Dialog param0) {
101 super(param0);
102 $initialize();
103 }
104
105 public ReplaceDepartmentUI(JAXXContext param0, Dialog param1) {
106 super(param0 ,param1);
107 $initialize();
108 }
109
110 public ReplaceDepartmentUI(Frame param0, boolean param1) {
111 super(param0 ,param1);
112 $initialize();
113 }
114
115 public ReplaceDepartmentUI(JAXXContext param0, Frame param1, boolean param2) {
116 super(param0 ,param1 ,param2);
117 $initialize();
118 }
119
120 public ReplaceDepartmentUI() {
121 $initialize();
122 }
123
124 public ReplaceDepartmentUI(JAXXContext param0) {
125 super(param0);
126 $initialize();
127 }
128
129 public ReplaceDepartmentUI(Frame param0) {
130 super(param0);
131 $initialize();
132 }
133
134 public ReplaceDepartmentUI(JAXXContext param0, Frame param1) {
135 super(param0 ,param1);
136 $initialize();
137 }
138
139 public ReplaceDepartmentUI(Dialog param0, String param1, boolean param2, GraphicsConfiguration param3) {
140 super(param0 ,param1 ,param2 ,param3);
141 $initialize();
142 }
143
144 public ReplaceDepartmentUI(JAXXContext param0, Dialog param1, String param2, boolean param3, GraphicsConfiguration param4) {
145 super(param0 ,param1 ,param2 ,param3 ,param4);
146 $initialize();
147 }
148
149 public ReplaceDepartmentUI(Window param0) {
150 super(param0);
151 $initialize();
152 }
153
154 public ReplaceDepartmentUI(JAXXContext param0, Window param1) {
155 super(param0 ,param1);
156 $initialize();
157 }
158
159 public ReplaceDepartmentUI(Window param0, ModalityType param1) {
160 super(param0 ,param1);
161 $initialize();
162 }
163
164 public ReplaceDepartmentUI(JAXXContext param0, Window param1, ModalityType param2) {
165 super(param0 ,param1 ,param2);
166 $initialize();
167 }
168
169 public ReplaceDepartmentUI(Window param0, String param1) {
170 super(param0 ,param1);
171 $initialize();
172 }
173
174 public ReplaceDepartmentUI(JAXXContext param0, Window param1, String param2) {
175 super(param0 ,param1 ,param2);
176 $initialize();
177 }
178
179 public ReplaceDepartmentUI(Window param0, String param1, ModalityType param2) {
180 super(param0 ,param1 ,param2);
181 $initialize();
182 }
183
184 public ReplaceDepartmentUI(JAXXContext param0, Window param1, String param2, ModalityType param3) {
185 super(param0 ,param1 ,param2 ,param3);
186 $initialize();
187 }
188
189 public ReplaceDepartmentUI(Window param0, String param1, ModalityType param2, GraphicsConfiguration param3) {
190 super(param0 ,param1 ,param2 ,param3);
191 $initialize();
192 }
193
194 public ReplaceDepartmentUI(JAXXContext param0, Window param1, String param2, ModalityType param3, GraphicsConfiguration param4) {
195 super(param0 ,param1 ,param2 ,param3 ,param4);
196 $initialize();
197 }
198
199 public ReplaceDepartmentUI(Dialog param0, boolean param1) {
200 super(param0 ,param1);
201 $initialize();
202 }
203
204 public ReplaceDepartmentUI(JAXXContext param0, Dialog param1, boolean param2) {
205 super(param0 ,param1 ,param2);
206 $initialize();
207 }
208
209 public ReplaceDepartmentUI(Dialog param0, String param1) {
210 super(param0 ,param1);
211 $initialize();
212 }
213
214 public ReplaceDepartmentUI(JAXXContext param0, Dialog param1, String param2) {
215 super(param0 ,param1 ,param2);
216 $initialize();
217 }
218
219 public ReplaceDepartmentUI(Dialog param0, String param1, boolean param2) {
220 super(param0 ,param1 ,param2);
221 $initialize();
222 }
223
224 public ReplaceDepartmentUI(JAXXContext param0, Dialog param1, String param2, boolean param3) {
225 super(param0 ,param1 ,param2 ,param3);
226 $initialize();
227 }
228
229
230
231
232
233 public static JAXXObjectDescriptor $getJAXXObjectDescriptor() {
234 return JAXXUtil.decodeCompressedJAXXObjectDescriptor($jaxxObjectDescriptor);
235 }
236
237
238
239
240
241 public ReplaceDepartmentUIHandler getHandler() {
242 return handler;
243 }
244
245 @Override
246 public ReplaceDepartmentUIModel getModel() {
247 return (ReplaceDepartmentUIModel) super.getModel();
248 }
249
250
251
252
253
254 protected ReplaceDepartmentUIHandler createHandler() {
255 return new ReplaceDepartmentUIHandler();
256 }
257
258 @Override
259 protected void createModel() {
260 $objectMap.put("model", model = getContextValue(ReplaceDepartmentUIModel.class));
261 }
262
263 @Override
264 protected void createReplaceButton() {
265 super.createReplaceButton();
266 replaceButton.setName("replaceButton");
267 replaceButton.putClientProperty("applicationAction", ReplaceDepartmentAction.class);
268 }
269
270 @Override
271 protected void createSourceListComboBox() {
272 super.createSourceListComboBox();
273 sourceListComboBox.setName("sourceListComboBox");
274 }
275
276 @Override
277 protected void createTargetListComboBox() {
278 super.createTargetListComboBox();
279 targetListComboBox.setName("targetListComboBox");
280 }
281
282
283
284
285
286 private void $completeSetup() {
287 allComponentsCreated = true;
288 if (log.isDebugEnabled()) {
289 log.debug(this);
290 }
291
292
293 sourceListComboBox.setBeanType(DepartmentDTO.class);
294 targetListComboBox.setBeanType(DepartmentDTO.class);
295
296 replaceUI.pack();
297 }
298
299 private void $initialize() {
300 if (allComponentsCreated) {
301 return;
302 }
303 if (log.isDebugEnabled()) {
304 log.debug(this);
305 }
306 handler.beforeInit(this);
307 $objectMap.put("replaceUI", replaceUI);
308
309 setName("replaceUI");
310 setTitle(t("reefdb.replaceDepartment.title"));
311
312 $completeSetup();
313 handler.afterInit(this);
314 }
315
316 }