View Javadoc
1   package fr.ifremer.dali.ui.swing.content.manage.filter.equipment;
2   
3   import fr.ifremer.dali.dto.enums.FilterTypeValues;
4   import fr.ifremer.dali.ui.swing.content.manage.filter.FilterUI;
5   import fr.ifremer.dali.ui.swing.content.manage.filter.equipment.element.FilterElementEquipmentUI;
6   import fr.ifremer.quadrige3.ui.swing.ApplicationUI;
7   import java.awt.LayoutManager;
8   import jaxx.runtime.JAXXContext;
9   import jaxx.runtime.JAXXObjectDescriptor;
10  import jaxx.runtime.JAXXUtil;
11  import org.apache.commons.logging.Log;
12  import org.apache.commons.logging.LogFactory;
13  
14  public class FilterEquipmentUI extends FilterUI {
15  
16      /*-----------------------------------------------------------------------*/
17      /*------------------------- Other static fields -------------------------*/
18      /*-----------------------------------------------------------------------*/
19  
20      private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAJ1Sy0rDQBS9jbaKD0QFKYjgYz/5gK6ktpBSFNRCpasxuY1TknQ6M9F0I36Cn6B7l+78Dnf+gog/IE4yprUqKM5uzr3n3HO49+4ZilLAVo8mCRFxpFiIpLHbbh+c9tBVeyhdwbjqCzCvYIHVgXlvhEsFO51mSrc/6Ha1H/J+hNEndqUJc1INA5RniErBxiTDldI+GpUrCY9Frjoy9ZPqzeuLde1d3VoACdfupnSUzd9Y4yTTTbCYp2BFTzqndkAjX9sQLPK138UUqwZUyn0a4gAuYaYJJU6FFlOw/ffImUbGT7iC2S4LFIqWo6DRFYR1BYYoiEcDRmJG5IWeTtx+pLQYCWlEfSSGQnAQMx6meD0Davm/5XCeTSgpWDDNx0OOjo62nKYgaTLiaE0fxbh1ybTWAjQiCk7+7QiNSO7M/CYNClifWI1eOhkvfbyVQgeKItawgnLn+50c6pK5kPKXC0kFs+rb2urjw9N9PT8LeAfT1+6u5gIAAA==";
21      private static final Log log = LogFactory.getLog(FilterEquipmentUI.class);
22      private static final long serialVersionUID = 1L;
23  
24      /*-----------------------------------------------------------------------*/
25      /*--------------------------- Internal states ---------------------------*/
26      /*-----------------------------------------------------------------------*/
27  
28      private boolean allComponentsCreated;
29  
30      /*-----------------------------------------------------------------------*/
31      /*------------------------ Protected components  ------------------------*/
32      /*-----------------------------------------------------------------------*/
33  
34      protected FilterEquipmentUI filterUI = this;
35  
36      /*-----------------------------------------------------------------------*/
37      /*---------------------------- Constructors  ----------------------------*/
38      /*-----------------------------------------------------------------------*/
39  
40      public FilterEquipmentUI(ApplicationUI param0) {
41          super(param0);
42          $initialize();
43      }
44  
45      public FilterEquipmentUI() {
46          $initialize();
47      }
48  
49      public FilterEquipmentUI(JAXXContext param0) {
50          super(param0);
51          $initialize();
52      }
53  
54      public FilterEquipmentUI(boolean param0) {
55          super(param0);
56          $initialize();
57      }
58  
59      public FilterEquipmentUI(JAXXContext param0, boolean param1) {
60          super(param0 ,param1);
61          $initialize();
62      }
63  
64      public FilterEquipmentUI(LayoutManager param0) {
65          super(param0);
66          $initialize();
67      }
68  
69      public FilterEquipmentUI(JAXXContext param0, LayoutManager param1) {
70          super(param0 ,param1);
71          $initialize();
72      }
73  
74      public FilterEquipmentUI(LayoutManager param0, boolean param1) {
75          super(param0 ,param1);
76          $initialize();
77      }
78  
79      public FilterEquipmentUI(JAXXContext param0, LayoutManager param1, boolean param2) {
80          super(param0 ,param1 ,param2);
81          $initialize();
82      }
83  
84      /*-----------------------------------------------------------------------*/
85      /*--------------------------- Statics methods ---------------------------*/
86      /*-----------------------------------------------------------------------*/
87  
88      public static JAXXObjectDescriptor $getJAXXObjectDescriptor() {
89          return JAXXUtil.decodeCompressedJAXXObjectDescriptor($jaxxObjectDescriptor);
90      }
91  
92      /*-----------------------------------------------------------------------*/
93      /*----------------------- Public acessor methods  -----------------------*/
94      /*-----------------------------------------------------------------------*/
95  
96      @Override
97      public FilterElementEquipmentUI getFilterElementUI() {
98          return (FilterElementEquipmentUI) super.getFilterElementUI();
99      }
100 
101     /*-----------------------------------------------------------------------*/
102     /*--------------------- Components creation methods ---------------------*/
103     /*-----------------------------------------------------------------------*/
104 
105     @Override
106     protected void createFilterElementUI() {
107         $objectMap.put("filterElementUI", filterElementUI = new FilterElementEquipmentUI(this));
108         
109         filterElementUI.setName("filterElementUI");
110     }
111 
112     @Override
113     protected void createFilterTypeId() {
114         $objectMap.put("filterTypeId", filterTypeId = FilterTypeValues.SAMPLING_EQUIPMENT.getFilterTypeId());
115     }
116 
117     /*-----------------------------------------------------------------------*/
118     /*------------------------ Internal jaxx methods ------------------------*/
119     /*-----------------------------------------------------------------------*/
120 
121     private void $completeSetup() {
122         allComponentsCreated = true;
123         if (log.isDebugEnabled()) {
124             log.debug(this);
125         }
126     }
127 
128     private void $initialize() {
129         if (allComponentsCreated) {
130             return;
131         }
132         if (log.isDebugEnabled()) {
133             log.debug(this);
134         }
135         $objectMap.put("filterUI", filterUI);
136         // inline creation of filterUI
137         setName("filterUI");
138         
139         $completeSetup();
140     }
141 
142 }