1 package org.wcb.gui.forms;
2
3 import org.wcb.model.vo.LogExportVO;
4
5 import javax.swing.*;
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 public class CSVDataExportSelectForm extends JPanel {
35
36 private JCheckBox jCheckBoxEntryDate;
37 private JCheckBox jCheckBoxRegistration;
38 private JCheckBox jCheckBoxFAAFrom;
39 private JCheckBox jCheckBoxVIA;
40 private JCheckBox jCheckBoxFAATo;
41 private JCheckBox jCheckBoxFlightDuration;
42 private JCheckBox jCheckBoxPIC;
43 private JCheckBox jCheckBoxSIC;
44 private JCheckBox jCheckBoxCrossCountry;
45 private JCheckBox jCheckBoxFlightInstructing;
46 private JCheckBox jCheckBoxSafetyPilot;
47 private JCheckBox jCheckBoxDualReceived;
48 private JCheckBox jCheckBoxSolo;
49 private JCheckBox jCheckBoxDayTakeoff;
50 private JCheckBox jCheckBoxDayLanding;
51 private JCheckBox jCheckBoxNightTakeoff;
52 private JCheckBox jCheckBoxNightLanding;
53 private JCheckBox jCheckBoxInstrumentApproaches;
54 private JCheckBox jCheckBoxConditionNight;
55 private JCheckBox jCheckBoxActualIMC;
56 private JCheckBox jCheckBoxSimulatedIMC;
57 private JCheckBox jCheckBoxFlightSim;
58
59 public CSVDataExportSelectForm() {
60 this.initComponents();
61 }
62
63 private void initComponents() {
64 jCheckBoxEntryDate = new JCheckBox("Log Entry Date");
65 jCheckBoxRegistration = new JCheckBox("AircraftBO Registration");
66 jCheckBoxFAAFrom = new JCheckBox("From Airport");
67 jCheckBoxVIA = new JCheckBox("Via Route");
68 jCheckBoxFAATo = new JCheckBox("To Airport");
69 jCheckBoxFlightDuration = new JCheckBox("Flight Duration");
70 jCheckBoxPIC = new JCheckBox("PIC");
71 jCheckBoxSIC = new JCheckBox("SIC");
72 jCheckBoxCrossCountry = new JCheckBox("Cross Country");
73 jCheckBoxFlightInstructing = new JCheckBox("Flight Instructing");
74 jCheckBoxSafetyPilot = new JCheckBox("Safety Pilot");
75 jCheckBoxDualReceived = new JCheckBox("Dual Received");
76 jCheckBoxSolo = new JCheckBox("Solo");
77 jCheckBoxDayTakeoff = new JCheckBox("# Day Takeoffs");
78 jCheckBoxDayLanding = new JCheckBox("# Day Landings");
79 jCheckBoxNightTakeoff = new JCheckBox("# Night Takeoffs");
80 jCheckBoxNightLanding = new JCheckBox("# Night Landings");
81 jCheckBoxInstrumentApproaches = new JCheckBox("# Approaches");
82 jCheckBoxConditionNight = new JCheckBox("Night Time Flight");
83 jCheckBoxActualIMC = new JCheckBox("Actual IMC");
84 jCheckBoxSimulatedIMC = new JCheckBox("Simulated IMC");
85 jCheckBoxFlightSim = new JCheckBox("Flight Simulator");
86 setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
87 add(jCheckBoxEntryDate);
88 add(jCheckBoxRegistration);
89 add(jCheckBoxFAAFrom);
90 add(jCheckBoxVIA);
91 add(jCheckBoxFAATo);
92 add(jCheckBoxFlightDuration);
93 add(jCheckBoxPIC);
94 add(jCheckBoxSIC);
95 add(jCheckBoxCrossCountry);
96 add(jCheckBoxFlightInstructing);
97 add(jCheckBoxSafetyPilot);
98 add(jCheckBoxDualReceived);
99 add(jCheckBoxSolo);
100 add(jCheckBoxDayTakeoff);
101 add(jCheckBoxDayLanding);
102 add(jCheckBoxNightTakeoff);
103 add(jCheckBoxNightLanding);
104 add(jCheckBoxInstrumentApproaches);
105 add(jCheckBoxConditionNight);
106 add(jCheckBoxActualIMC);
107 add(jCheckBoxSimulatedIMC);
108 add(jCheckBoxFlightSim);
109 }
110
111 public LogExportVO getValueObject() {
112 LogExportVO returnValue = new LogExportVO();
113 returnValue.setEntryDate(this.getjCheckBoxEntryDate());
114 returnValue.setRegistration(this.getjCheckBoxRegistration());
115 returnValue.setFAAFrom(this.getjCheckBoxFAAFrom());
116 returnValue.setVia(this.getjCheckBoxVIA());
117 returnValue.setFAATo(this.getjCheckBoxFAATo());
118 returnValue.setFlightDuration(this.getjCheckBoxFlightDuration());
119 returnValue.setPIC(this.getjCheckBoxPIC());
120 returnValue.setSIC(this.getjCheckBoxSIC());
121 returnValue.setCrossCountry(this.getjCheckBoxCrossCountry());
122 returnValue.setFlightInstructing(this.getjCheckBoxFlightInstructing());
123 returnValue.setSafetyPilot(this.getjCheckBoxSafetyPilot());
124 returnValue.setDualReceived(this.getjCheckBoxDualReceived());
125 returnValue.setSolo(this.getjCheckBoxSolo());
126 returnValue.setDayLanding(this.getjCheckBoxDayLanding());
127 returnValue.setDayTakeoff(this.getjCheckBoxDayTakeoff());
128 returnValue.setNightLanding(this.getjCheckBoxNightLanding());
129 returnValue.setNightTakeoff(this.getjCheckBoxNightTakeoff());
130 returnValue.setConditionNight(this.getjCheckBoxConditionNight());
131 returnValue.setActualIMC(this.getjCheckBoxActualIMC());
132 returnValue.setSimulatedIMC(this.getjCheckBoxSimulatedIMC());
133 returnValue.setFlightSim(this.getjCheckBoxFlightSim());
134 returnValue.setInstrumentApproaches(this.getjCheckBoxInstrumentApproaches());
135 return returnValue;
136 }
137
138 public boolean getjCheckBoxEntryDate() {
139 return jCheckBoxEntryDate.isSelected();
140 }
141
142 public void setjCheckBoxEntryDate(boolean bValue) {
143 this.jCheckBoxEntryDate.setSelected(bValue);
144 }
145
146 public boolean getjCheckBoxRegistration() {
147 return jCheckBoxRegistration.isSelected();
148 }
149
150 public void setjCheckBoxRegistration(boolean bValue) {
151 this.jCheckBoxRegistration.setSelected(bValue);
152 }
153
154 public boolean getjCheckBoxFAAFrom() {
155 return jCheckBoxFAAFrom.isSelected();
156 }
157
158 public void setjCheckBoxFAAFrom(boolean bValue) {
159 this.jCheckBoxFAAFrom.setSelected(bValue);
160 }
161
162 public boolean getjCheckBoxVIA() {
163 return jCheckBoxVIA.isSelected();
164 }
165
166 public void setjCheckBoxVIA(boolean bValue) {
167 this.jCheckBoxVIA.setSelected(bValue);
168 }
169
170 public boolean getjCheckBoxFAATo() {
171 return jCheckBoxFAATo.isSelected();
172 }
173
174 public void setjCheckBoxFAATo(boolean bValue) {
175 this.jCheckBoxFAATo.setSelected(bValue);
176 }
177
178 public boolean getjCheckBoxFlightDuration() {
179 return jCheckBoxFlightDuration.isSelected();
180 }
181
182 public void setjCheckBoxFlightDuration(boolean bValue) {
183 this.jCheckBoxFlightDuration.setSelected(bValue);
184 }
185
186 public boolean getjCheckBoxPIC() {
187 return jCheckBoxPIC.isSelected();
188 }
189
190 public void setjCheckBoxPIC(boolean bValue) {
191 this.jCheckBoxPIC.setSelected(bValue);
192 }
193
194 public boolean getjCheckBoxSIC() {
195 return jCheckBoxSIC.isSelected();
196 }
197
198 public void setjCheckBoxSIC(boolean bValue) {
199 this.jCheckBoxSIC.setSelected(bValue);
200 }
201
202 public boolean getjCheckBoxCrossCountry() {
203 return jCheckBoxCrossCountry.isSelected();
204 }
205
206 public void setjCheckBoxCrossCountry(boolean bValue) {
207 this.jCheckBoxCrossCountry.setSelected(bValue);
208 }
209
210 public boolean getjCheckBoxFlightInstructing() {
211 return jCheckBoxFlightInstructing.isSelected();
212 }
213
214 public void setjCheckBoxFlightInstructing(boolean bValue) {
215 this.jCheckBoxFlightInstructing.setSelected(bValue);
216 }
217
218 public boolean getjCheckBoxSafetyPilot() {
219 return jCheckBoxSafetyPilot.isSelected();
220 }
221
222 public void setjCheckBoxSafetyPilot(boolean bValue) {
223 this.jCheckBoxSafetyPilot.setSelected(bValue);
224 }
225
226 public boolean getjCheckBoxDualReceived() {
227 return jCheckBoxDualReceived.isSelected();
228 }
229
230 public void setjCheckBoxDualReceived(boolean bValue) {
231 this.jCheckBoxDualReceived.setSelected(bValue);
232 }
233
234 public boolean getjCheckBoxSolo() {
235 return jCheckBoxSolo.isSelected();
236 }
237
238 public void setjCheckBoxSolo(boolean bValue) {
239 this.jCheckBoxSolo.setSelected(bValue);
240 }
241
242 public boolean getjCheckBoxDayTakeoff() {
243 return jCheckBoxDayTakeoff.isSelected();
244 }
245
246 public void setjCheckBoxDayTakeoff(boolean bValue) {
247 this.jCheckBoxDayTakeoff.setSelected(bValue);
248 }
249
250 public boolean getjCheckBoxDayLanding() {
251 return jCheckBoxDayLanding.isSelected();
252 }
253
254 public void setjCheckBoxDayLanding(boolean bValue) {
255 this.jCheckBoxDayLanding.setSelected(bValue);
256 }
257
258 public boolean getjCheckBoxNightTakeoff() {
259 return jCheckBoxNightTakeoff.isSelected();
260 }
261
262 public void setjCheckBoxNightTakeoff(boolean bValue) {
263 this.jCheckBoxNightTakeoff.setSelected(bValue);
264 }
265
266 public boolean getjCheckBoxNightLanding() {
267 return jCheckBoxNightLanding.isSelected();
268 }
269
270 public void setjCheckBoxNightLanding(boolean bValue) {
271 this.jCheckBoxNightLanding.setSelected(bValue);
272 }
273
274 public boolean getjCheckBoxInstrumentApproaches() {
275 return jCheckBoxInstrumentApproaches.isSelected();
276 }
277
278 public void setjCheckBoxInstrumentApproaches(boolean bValue) {
279 this.jCheckBoxInstrumentApproaches.setSelected(bValue);
280 }
281
282 public boolean getjCheckBoxConditionNight() {
283 return jCheckBoxConditionNight.isSelected();
284 }
285
286 public void setjCheckBoxConditionNight(boolean bValue) {
287 this.jCheckBoxConditionNight.setSelected(bValue);
288 }
289
290 public boolean getjCheckBoxActualIMC() {
291 return jCheckBoxActualIMC.isSelected();
292 }
293
294 public void setjCheckBoxActualIMC(boolean bValue) {
295 this.jCheckBoxActualIMC.setSelected(bValue);
296 }
297
298 public boolean getjCheckBoxSimulatedIMC() {
299 return jCheckBoxSimulatedIMC.isSelected();
300 }
301
302 public void setjCheckBoxSimulatedIMC(boolean bValue) {
303 this.jCheckBoxSimulatedIMC.setSelected(bValue);
304 }
305
306 public boolean getjCheckBoxFlightSim() {
307 return jCheckBoxFlightSim.isSelected();
308 }
309
310 public void setjCheckBoxFlightSim(boolean bValue) {
311 this.jCheckBoxFlightSim.setSelected(bValue);
312 }
313
314 }