View Javadoc
1   package fr.ifremer.reefdb.ui.swing.content.manage.filter.taxongroup.element;
2   
3   /*-
4    * #%L
5    * Reef DB :: UI
6    * $Id:$
7    * $HeadURL:$
8    * %%
9    * Copyright (C) 2014 - 2022 Ifremer
10   * %%
11   * This program is free software: you can redistribute it and/or modify
12   * it under the terms of the GNU Affero General Public License as published by
13   * the Free Software Foundation, either version 3 of the License, or
14   * (at your option) any later version.
15   * 
16   * This program is distributed in the hope that it will be useful,
17   * but WITHOUT ANY WARRANTY; without even the implied warranty of
18   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19   * GNU General Public License for more details.
20   * 
21   * You should have received a copy of the GNU Affero General Public License
22   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
23   * #L%
24   */
25  
26  
27  import fr.ifremer.quadrige3.ui.swing.ApplicationUI;
28  import fr.ifremer.reefdb.dto.referential.TaxonGroupDTO;
29  import fr.ifremer.reefdb.ui.swing.content.manage.filter.element.FilterElementUI;
30  import java.awt.LayoutManager;
31  import jaxx.runtime.JAXXContext;
32  import jaxx.runtime.JAXXObjectDescriptor;
33  import jaxx.runtime.JAXXUtil;
34  import org.apache.commons.logging.Log;
35  import org.apache.commons.logging.LogFactory;
36  
37  public class FilterElementTaxonGroupUI extends FilterElementUI<TaxonGroupDTO> {
38  
39      /*-----------------------------------------------------------------------*/
40      /*------------------------- Other static fields -------------------------*/
41      /*-----------------------------------------------------------------------*/
42  
43      private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAI1Ry0rDQBS9DVZBEUFBCiL42E8+oCupVipBQS0UgotpchNTksk4c2PjRvwEP0H3Lt35He78BRF/QJw09qWCzm7umXPm3HMeXqGqFWz2eJ4zlQmKEmQHO53OUbeHHu2i9lQkKVVQnooFlgsL/miuCbZdp6DbX3S7kSYyFSgm2HUH5jVdxajPEYlgfZrhaW2fjOB6LjM1VB2Z+k317v3NuvVv7i2AXBbuzCobf7HGm8w4YEU+wbL56ZLbMRehsaEiERq/i8WsEXOtD3mCF3ANcw7MSq6MGMHW/1ceaAz4uSRYCqKYUO3FmJjn7RbBWaBYFChzV0whBn6XZRHTfWODeakg84wlXPAQWcllxPNUhCrNJMNShzUnVU8LfL/A2y0pTSZrU5mYtNk47XEcFReqKjNjgpr7s6BjA5XV1L5VUwgO0I/Vleenl8fmsA/4BDsZWs1fAgAA";
44      private static final Log log = LogFactory.getLog(FilterElementTaxonGroupUI.class);
45      private static final long serialVersionUID = 1L;
46  
47      /*-----------------------------------------------------------------------*/
48      /*--------------------------- Internal states ---------------------------*/
49      /*-----------------------------------------------------------------------*/
50  
51      private boolean allComponentsCreated;
52  
53      /*-----------------------------------------------------------------------*/
54      /*------------------------ Protected components  ------------------------*/
55      /*-----------------------------------------------------------------------*/
56  
57      protected FilterElementTaxonGroupUI filterElementUI = this;
58      protected final FilterElementTaxonGroupUIHandler handler = createHandler();
59  
60      /*-----------------------------------------------------------------------*/
61      /*---------------------------- Constructors  ----------------------------*/
62      /*-----------------------------------------------------------------------*/
63  
64      public FilterElementTaxonGroupUI(ApplicationUI param0) {
65          super(param0);
66          $initialize();
67      }
68  
69      public FilterElementTaxonGroupUI(LayoutManager param0, boolean param1) {
70          super(param0 ,param1);
71          $initialize();
72      }
73  
74      public FilterElementTaxonGroupUI(JAXXContext param0, LayoutManager param1, boolean param2) {
75          super(param0 ,param1 ,param2);
76          $initialize();
77      }
78  
79      public FilterElementTaxonGroupUI(boolean param0) {
80          super(param0);
81          $initialize();
82      }
83  
84      public FilterElementTaxonGroupUI(JAXXContext param0, boolean param1) {
85          super(param0 ,param1);
86          $initialize();
87      }
88  
89      public FilterElementTaxonGroupUI() {
90          $initialize();
91      }
92  
93      public FilterElementTaxonGroupUI(JAXXContext param0) {
94          super(param0);
95          $initialize();
96      }
97  
98      public FilterElementTaxonGroupUI(LayoutManager param0) {
99          super(param0);
100         $initialize();
101     }
102 
103     public FilterElementTaxonGroupUI(JAXXContext param0, LayoutManager param1) {
104         super(param0 ,param1);
105         $initialize();
106     }
107 
108     /*-----------------------------------------------------------------------*/
109     /*--------------------------- Statics methods ---------------------------*/
110     /*-----------------------------------------------------------------------*/
111 
112     public static JAXXObjectDescriptor $getJAXXObjectDescriptor() {
113         return JAXXUtil.decodeCompressedJAXXObjectDescriptor($jaxxObjectDescriptor);
114     }
115 
116     /*-----------------------------------------------------------------------*/
117     /*----------------------- Public acessor methods  -----------------------*/
118     /*-----------------------------------------------------------------------*/
119 
120     public FilterElementTaxonGroupUIHandler getHandler() {
121         return handler;
122     }
123 
124     /*-----------------------------------------------------------------------*/
125     /*--------------------- Components creation methods ---------------------*/
126     /*-----------------------------------------------------------------------*/
127 
128     protected FilterElementTaxonGroupUIHandler createHandler() {
129         return new FilterElementTaxonGroupUIHandler();
130     }
131 
132     /*-----------------------------------------------------------------------*/
133     /*------------------------ Internal jaxx methods ------------------------*/
134     /*-----------------------------------------------------------------------*/
135 
136     private void $completeSetup() {
137         allComponentsCreated = true;
138         if (log.isDebugEnabled()) {
139             log.debug(this);
140         }
141     }
142 
143     private void $initialize() {
144         if (allComponentsCreated) {
145             return;
146         }
147         if (log.isDebugEnabled()) {
148             log.debug(this);
149         }
150         handler.beforeInit(this);
151         $objectMap.put("filterElementUI", filterElementUI);
152         // inline creation of filterElementUI
153         setName("filterElementUI");
154         
155         $completeSetup();
156         handler.afterInit(this);
157     }
158 
159 }