View Javadoc
1   package fr.ifremer.dali.ui.swing.content.manage.filter.department;
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.department.element.FilterElementDepartmentUI;
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 FilterDepartmentUI extends FilterUI {
15  
16      /*-----------------------------------------------------------------------*/
17      /*------------------------- Other static fields -------------------------*/
18      /*-----------------------------------------------------------------------*/
19  
20      private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAJ2Sz0rDQBDGp9FW8Q+ighRE8M99+wA9SbUQCQpqoZDTmkxrSpKuuxNNL+Ij+Ah69+jN5/DmK4j4AuImaRNbBcU9zuz3m+9j5uEVykrCVo/HMZNRSF6A7GC33T4666FDe6gc6QnqS8heyQDDhnk3ryuCHdtK5LWhvNboB6IfYvhFXbdgTtHAR3WOSAQb4wpHqdpJ3q7HIpIjam7qJ+rd+5tx697cGwCx0O6mdJTN31RFkmkLDM8lWNGTLnnN52FX25Be2NV+F5Naw+dKHfIAL+AaZiyoCC41jGD775FTRqqPBcFsx/MJZcsksDqSeR2JAUrmct9jkcfUlZ7OnH5IGsYCHvIuskzCXNTTKUgazbSylxdaphDpjArBQvb9dCDQ1OGWkxwsycZMTe2iLL4uZV/3fcwgBPb/PWFGGXobMicsSlgfW49ePCsWX2ymZENZRrpMULW/38qxbmVXUp24kgSYdj/WVp+fXh6bo9OAT0HNQofqAgAA";
21      private static final Log log = LogFactory.getLog(FilterDepartmentUI.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 FilterDepartmentUI filterUI = this;
35  
36      /*-----------------------------------------------------------------------*/
37      /*---------------------------- Constructors  ----------------------------*/
38      /*-----------------------------------------------------------------------*/
39  
40      public FilterDepartmentUI(ApplicationUI param0) {
41          super(param0);
42          $initialize();
43      }
44  
45      public FilterDepartmentUI() {
46          $initialize();
47      }
48  
49      public FilterDepartmentUI(JAXXContext param0) {
50          super(param0);
51          $initialize();
52      }
53  
54      public FilterDepartmentUI(boolean param0) {
55          super(param0);
56          $initialize();
57      }
58  
59      public FilterDepartmentUI(JAXXContext param0, boolean param1) {
60          super(param0 ,param1);
61          $initialize();
62      }
63  
64      public FilterDepartmentUI(LayoutManager param0) {
65          super(param0);
66          $initialize();
67      }
68  
69      public FilterDepartmentUI(JAXXContext param0, LayoutManager param1) {
70          super(param0 ,param1);
71          $initialize();
72      }
73  
74      public FilterDepartmentUI(LayoutManager param0, boolean param1) {
75          super(param0 ,param1);
76          $initialize();
77      }
78  
79      public FilterDepartmentUI(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 FilterElementDepartmentUI getFilterElementUI() {
98          return (FilterElementDepartmentUI) super.getFilterElementUI();
99      }
100 
101     /*-----------------------------------------------------------------------*/
102     /*--------------------- Components creation methods ---------------------*/
103     /*-----------------------------------------------------------------------*/
104 
105     @Override
106     protected void createFilterElementUI() {
107         $objectMap.put("filterElementUI", filterElementUI = new FilterElementDepartmentUI(this));
108         
109         filterElementUI.setName("filterElementUI");
110     }
111 
112     @Override
113     protected void createFilterTypeId() {
114         $objectMap.put("filterTypeId", filterTypeId = FilterTypeValues.DEPARTMENT.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 }