1 package fr.ifremer.reefdb.ui.swing.content.manage.filter.user.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.PersonDTO;
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 FilterElementUserUI extends FilterElementUI<PersonDTO> {
38
39 /*-----------------------------------------------------------------------*/
40 /*------------------------- Other static fields -------------------------*/
41 /*-----------------------------------------------------------------------*/
42
43 private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAI1RzUrDQBCeBqugiKAgBRH8uW8eoCepFipBUSkUctomk7ol2ay7G40X8RF8BL179OZzePMVRHwBcZLY1qqge1jYmfm+/eb77l+gbjRsDnmeM51JKxJk+zu93mF/iIHdRRNooWyqoTo1BxwfFsJx3VjY9r0C7n7C3VaaqFSi/IJuejBv7GWM5hTRWlifRgTGuCfjdjNXmR6xjkX9xnr79urchNd3DkCuCnW0ysZfqMkmMx44IrSwTD+dczfmckAytJAD0rtY1FoxN+aAJ3gGVzDnwazimsgsbP1/5ZKjxOfKwlIkYot6L8aExrsdC0eRZiLS9NZMI0Zhn2WCmQuSwYJUWhpjCZd8gKzCsszQhRUDa0/xUafbUYp8WJvygRxmE4cnFtR8qOuMyhYa/s9QjqlVxdH4FkdBWHbfV1eeHp8f2qMM4ANZssWZUwIAAA==";
44 private static final Log log = LogFactory.getLog(FilterElementUserUI.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 FilterElementUserUI filterElementUI = this;
58 protected final FilterElementUserUIHandler handler = createHandler();
59
60 /*-----------------------------------------------------------------------*/
61 /*---------------------------- Constructors ----------------------------*/
62 /*-----------------------------------------------------------------------*/
63
64 public FilterElementUserUI(ApplicationUI param0) {
65 super(param0);
66 $initialize();
67 }
68
69 public FilterElementUserUI(LayoutManager param0, boolean param1) {
70 super(param0 ,param1);
71 $initialize();
72 }
73
74 public FilterElementUserUI(JAXXContext param0, LayoutManager param1, boolean param2) {
75 super(param0 ,param1 ,param2);
76 $initialize();
77 }
78
79 public FilterElementUserUI(boolean param0) {
80 super(param0);
81 $initialize();
82 }
83
84 public FilterElementUserUI(JAXXContext param0, boolean param1) {
85 super(param0 ,param1);
86 $initialize();
87 }
88
89 public FilterElementUserUI() {
90 $initialize();
91 }
92
93 public FilterElementUserUI(JAXXContext param0) {
94 super(param0);
95 $initialize();
96 }
97
98 public FilterElementUserUI(LayoutManager param0) {
99 super(param0);
100 $initialize();
101 }
102
103 public FilterElementUserUI(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 FilterElementUserUIHandler getHandler() {
121 return handler;
122 }
123
124 /*-----------------------------------------------------------------------*/
125 /*--------------------- Components creation methods ---------------------*/
126 /*-----------------------------------------------------------------------*/
127
128 protected FilterElementUserUIHandler createHandler() {
129 return new FilterElementUserUIHandler();
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 }