1 package fr.ifremer.reefdb.ui.swing.content.manage.filter.pmfm.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.pmfm.PmfmDTO;
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 FilterElementPmfmUI extends FilterElementUI<PmfmDTO> {
38
39 /*-----------------------------------------------------------------------*/
40 /*------------------------- Other static fields -------------------------*/
41 /*-----------------------------------------------------------------------*/
42
43 private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAI1Ry0rDQBS9DVZBEUFBCiL42E8+oCupFirBJ4VCVtNkUqdkknHmRuNG/AQ/Qfcu3fkd7vwFEX9AvGnsSwWd3dwz58y55zy8QtUa2OzzPGcmS1AqwfZ3Op3Dbl8EuCtsYKTG1EB5Kg44PiyEo7lF2Pa9gu5+0d1GqnSaiGSCXfdg3uJVLOyZEIiwPs0IrHVPR3A915kZqo5M/aZ69/7m3IY39w5Argt3tMrGX6zxJjMeODJEWKafLrgb86RHNoxMeuR3sZg1Ym7tAVfiHK5hzoNZzQ2JIWz9f+WBxoCfa4SlSMYozF4sFD1vtxCOI8NkZOhumBEiCrssk8xekg0WpAnSM6Z4wnuClVymVaSYKBVYc1LviJB2S2vKYW0qB0qYjRMeR1DxoWoyGiPU/J+lnBBU1lH7VkchOEA/Vleen14em8MO4BOgbF+jUwIAAA==";
44 private static final Log log = LogFactory.getLog(FilterElementPmfmUI.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 FilterElementPmfmUI filterElementUI = this;
58 protected final FilterElementPmfmUIHandler handler = createHandler();
59
60 /*-----------------------------------------------------------------------*/
61 /*---------------------------- Constructors ----------------------------*/
62 /*-----------------------------------------------------------------------*/
63
64 public FilterElementPmfmUI(ApplicationUI param0) {
65 super(param0);
66 $initialize();
67 }
68
69 public FilterElementPmfmUI(LayoutManager param0, boolean param1) {
70 super(param0 ,param1);
71 $initialize();
72 }
73
74 public FilterElementPmfmUI(JAXXContext param0, LayoutManager param1, boolean param2) {
75 super(param0 ,param1 ,param2);
76 $initialize();
77 }
78
79 public FilterElementPmfmUI(boolean param0) {
80 super(param0);
81 $initialize();
82 }
83
84 public FilterElementPmfmUI(JAXXContext param0, boolean param1) {
85 super(param0 ,param1);
86 $initialize();
87 }
88
89 public FilterElementPmfmUI() {
90 $initialize();
91 }
92
93 public FilterElementPmfmUI(JAXXContext param0) {
94 super(param0);
95 $initialize();
96 }
97
98 public FilterElementPmfmUI(LayoutManager param0) {
99 super(param0);
100 $initialize();
101 }
102
103 public FilterElementPmfmUI(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 FilterElementPmfmUIHandler getHandler() {
121 return handler;
122 }
123
124 /*-----------------------------------------------------------------------*/
125 /*--------------------- Components creation methods ---------------------*/
126 /*-----------------------------------------------------------------------*/
127
128 protected FilterElementPmfmUIHandler createHandler() {
129 return new FilterElementPmfmUIHandler();
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 }