View Javadoc
1   package fr.ifremer.dali.ui.swing.content.manage.program.locations.updatePeriod;
2   
3   import fr.ifremer.dali.dto.referential.DepartmentDTO;
4   import fr.ifremer.dali.ui.swing.DaliUIContext;
5   import fr.ifremer.dali.ui.swing.content.manage.program.locations.LocationsTableUIModel;
6   import fr.ifremer.dali.ui.swing.util.DaliUI;
7   import fr.ifremer.quadrige3.ui.swing.ApplicationUI;
8   import fr.ifremer.quadrige3.ui.swing.ApplicationUIUtil;
9   import fr.ifremer.quadrige3.ui.swing.component.bean.ExtendedComboBox;
10  import fr.ifremer.quadrige3.ui.swing.component.date.JLocalDatePicker;
11  import java.awt.BorderLayout;
12  import java.awt.Container;
13  import java.awt.Dialog;
14  import java.awt.Dialog.ModalityType;
15  import java.awt.Frame;
16  import java.awt.GraphicsConfiguration;
17  import java.awt.GridBagConstraints;
18  import java.awt.GridLayout;
19  import java.awt.Insets;
20  import java.awt.Window;
21  import java.awt.event.ActionEvent;
22  import java.awt.event.ActionListener;
23  import java.util.ArrayList;
24  import java.util.HashMap;
25  import java.util.List;
26  import java.util.Map;
27  import java.util.TreeMap;
28  import javax.swing.BorderFactory;
29  import javax.swing.JButton;
30  import javax.swing.JDialog;
31  import javax.swing.JLabel;
32  import javax.swing.JPanel;
33  import jaxx.runtime.JAXXBinding;
34  import jaxx.runtime.JAXXContext;
35  import jaxx.runtime.JAXXObject;
36  import jaxx.runtime.JAXXObjectDescriptor;
37  import jaxx.runtime.JAXXUtil;
38  import jaxx.runtime.SwingUtil;
39  import jaxx.runtime.context.DefaultJAXXContext;
40  import jaxx.runtime.swing.Table;
41  import org.apache.commons.logging.Log;
42  import org.apache.commons.logging.LogFactory;
43  import static org.nuiton.i18n.I18n.t;
44  
45  public class UpdatePeriodUI extends JDialog implements DaliUI<UpdatePeriodUIModel, UpdatePeriodUIHandler>, JAXXObject {
46  
47      /*-----------------------------------------------------------------------*/
48      /*------------------------- Other static fields -------------------------*/
49      /*-----------------------------------------------------------------------*/
50  
51      private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAALVWz28bRRSeuLFTJ2mcH1AKbaXSFBUEGreCQ6WUUtrUIpVDI5JIVX2A8e7EmTI7M52dbTdERfwBIHHnAjcOXJC4cUIcOHPggvgXEOLAFfFmd70/nPWPqCIHxzvvfd/73puZb/3dn6jqa/TyQxKGWAfCMI/iu+/ev3+v+5A6Zp36jmbKSI3iv6kKqnTQnJuu+watdtoW3kzgzdvSU1JQkUOvtdGsbw449fcpNQadLyIc329up+G1UAW6z5qKKmP9+u+/Kl+6n31TQShUoK4BrVwYh8o6mW6jCnMNWoZKj0mTE9EDGZqJHug9Zdduc+L77xOPPkKfopk2qimigcygi5O3HHFE+FAZNO8ywmUvoG1GA4N29zRme5p6VGOXcIYDhv0noAA7UhggxB4RpEex0rKniYe5dIhhUvg4UC4xdItqJl28m3vY3VAqKlgzqOpJl3KDHvwvdTYteVbs5KW7W0RQfgVGaqcXJiXiVZtUT3NnLu2QLqeQeqawYTEiitnMRgpY8A3RZh2qt0nXtlQsES3a1OUU0UgRd1wGO2LQ27kpPAqIq1mPvpkfRbKL2DYJnDADbvFbzPmY6iL7PBVuqsauvVCMn0ricW27+NIAgU88xakeRtCPw9nqymNo71Ii8J0QNtWlbgS+JcMBathrfuCboaWTeIS2a6vFeH+jr9rnpeI+zTtEOJTfCoyBk4VWCrsUr9rMV1PA3GM4j24WeSMJa3S2cDLAJHBmEtktnuqgqg5gGY5S56ivfACh2FHODDiKJYyi/55e+e3HP35o9W1kEWo/X5qac0G43nBXFNWG2dKN2EMCw3hzk6i1Dqr7lIOFRhZ5rkTYdhIGcVBvycKxheP3iL8PFNWZ33/6+fRHv55AlRaa5ZK4LWLzN1Dd7GuYguRuqN65GSmaf3LSCrfa4Kp8GJe+J1rSCaB87dDogD4NYQjnSoaQKunWf/lnZfv7m/1BTIGwF4emZ8OoPkA1JjgTNHLUxCxLHXRO+TRwZWaKZTaJwCgXB69f4jNvRZ/XjvR9wqA6TIV9Yq0DjG+PcN/+N8zY59XI9QbdDavIyXwMWZrGdknAW6btvMLAVroezcF+u4EG7FuNkVSBm8LtFWtZ81k6HPCjp7YODeFtcnm0uBRXpmjAF4+nqXFYcKlM0SujFSWo0gnlffF4ahYO85aXibkyZjwWBPayTuHtbDzwwFJdebs9rq68H2a6mqN1JaAxsvJWPE7WNOSzq9fEpqCeFMwx6GwkAcwfnnHsvNhLo7NgGKBow77jUS0Op+qXj0LBjI2UfIepnWEppT3kLf/4PZzPV4leBvbtO6wL4jhUmbSL58rAg32UJpV1kn8XjWsEjLbGyYGEZLRwHRjJhS4TLhzEG0eop+zn7CSMXand+KfGF+Usi2NZ7PLnz8QAp9/+itg5UHQEz8WJlHw1guHyM/fy2gS9TDMn/mUxhOP1iVR8O4IBA8N/vIn16UoNAAA=";
52      private static final Log log = LogFactory.getLog(UpdatePeriodUI.class);
53      private static final long serialVersionUID = 1L;
54  
55      /*-----------------------------------------------------------------------*/
56      /*--------------------------- Internal states ---------------------------*/
57      /*-----------------------------------------------------------------------*/
58  
59      protected List<Object> $activeBindings = new ArrayList<Object>();
60      protected Map<String, Object> $bindingSources = new HashMap<String, Object>();
61      protected final Map<String, JAXXBinding> $bindings = new TreeMap<String, JAXXBinding>();
62      protected Map<String, Object> $objectMap = new HashMap<String, Object>();
63      protected Map<?, ?> $previousValues = new HashMap<Object, Object>();
64      private boolean allComponentsCreated;
65      protected final JAXXContext delegateContext = new DefaultJAXXContext();
66  
67      /*-----------------------------------------------------------------------*/
68      /*------------------------ Protected components  ------------------------*/
69      /*-----------------------------------------------------------------------*/
70  
71      protected ExtendedComboBox<DepartmentDTO> analystCombo;
72      protected JLabel analystLabel;
73      protected JButton cancelButton;
74      protected UpdatePeriodUI dialogueLieu = this;
75      protected JLocalDatePicker endDateEditor;
76      protected JLabel endDateLabel;
77      protected final UpdatePeriodUIHandler handler = createHandler();
78      protected UpdatePeriodUIModel model;
79      protected ExtendedComboBox<DepartmentDTO> samplerCombo;
80      protected JLabel samplerLabel;
81      protected JLocalDatePicker startDateEditor;
82      protected JLabel startDateLabel;
83      protected JButton validButton;
84  
85      /*-----------------------------------------------------------------------*/
86      /*------------------------- Private components  -------------------------*/
87      /*-----------------------------------------------------------------------*/
88  
89      private JPanel $JPanel0;
90      private JPanel $JPanel1;
91      private Table $Table0;
92  
93      /*-----------------------------------------------------------------------*/
94      /*---------------------------- Constructors  ----------------------------*/
95      /*-----------------------------------------------------------------------*/
96  
97      public UpdatePeriodUI(DaliUIContext context) {
98          super(context.getMainUI());
99          			ApplicationUIUtil.setApplicationContext(this, context);
100             $initialize();
101     }
102 
103     public UpdatePeriodUI(Window param0) {
104         super(param0);
105         $initialize();
106     }
107 
108     public UpdatePeriodUI(JAXXContext parentContext, Window param1) {
109         super(param1);
110         JAXXUtil.initContext(this, parentContext);
111         $initialize();
112     }
113 
114     public UpdatePeriodUI(Dialog param0, String param1, boolean param2, GraphicsConfiguration param3) {
115         super(param0 ,param1 ,param2 ,param3);
116         $initialize();
117     }
118 
119     public UpdatePeriodUI(JAXXContext parentContext, Dialog param1, String param2, boolean param3, GraphicsConfiguration param4) {
120         super(param1 ,param2 ,param3 ,param4);
121         JAXXUtil.initContext(this, parentContext);
122         $initialize();
123     }
124 
125     public UpdatePeriodUI(Dialog param0, String param1, boolean param2) {
126         super(param0 ,param1 ,param2);
127         $initialize();
128     }
129 
130     public UpdatePeriodUI(JAXXContext parentContext, Dialog param1, String param2, boolean param3) {
131         super(param1 ,param2 ,param3);
132         JAXXUtil.initContext(this, parentContext);
133         $initialize();
134     }
135 
136     public UpdatePeriodUI(Dialog param0, String param1) {
137         super(param0 ,param1);
138         $initialize();
139     }
140 
141     public UpdatePeriodUI(JAXXContext parentContext, Dialog param1, String param2) {
142         super(param1 ,param2);
143         JAXXUtil.initContext(this, parentContext);
144         $initialize();
145     }
146 
147     public UpdatePeriodUI(Window param0, String param1, ModalityType param2, GraphicsConfiguration param3) {
148         super(param0 ,param1 ,param2 ,param3);
149         $initialize();
150     }
151 
152     public UpdatePeriodUI(JAXXContext parentContext, Window param1, String param2, ModalityType param3, GraphicsConfiguration param4) {
153         super(param1 ,param2 ,param3 ,param4);
154         JAXXUtil.initContext(this, parentContext);
155         $initialize();
156     }
157 
158     public UpdatePeriodUI(Window param0, String param1, ModalityType param2) {
159         super(param0 ,param1 ,param2);
160         $initialize();
161     }
162 
163     public UpdatePeriodUI(JAXXContext parentContext, Window param1, String param2, ModalityType param3) {
164         super(param1 ,param2 ,param3);
165         JAXXUtil.initContext(this, parentContext);
166         $initialize();
167     }
168 
169     public UpdatePeriodUI(Window param0, String param1) {
170         super(param0 ,param1);
171         $initialize();
172     }
173 
174     public UpdatePeriodUI(JAXXContext parentContext, Window param1, String param2) {
175         super(param1 ,param2);
176         JAXXUtil.initContext(this, parentContext);
177         $initialize();
178     }
179 
180     public UpdatePeriodUI(Window param0, ModalityType param1) {
181         super(param0 ,param1);
182         $initialize();
183     }
184 
185     public UpdatePeriodUI(JAXXContext parentContext, Window param1, ModalityType param2) {
186         super(param1 ,param2);
187         JAXXUtil.initContext(this, parentContext);
188         $initialize();
189     }
190 
191     public UpdatePeriodUI(Frame param0, String param1) {
192         super(param0 ,param1);
193         $initialize();
194     }
195 
196     public UpdatePeriodUI(JAXXContext parentContext, Frame param1, String param2) {
197         super(param1 ,param2);
198         JAXXUtil.initContext(this, parentContext);
199         $initialize();
200     }
201 
202     public UpdatePeriodUI(Frame param0, boolean param1) {
203         super(param0 ,param1);
204         $initialize();
205     }
206 
207     public UpdatePeriodUI(JAXXContext parentContext, Frame param1, boolean param2) {
208         super(param1 ,param2);
209         JAXXUtil.initContext(this, parentContext);
210         $initialize();
211     }
212 
213     public UpdatePeriodUI(Frame param0) {
214         super(param0);
215         $initialize();
216     }
217 
218     public UpdatePeriodUI(JAXXContext parentContext, Frame param1) {
219         super(param1);
220         JAXXUtil.initContext(this, parentContext);
221         $initialize();
222     }
223 
224     public UpdatePeriodUI() {
225         $initialize();
226     }
227 
228     public UpdatePeriodUI(JAXXContext parentContext) {
229         JAXXUtil.initContext(this, parentContext);
230         $initialize();
231     }
232 
233     public UpdatePeriodUI(Dialog param0, boolean param1) {
234         super(param0 ,param1);
235         $initialize();
236     }
237 
238     public UpdatePeriodUI(JAXXContext parentContext, Dialog param1, boolean param2) {
239         super(param1 ,param2);
240         JAXXUtil.initContext(this, parentContext);
241         $initialize();
242     }
243 
244     public UpdatePeriodUI(Dialog param0) {
245         super(param0);
246         $initialize();
247     }
248 
249     public UpdatePeriodUI(JAXXContext parentContext, Dialog param1) {
250         super(param1);
251         JAXXUtil.initContext(this, parentContext);
252         $initialize();
253     }
254 
255     public UpdatePeriodUI(Frame param0, String param1, boolean param2, GraphicsConfiguration param3) {
256         super(param0 ,param1 ,param2 ,param3);
257         $initialize();
258     }
259 
260     public UpdatePeriodUI(JAXXContext parentContext, Frame param1, String param2, boolean param3, GraphicsConfiguration param4) {
261         super(param1 ,param2 ,param3 ,param4);
262         JAXXUtil.initContext(this, parentContext);
263         $initialize();
264     }
265 
266     public UpdatePeriodUI(Frame param0, String param1, boolean param2) {
267         super(param0 ,param1 ,param2);
268         $initialize();
269     }
270 
271     public UpdatePeriodUI(JAXXContext parentContext, Frame param1, String param2, boolean param3) {
272         super(param1 ,param2 ,param3);
273         JAXXUtil.initContext(this, parentContext);
274         $initialize();
275     }
276 
277     /*-----------------------------------------------------------------------*/
278     /*--------------------------- Statics methods ---------------------------*/
279     /*-----------------------------------------------------------------------*/
280 
281     public static JAXXObjectDescriptor $getJAXXObjectDescriptor() {
282         return JAXXUtil.decodeCompressedJAXXObjectDescriptor($jaxxObjectDescriptor);
283     }
284 
285     /*-----------------------------------------------------------------------*/
286     /*---------------------- JAXXObject implementation ----------------------*/
287     /*-----------------------------------------------------------------------*/
288 
289     @Override
290     public void applyDataBinding(String $binding) {
291         if (allComponentsCreated && $bindings.containsKey($binding)) {
292             getDataBinding($binding).applyDataBinding();
293         }
294         processDataBinding($binding);
295     }
296 
297     @Override
298     public void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
299         super.firePropertyChange(propertyName, oldValue, newValue);
300     }
301 
302     @Override
303     public Map<String, Object> get$objectMap() {
304         return $objectMap;
305     }
306 
307     @Override
308     public JAXXBinding getDataBinding(String bindingId) {
309         return $bindings.get(bindingId);
310     }
311 
312     @Override
313     public JAXXBinding[] getDataBindings() {
314         return $bindings.values().toArray(new JAXXBinding[$bindings.size()]);
315     }
316 
317     @Override
318     public Object getObjectById(String id) {
319         return $objectMap.get(id);
320     }
321 
322     @Override
323     public void processDataBinding(String $binding, boolean $force) {
324         if (!$force && $activeBindings.contains($binding)) { 
325             return;
326         }
327         $activeBindings.add($binding);
328         try {
329             if (allComponentsCreated && $bindings.containsKey($binding)) {
330                 getDataBinding($binding).processDataBinding();
331             }
332         } finally {
333             $activeBindings.remove($binding);
334         }
335     }
336 
337     @Override
338     public void processDataBinding(String $binding) {
339         processDataBinding($binding, false);
340     }
341 
342     @Override
343     public void registerDataBinding(JAXXBinding binding) {
344         $bindings.put(binding.getId(), binding);
345     }
346 
347     @Override
348     public void removeDataBinding(String $binding) {
349         if (allComponentsCreated && $bindings.containsKey($binding)) {
350             getDataBinding($binding).removeDataBinding();
351         }
352     }
353 
354     /*-----------------------------------------------------------------------*/
355     /*--------------------- JAXXContext implementation  ---------------------*/
356     /*-----------------------------------------------------------------------*/
357 
358     @Override
359     public <T> T getContextValue(Class<T> clazz) {
360         return delegateContext.getContextValue(clazz, null);
361     }
362 
363     @Override
364     public <T> T getContextValue(Class<T> clazz, String name) {
365         return delegateContext.getContextValue(clazz, name);
366     }
367 
368     @Override
369     public JAXXContext getDelegateContext() {
370         return delegateContext;
371     }
372 
373     @Override
374     public <O extends Container> O getParentContainer(Class<O> clazz) {
375         return SwingUtil.getParentContainer(this, clazz);
376     }
377 
378     @Override
379     public <O extends Container> O getParentContainer(Object source, Class<O> clazz) {
380         return SwingUtil.getParentContainer(source, clazz);
381     }
382 
383     @Override
384     public <T> void removeContextValue(Class<T> clazz) {
385         delegateContext.removeContextValue(clazz, null);
386     }
387 
388     @Override
389     public <T> void removeContextValue(Class<T> clazz, String name) {
390         delegateContext.removeContextValue(clazz, name);
391     }
392 
393     @Override
394     public <T> void setContextValue(T o) {
395         delegateContext.setContextValue(o, null);
396     }
397 
398     @Override
399     public <T> void setContextValue(T o, String name) {
400         delegateContext.setContextValue(o, name);
401     }
402 
403     /*-----------------------------------------------------------------------*/
404     /*---------------------------- Event methods ----------------------------*/
405     /*-----------------------------------------------------------------------*/
406 
407     public void doActionPerformed__on__cancelButton(ActionEvent event) {
408         if (log.isDebugEnabled()) {
409             log.debug(event);
410         }
411         handler.cancel();
412     }
413 
414     public void doActionPerformed__on__validButton(ActionEvent event) {
415         if (log.isDebugEnabled()) {
416             log.debug(event);
417         }
418         handler.valid();
419     }
420 
421     /*-----------------------------------------------------------------------*/
422     /*----------------------- Public acessor methods  -----------------------*/
423     /*-----------------------------------------------------------------------*/
424 
425     public ExtendedComboBox<DepartmentDTO> getAnalystCombo() {
426         return analystCombo;
427     }
428 
429     public JLabel getAnalystLabel() {
430         return analystLabel;
431     }
432 
433     public JButton getCancelButton() {
434         return cancelButton;
435     }
436 
437     public JLocalDatePicker getEndDateEditor() {
438         return endDateEditor;
439     }
440 
441     public JLabel getEndDateLabel() {
442         return endDateLabel;
443     }
444 
445     public UpdatePeriodUIHandler getHandler() {
446         return handler;
447     }
448 
449     public UpdatePeriodUIModel getModel() {
450         return model;
451     }
452 
453     public ExtendedComboBox<DepartmentDTO> getSamplerCombo() {
454         return samplerCombo;
455     }
456 
457     public JLabel getSamplerLabel() {
458         return samplerLabel;
459     }
460 
461     public JLocalDatePicker getStartDateEditor() {
462         return startDateEditor;
463     }
464 
465     public JLabel getStartDateLabel() {
466         return startDateLabel;
467     }
468 
469     public JButton getValidButton() {
470         return validButton;
471     }
472 
473     /*-----------------------------------------------------------------------*/
474     /*--------------------- Protected acessors methods  ---------------------*/
475     /*-----------------------------------------------------------------------*/
476 
477     protected JPanel get$JPanel0() {
478         return $JPanel0;
479     }
480 
481     protected JPanel get$JPanel1() {
482         return $JPanel1;
483     }
484 
485     protected Table get$Table0() {
486         return $Table0;
487     }
488 
489     /*-----------------------------------------------------------------------*/
490     /*--------------------- Components creation methods ---------------------*/
491     /*-----------------------------------------------------------------------*/
492 
493     protected void addChildrenToDialogueLieu() {
494         if (!allComponentsCreated) {
495             return;
496         }
497         add($JPanel0);
498     }
499 
500     protected void createAnalystCombo() {
501         $objectMap.put("analystCombo", analystCombo = new ExtendedComboBox<DepartmentDTO>(this));
502         
503         analystCombo.setName("analystCombo");
504     }
505 
506     protected void createAnalystLabel() {
507         $objectMap.put("analystLabel", analystLabel = new JLabel());
508         
509         analystLabel.setName("analystLabel");
510         analystLabel.setText(t("dali.program.location.periods.analystDepartment"));
511     }
512 
513     protected void createCancelButton() {
514         $objectMap.put("cancelButton", cancelButton = new JButton());
515         
516         cancelButton.setName("cancelButton");
517         cancelButton.setText(t("dali.common.cancel"));
518         cancelButton.setToolTipText(t("dali.common.cancel"));
519         cancelButton.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__cancelButton"));
520     }
521 
522     protected void createEndDateEditor() {
523         $objectMap.put("endDateEditor", endDateEditor = new JLocalDatePicker());
524         
525         endDateEditor.setName("endDateEditor");
526         endDateEditor.putClientProperty("selectOnFocus", true);
527     }
528 
529     protected void createEndDateLabel() {
530         $objectMap.put("endDateLabel", endDateLabel = new JLabel());
531         
532         endDateLabel.setName("endDateLabel");
533         endDateLabel.setText(t("dali.program.location.periods.endDate"));
534     }
535 
536     protected UpdatePeriodUIHandler createHandler() {
537         return new UpdatePeriodUIHandler();
538     }
539 
540     protected void createModel() {
541         $objectMap.put("model", model = getContextValue(UpdatePeriodUIModel.class));
542     }
543 
544     protected void createSamplerCombo() {
545         $objectMap.put("samplerCombo", samplerCombo = new ExtendedComboBox<DepartmentDTO>(this));
546         
547         samplerCombo.setName("samplerCombo");
548     }
549 
550     protected void createSamplerLabel() {
551         $objectMap.put("samplerLabel", samplerLabel = new JLabel());
552         
553         samplerLabel.setName("samplerLabel");
554         samplerLabel.setText(t("dali.program.location.periods.samplingDepartment"));
555     }
556 
557     protected void createStartDateEditor() {
558         $objectMap.put("startDateEditor", startDateEditor = new JLocalDatePicker());
559         
560         startDateEditor.setName("startDateEditor");
561         startDateEditor.putClientProperty("selectOnFocus", true);
562     }
563 
564     protected void createStartDateLabel() {
565         $objectMap.put("startDateLabel", startDateLabel = new JLabel());
566         
567         startDateLabel.setName("startDateLabel");
568         startDateLabel.setText(t("dali.program.location.periods.startDate"));
569     }
570 
571     protected void createValidButton() {
572         $objectMap.put("validButton", validButton = new JButton());
573         
574         validButton.setName("validButton");
575         validButton.setText(t("dali.common.validate"));
576         validButton.setToolTipText(t("dali.common.validate"));
577         validButton.addActionListener(JAXXUtil.getEventListener(ActionListener.class, "actionPerformed", this, "doActionPerformed__on__validButton"));
578     }
579 
580     /*-----------------------------------------------------------------------*/
581     /*------------------------ Internal jaxx methods ------------------------*/
582     /*-----------------------------------------------------------------------*/
583 
584     private void $completeSetup() {
585         allComponentsCreated = true;
586         if (log.isDebugEnabled()) {
587             log.debug(this);
588         }
589         addChildrenToDialogueLieu();
590         // inline complete setup of $JPanel0
591         $JPanel0.add($Table0);
592         $JPanel0.add($JPanel1, BorderLayout.PAGE_END);
593         // inline complete setup of $Table0
594         $Table0.add(startDateLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, 10, 1, new Insets(3, 3, 3, 3), 0, 0));
595         $Table0.add(startDateEditor, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, 10, 1, new Insets(3, 3, 3, 3), 0, 0));
596         $Table0.add(endDateLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, 10, 1, new Insets(3, 3, 3, 3), 0, 0));
597         $Table0.add(endDateEditor, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0, 10, 1, new Insets(3, 3, 3, 3), 0, 0));
598         $Table0.add(samplerLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, 10, 1, new Insets(3, 3, 3, 3), 0, 0));
599         $Table0.add(samplerCombo, new GridBagConstraints(1, 2, 1, 1, 1.0, 0.0, 10, 1, new Insets(3, 3, 3, 3), 0, 0));
600         $Table0.add(analystLabel, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, 10, 1, new Insets(3, 3, 3, 3), 0, 0));
601         $Table0.add(analystCombo, new GridBagConstraints(1, 3, 1, 1, 1.0, 0.0, 10, 1, new Insets(3, 3, 3, 3), 0, 0));
602         // inline complete setup of $JPanel1
603         $JPanel1.add(cancelButton);
604         $JPanel1.add(validButton);
605         
606         // apply 14 property setters
607         $JPanel0.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
608         samplerCombo.setBeanType(DepartmentDTO.class);
609         analystCombo.setBeanType(DepartmentDTO.class);
610         startDateLabel.setLabelFor(startDateEditor);
611         endDateLabel.setLabelFor(endDateEditor);
612         samplerLabel.setLabelFor(samplerCombo);
613         analystLabel.setLabelFor(analystCombo);
614         cancelButton.setMnemonic(SwingUtil.getFirstCharAt(t("dali.common.cancel.mnemonic"),'Z'));
615         cancelButton.setIcon(SwingUtil.createActionIcon("cancel"));
616         validButton.setMnemonic(SwingUtil.getFirstCharAt(t("dali.common.validate.mnemonic"),'Z'));
617         validButton.setIcon(SwingUtil.createActionIcon("accept"));
618         // late initializer
619         dialogueLieu.pack();
620     }
621 
622     private void $initialize() {
623         if (allComponentsCreated) {
624             return;
625         }
626         if (log.isDebugEnabled()) {
627             log.debug(this);
628         }
629         handler.beforeInit(this);
630         $objectMap.put("dialogueLieu", dialogueLieu);
631         createModel();
632         // inline creation of $JPanel0
633         $objectMap.put("$JPanel0", $JPanel0 = new JPanel());
634         
635         $JPanel0.setName("$JPanel0");
636         $JPanel0.setLayout(new BorderLayout());
637         // inline creation of $Table0
638         $objectMap.put("$Table0", $Table0 = new Table());
639         
640         $Table0.setName("$Table0");
641         createStartDateLabel();
642         createStartDateEditor();
643         createEndDateLabel();
644         createEndDateEditor();
645         createSamplerLabel();
646         createSamplerCombo();
647         createAnalystLabel();
648         createAnalystCombo();
649         // inline creation of $JPanel1
650         $objectMap.put("$JPanel1", $JPanel1 = new JPanel());
651         
652         $JPanel1.setName("$JPanel1");
653         $JPanel1.setLayout(new GridLayout(1,0));
654         createCancelButton();
655         createValidButton();
656         // inline creation of dialogueLieu
657         setName("dialogueLieu");
658         dialogueLieu.getContentPane().setLayout(new BorderLayout());
659         setResizable(false);
660         setTitle(t("dali.program.location.periods.titre"));
661         setModal(true);
662         
663         $completeSetup();
664         handler.afterInit(this);
665     }
666 
667 }