root / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / catalogClient / ui / SearchLowerPanel.java @ 3099
History | View | Annotate | Download (27.8 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*
|
19 |
* For more information, contact:
|
20 |
*
|
21 |
* Generalitat Valenciana
|
22 |
* Conselleria d'Infraestructures i Transport
|
23 |
* Av. Blasco Ib??ez, 50
|
24 |
* 46010 VALENCIA
|
25 |
* SPAIN
|
26 |
*
|
27 |
* +34 963862235
|
28 |
* gvsig@gva.es
|
29 |
* www.gvsig.gva.es
|
30 |
*
|
31 |
* or
|
32 |
*
|
33 |
* IVER T.I. S.A
|
34 |
* Salamanca 50
|
35 |
* 46005 Valencia
|
36 |
* Spain
|
37 |
*
|
38 |
* +34 963163400
|
39 |
* dac@iver.es
|
40 |
*/
|
41 |
package es.gva.cit.catalogClient.ui; |
42 |
|
43 |
import es.gva.cit.catalogClient.querys.Coordinates; |
44 |
|
45 |
import java.awt.Color; |
46 |
import java.awt.FlowLayout; |
47 |
import java.awt.GridLayout; |
48 |
|
49 |
import javax.swing.BoxLayout; |
50 |
import javax.swing.ButtonGroup; |
51 |
import javax.swing.JComboBox; |
52 |
import javax.swing.JLabel; |
53 |
import javax.swing.JPanel; |
54 |
import javax.swing.JRadioButton; |
55 |
import javax.swing.JTextField; |
56 |
|
57 |
import javax.swing.border.TitledBorder; |
58 |
/**
|
59 |
* @author Jorge Piera Llodra (piera_jor@gva.es)
|
60 |
*/
|
61 |
public class SearchLowerPanel extends JPanel{ |
62 |
private JPanel panelBotones = null; |
63 |
private JRadioButton exactaButton = null; |
64 |
private JRadioButton cualquieraButton = null; |
65 |
private JRadioButton todasButton = null; |
66 |
private JComboBox categoriaCombo = null; |
67 |
private JComboBox escalaCombo = null; |
68 |
private JPanel panelLabCategoria = null; |
69 |
private JLabel categoriaLab = null; |
70 |
private JPanel panelLabEscala = null; |
71 |
private JLabel escalaLabel = null; |
72 |
private JPanel panelLabProveedor = null; |
73 |
private JLabel proveedorLabel = null; |
74 |
private JTextField proveedorText = null; |
75 |
private JPanel panelAjusteBotones = null; |
76 |
private JPanel lowerRightPanel = null; |
77 |
private JPanel panelLabFecha = null; |
78 |
private JPanel lowerLeftPanel = null; |
79 |
private JPanel panelDe = null; |
80 |
private JPanel panelHasta = null; |
81 |
private JLabel deLabel = null; |
82 |
private JTextField deText = null; |
83 |
private JLabel ALabel = null; |
84 |
private JTextField aText = null; |
85 |
private JPanel jPanel3 = null; |
86 |
private JPanel panelSuperiores = null; |
87 |
private JPanel panelInferiores = null; |
88 |
private JLabel ULXLabel = null; |
89 |
private JTextField ULXText = null; |
90 |
private JLabel jLabel4 = null; |
91 |
private JLabel ULYLabel = null; |
92 |
private JTextField ULYText = null; |
93 |
private JLabel BRXLabel = null; |
94 |
private JTextField BRXText = null; |
95 |
private JLabel jLabel5 = null; |
96 |
private JLabel BRYLabel = null; |
97 |
private JTextField BRYText = null; |
98 |
private JPanel jPanel = null; |
99 |
private JPanel jPanel8 = null; |
100 |
private JPanel panelCategoriaCombo = null; |
101 |
private JPanel panelEscalaCombo = null; |
102 |
private JPanel panelProveedorText = null; |
103 |
private JPanel panelLabResumen = null; |
104 |
private JPanel panelTextResumen = null; |
105 |
private JPanel panelLabClave = null; |
106 |
private JPanel panelTextClave = null; |
107 |
private JLabel resumenLabel = null; |
108 |
private JLabel claveLabel = null; |
109 |
private JTextField resumenText = null; |
110 |
private JTextField claveText = null; |
111 |
private JComboBox coordenadasCombo = null; |
112 |
private JPanel panelCoordenadas = null; |
113 |
private JPanel lowerPanel = null; |
114 |
|
115 |
/**
|
116 |
* This method initializes
|
117 |
*
|
118 |
*/
|
119 |
public SearchLowerPanel() {
|
120 |
super();
|
121 |
initialize(); |
122 |
} |
123 |
|
124 |
/**
|
125 |
* This method initializes this
|
126 |
*
|
127 |
* @return void
|
128 |
*/
|
129 |
private void initialize() { |
130 |
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); |
131 |
this.setLocation(0, 0); |
132 |
this.setSize(700, 335); |
133 |
this.setPreferredSize(new java.awt.Dimension(665,335)); |
134 |
this.add(getLowerPanel(), null); |
135 |
} |
136 |
|
137 |
/**
|
138 |
* This method initializes jPanel
|
139 |
*
|
140 |
* @return javax.swing.JPanel
|
141 |
*/
|
142 |
private JPanel getPanelBotones() { |
143 |
if (panelBotones == null) { |
144 |
panelBotones = new JPanel(); |
145 |
panelBotones.setLayout(new BoxLayout(panelBotones, BoxLayout.Y_AXIS)); |
146 |
panelBotones.setBorder(javax.swing.BorderFactory.createTitledBorder( |
147 |
null, "Concordancia", |
148 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
149 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
150 |
panelBotones.add(getExactaButton(), null);
|
151 |
panelBotones.add(getCualquieraButton(), null);
|
152 |
panelBotones.add(getTodasButton(), null);
|
153 |
|
154 |
ButtonGroup group = new ButtonGroup(); |
155 |
group.add(getExactaButton()); |
156 |
group.add(getCualquieraButton()); |
157 |
group.add(getTodasButton()); |
158 |
} |
159 |
|
160 |
return panelBotones;
|
161 |
} |
162 |
|
163 |
/**
|
164 |
* This method initializes jRadioButton
|
165 |
*
|
166 |
* @return javax.swing.JRadioButton
|
167 |
*/
|
168 |
private JRadioButton getExactaButton() { |
169 |
if (exactaButton == null) { |
170 |
exactaButton = new JRadioButton(); |
171 |
exactaButton.setText("Frase Exacta");
|
172 |
exactaButton.setSelected(true);
|
173 |
} |
174 |
|
175 |
return exactaButton;
|
176 |
} |
177 |
|
178 |
/**
|
179 |
* This method initializes jRadioButton1
|
180 |
*
|
181 |
* @return javax.swing.JRadioButton
|
182 |
*/
|
183 |
private JRadioButton getCualquieraButton() { |
184 |
if (cualquieraButton == null) { |
185 |
cualquieraButton = new JRadioButton(); |
186 |
cualquieraButton.setText("Cualquier Palabra");
|
187 |
} |
188 |
|
189 |
return cualquieraButton;
|
190 |
} |
191 |
|
192 |
/**
|
193 |
* This method initializes jRadioButton2
|
194 |
*
|
195 |
* @return javax.swing.JRadioButton
|
196 |
*/
|
197 |
private JRadioButton getTodasButton() { |
198 |
if (todasButton == null) { |
199 |
todasButton = new JRadioButton(); |
200 |
todasButton.setText("Todas las Palabras");
|
201 |
} |
202 |
|
203 |
return todasButton;
|
204 |
} |
205 |
|
206 |
/**
|
207 |
* This method initializes jComboBox
|
208 |
*
|
209 |
* @return javax.swing.JComboBox
|
210 |
*/
|
211 |
private JComboBox getCategoriaCombo() { |
212 |
if (categoriaCombo == null) { |
213 |
String[] categorias = { |
214 |
"cualquiera", "biota", "boundaries", |
215 |
"climatologyMeteorologyAtmosphere", "economy", "elevation", |
216 |
"environment", "farming", "geoscientificInformation", |
217 |
"health", "imageryBaseMapsEarthCover", "inlandWaters", |
218 |
"intelligenceMilitary", "location", "oceans", |
219 |
"planningCadastre", "society", "structure", "transportation", |
220 |
"utilitiesCommunication"
|
221 |
}; |
222 |
categoriaCombo = new JComboBox(categorias); |
223 |
categoriaCombo.setPreferredSize(new java.awt.Dimension(300, 25)); |
224 |
categoriaCombo.setBackground(Color.white);
|
225 |
} |
226 |
|
227 |
return categoriaCombo;
|
228 |
} |
229 |
|
230 |
/**
|
231 |
* This method initializes jComboBox
|
232 |
*
|
233 |
* @return javax.swing.JComboBox
|
234 |
*/
|
235 |
private JComboBox getEscalaCombo() { |
236 |
if (escalaCombo == null) { |
237 |
String[] escalas = { |
238 |
"cualquiera", ">1.000.000", "1.000.000 - 250.000", |
239 |
"250.000 - 50.000", "50.000 - 10.000", "10.000 - 5000", |
240 |
"<5.000"
|
241 |
}; |
242 |
escalaCombo = new JComboBox(escalas); |
243 |
escalaCombo.setPreferredSize(new java.awt.Dimension(300, 25)); |
244 |
escalaCombo.setBackground(Color.white);
|
245 |
} |
246 |
|
247 |
return escalaCombo;
|
248 |
} |
249 |
|
250 |
/**
|
251 |
* This method initializes jPanel
|
252 |
*
|
253 |
* @return javax.swing.JPanel
|
254 |
*/
|
255 |
private JPanel getPanelLabCategoria() { |
256 |
if (panelLabCategoria == null) { |
257 |
categoriaLab = new JLabel(); |
258 |
|
259 |
GridLayout gridLayout5 = new GridLayout(); |
260 |
panelLabCategoria = new JPanel(); |
261 |
panelLabCategoria.setLayout(gridLayout5); |
262 |
categoriaLab.setText("Categoria");
|
263 |
gridLayout5.setRows(1);
|
264 |
panelLabCategoria.add(categoriaLab, null);
|
265 |
} |
266 |
|
267 |
return panelLabCategoria;
|
268 |
} |
269 |
|
270 |
/**
|
271 |
* This method initializes jPanel
|
272 |
*
|
273 |
* @return javax.swing.JPanel
|
274 |
*/
|
275 |
private JPanel getPanelLabEscala() { |
276 |
if (panelLabEscala == null) { |
277 |
escalaLabel = new JLabel(); |
278 |
|
279 |
GridLayout gridLayout2 = new GridLayout(); |
280 |
panelLabEscala = new JPanel(); |
281 |
panelLabEscala.setLayout(gridLayout2); |
282 |
gridLayout2.setRows(1);
|
283 |
escalaLabel.setText("Escala");
|
284 |
panelLabEscala.add(escalaLabel, null);
|
285 |
} |
286 |
|
287 |
return panelLabEscala;
|
288 |
} |
289 |
|
290 |
/**
|
291 |
* This method initializes jPanel
|
292 |
*
|
293 |
* @return javax.swing.JPanel
|
294 |
*/
|
295 |
private JPanel getPanelLabProveedor() { |
296 |
if (panelLabProveedor == null) { |
297 |
proveedorLabel = new JLabel(); |
298 |
panelLabProveedor = new JPanel(); |
299 |
|
300 |
GridLayout gridLayout2 = new GridLayout(); |
301 |
panelLabProveedor.setLayout(gridLayout2); |
302 |
proveedorLabel.setText("Proveedor");
|
303 |
panelLabProveedor.add(proveedorLabel, null);
|
304 |
} |
305 |
|
306 |
return panelLabProveedor;
|
307 |
} |
308 |
|
309 |
/**
|
310 |
* This method initializes jTextField
|
311 |
*
|
312 |
* @return javax.swing.JTextField
|
313 |
*/
|
314 |
private JTextField getProveedorText() { |
315 |
if (proveedorText == null) { |
316 |
proveedorText = new JTextField(); |
317 |
proveedorText.setPreferredSize(new java.awt.Dimension(300, 20)); |
318 |
} |
319 |
|
320 |
return proveedorText;
|
321 |
} |
322 |
|
323 |
/**
|
324 |
* This method initializes jPanel
|
325 |
*
|
326 |
* @return javax.swing.JPanel
|
327 |
*/
|
328 |
private JPanel getPanelAjusteBotones() { |
329 |
if (panelAjusteBotones == null) { |
330 |
GridLayout gridLayout6 = new GridLayout(); |
331 |
panelAjusteBotones = new JPanel(); |
332 |
panelAjusteBotones.setLayout(gridLayout6); |
333 |
gridLayout6.setRows(1);
|
334 |
panelAjusteBotones.add(getPanelBotones(), null);
|
335 |
} |
336 |
|
337 |
return panelAjusteBotones;
|
338 |
} |
339 |
|
340 |
/**
|
341 |
* This method initializes jPanel3
|
342 |
*
|
343 |
* @return javax.swing.JPanel
|
344 |
*/
|
345 |
private JPanel getJPanel3() { |
346 |
if (lowerRightPanel == null) { |
347 |
lowerRightPanel = new JPanel(); |
348 |
lowerRightPanel.setLayout(new BoxLayout( |
349 |
lowerRightPanel, BoxLayout.Y_AXIS));
|
350 |
lowerRightPanel.setPreferredSize(new java.awt.Dimension(300,330)); |
351 |
lowerRightPanel.add(getPanelCoordenadas(), null);
|
352 |
lowerRightPanel.add(getJPanel32(), null);
|
353 |
lowerRightPanel.add(getJPanel37(), null);
|
354 |
lowerRightPanel.add(getJPanel8(), null);
|
355 |
} |
356 |
|
357 |
return lowerRightPanel;
|
358 |
} |
359 |
|
360 |
/**
|
361 |
* This method initializes jPanel3
|
362 |
*
|
363 |
* @return javax.swing.JPanel
|
364 |
*/
|
365 |
private JPanel getJPanel32() { |
366 |
if (panelLabFecha == null) { |
367 |
TitledBorder titledBorder1 = javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,5), "Fecha de ?ltima actualizaci?n", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null); |
368 |
panelLabFecha = new JPanel(); |
369 |
panelLabFecha.setLayout(new BoxLayout(panelLabFecha, BoxLayout.Y_AXIS)); |
370 |
panelLabFecha.setBorder(titledBorder1); |
371 |
titledBorder1.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1));
|
372 |
panelLabFecha.add(getJPanel34(), null);
|
373 |
panelLabFecha.add(getJPanel35(), null);
|
374 |
} |
375 |
|
376 |
return panelLabFecha;
|
377 |
} |
378 |
|
379 |
/**
|
380 |
* This method initializes jPanel3
|
381 |
*
|
382 |
* @return javax.swing.JPanel
|
383 |
*/
|
384 |
private JPanel getJPanel33() { |
385 |
if (lowerLeftPanel == null) { |
386 |
lowerLeftPanel = new JPanel(); |
387 |
lowerLeftPanel.setLayout(new BoxLayout( |
388 |
lowerLeftPanel, BoxLayout.Y_AXIS));
|
389 |
lowerLeftPanel.setPreferredSize(new java.awt.Dimension(300,330)); |
390 |
lowerLeftPanel.add(getPanelAjusteBotones(), null);
|
391 |
lowerLeftPanel.add(getPanelLabResumen(), null);
|
392 |
lowerLeftPanel.add(getPanelTextResumen(), null);
|
393 |
lowerLeftPanel.add(getPanelLabClave(), null);
|
394 |
lowerLeftPanel.add(getPanelTextClave(), null);
|
395 |
lowerLeftPanel.add(getPanelLabCategoria(), null);
|
396 |
lowerLeftPanel.add(getPanelCategoriaCombo(), null);
|
397 |
lowerLeftPanel.add(getPanelLabEscala(), null);
|
398 |
lowerLeftPanel.add(getPanelEscalaCombo(), null);
|
399 |
lowerLeftPanel.add(getPanelLabProveedor(), null);
|
400 |
lowerLeftPanel.add(getPanelProveedorText(), null);
|
401 |
} |
402 |
|
403 |
return lowerLeftPanel;
|
404 |
} |
405 |
|
406 |
/**
|
407 |
* This method initializes jPanel3
|
408 |
*
|
409 |
* @return javax.swing.JPanel
|
410 |
*/
|
411 |
private JPanel getJPanel34() { |
412 |
if (panelDe == null) { |
413 |
deLabel = new JLabel(); |
414 |
|
415 |
FlowLayout flowLayout11 = new FlowLayout(); |
416 |
panelDe = new JPanel(); |
417 |
panelDe.setLayout(flowLayout11); |
418 |
deLabel.setText("De:");
|
419 |
deLabel.setPreferredSize(new java.awt.Dimension(90,15)); |
420 |
deLabel.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); |
421 |
deLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
422 |
panelDe.setComponentOrientation(java.awt.ComponentOrientation.LEFT_TO_RIGHT); |
423 |
flowLayout11.setAlignment(java.awt.FlowLayout.LEFT); |
424 |
panelDe.add(deLabel, null);
|
425 |
panelDe.add(getDeText(), null);
|
426 |
} |
427 |
|
428 |
return panelDe;
|
429 |
} |
430 |
|
431 |
/**
|
432 |
* This method initializes jPanel3
|
433 |
*
|
434 |
* @return javax.swing.JPanel
|
435 |
*/
|
436 |
private JPanel getJPanel35() { |
437 |
if (panelHasta == null) { |
438 |
ALabel = new JLabel(); |
439 |
|
440 |
FlowLayout flowLayout12 = new FlowLayout(); |
441 |
panelHasta = new JPanel(); |
442 |
panelHasta.setLayout(flowLayout12); |
443 |
ALabel.setText("A:");
|
444 |
ALabel.setPreferredSize(new java.awt.Dimension(90,16)); |
445 |
ALabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
446 |
flowLayout12.setAlignment(java.awt.FlowLayout.LEFT); |
447 |
panelHasta.add(ALabel, null);
|
448 |
panelHasta.add(getAText(), null);
|
449 |
} |
450 |
|
451 |
return panelHasta;
|
452 |
} |
453 |
|
454 |
/**
|
455 |
* This method initializes jTextField
|
456 |
*
|
457 |
* @return javax.swing.JTextField
|
458 |
*/
|
459 |
private JTextField getDeText() { |
460 |
if (deText == null) { |
461 |
deText = new JTextField(); |
462 |
deText.setPreferredSize(new java.awt.Dimension(100, 20)); |
463 |
} |
464 |
|
465 |
return deText;
|
466 |
} |
467 |
|
468 |
/**
|
469 |
* This method initializes jTextField
|
470 |
*
|
471 |
* @return javax.swing.JTextField
|
472 |
*/
|
473 |
private JTextField getAText() { |
474 |
if (aText == null) { |
475 |
aText = new JTextField(); |
476 |
aText.setPreferredSize(new java.awt.Dimension(100, 20)); |
477 |
} |
478 |
|
479 |
return aText;
|
480 |
} |
481 |
|
482 |
/**
|
483 |
* This method initializes jPanel3
|
484 |
*
|
485 |
* @return javax.swing.JPanel
|
486 |
*/
|
487 |
private JPanel getJPanel37() { |
488 |
if (jPanel3 == null) { |
489 |
jPanel3 = new JPanel(); |
490 |
jPanel3.setPreferredSize(new java.awt.Dimension(10, 10)); |
491 |
} |
492 |
|
493 |
return jPanel3;
|
494 |
} |
495 |
|
496 |
/**
|
497 |
* This method initializes jPanel4
|
498 |
*
|
499 |
* @return javax.swing.JPanel
|
500 |
*/
|
501 |
private JPanel getPanelSuperiores() { |
502 |
if (panelSuperiores == null) { |
503 |
ULXLabel = new JLabel(); |
504 |
ULYLabel = new JLabel(); |
505 |
jLabel4 = new JLabel(); |
506 |
panelSuperiores = new JPanel(); |
507 |
panelSuperiores.setBorder(javax.swing.BorderFactory.createTitledBorder( |
508 |
null, "Superiores", |
509 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
510 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
511 |
panelSuperiores.setPreferredSize(new java.awt.Dimension(213, 56)); |
512 |
ULXLabel.setText("ULX:");
|
513 |
jLabel4.setText("");
|
514 |
jLabel4.setPreferredSize(new java.awt.Dimension(20, 0)); |
515 |
ULYLabel.setText("ULY:");
|
516 |
panelSuperiores.add(ULXLabel, null);
|
517 |
panelSuperiores.add(getULXText(), null);
|
518 |
panelSuperiores.add(jLabel4, null);
|
519 |
panelSuperiores.add(ULYLabel, null);
|
520 |
panelSuperiores.add(getULYText(), null);
|
521 |
} |
522 |
|
523 |
return panelSuperiores;
|
524 |
} |
525 |
|
526 |
/**
|
527 |
* This method initializes jPanel4
|
528 |
*
|
529 |
* @return javax.swing.JPanel
|
530 |
*/
|
531 |
private JPanel getPanelInferiores() { |
532 |
if (panelInferiores == null) { |
533 |
BRXLabel = new JLabel(); |
534 |
BRYLabel = new JLabel(); |
535 |
jLabel5 = new JLabel(); |
536 |
panelInferiores = new JPanel(); |
537 |
panelInferiores.setBorder(javax.swing.BorderFactory.createTitledBorder( |
538 |
null, "Inferiores", |
539 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
540 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
541 |
BRXLabel.setText("BRX:");
|
542 |
jLabel5.setText("");
|
543 |
jLabel5.setPreferredSize(new java.awt.Dimension(20, 0)); |
544 |
BRYLabel.setText("BRY:");
|
545 |
panelInferiores.add(BRXLabel, null);
|
546 |
panelInferiores.add(getBRXText(), null);
|
547 |
panelInferiores.add(jLabel5, null);
|
548 |
panelInferiores.add(BRYLabel, null);
|
549 |
panelInferiores.add(getBRYText(), null);
|
550 |
} |
551 |
|
552 |
return panelInferiores;
|
553 |
} |
554 |
|
555 |
/**
|
556 |
* This method initializes jTextField
|
557 |
*
|
558 |
* @return javax.swing.JTextField
|
559 |
*/
|
560 |
private JTextField getULXText() { |
561 |
if (ULXText == null) { |
562 |
ULXText = new JTextField(); |
563 |
ULXText.setPreferredSize(new java.awt.Dimension(50, 20)); |
564 |
} |
565 |
|
566 |
return ULXText;
|
567 |
} |
568 |
|
569 |
/**
|
570 |
* This method initializes jTextField
|
571 |
*
|
572 |
* @return javax.swing.JTextField
|
573 |
*/
|
574 |
private JTextField getULYText() { |
575 |
if (ULYText == null) { |
576 |
ULYText = new JTextField(); |
577 |
ULYText.setPreferredSize(new java.awt.Dimension(50, 20)); |
578 |
} |
579 |
|
580 |
return ULYText;
|
581 |
} |
582 |
|
583 |
/**
|
584 |
* This method initializes jTextField
|
585 |
*
|
586 |
* @return javax.swing.JTextField
|
587 |
*/
|
588 |
private JTextField getBRXText() { |
589 |
if (BRXText == null) { |
590 |
BRXText = new JTextField(); |
591 |
BRXText.setPreferredSize(new java.awt.Dimension(50, 20)); |
592 |
} |
593 |
|
594 |
return BRXText;
|
595 |
} |
596 |
|
597 |
/**
|
598 |
* This method initializes jTextField
|
599 |
*
|
600 |
* @return javax.swing.JTextField
|
601 |
*/
|
602 |
private JTextField getBRYText() { |
603 |
if (BRYText == null) { |
604 |
BRYText = new JTextField(); |
605 |
BRYText.setPreferredSize(new java.awt.Dimension(50, 20)); |
606 |
} |
607 |
|
608 |
return BRYText;
|
609 |
} |
610 |
|
611 |
/**
|
612 |
* This method initializes jPanel
|
613 |
*
|
614 |
* @return javax.swing.JPanel
|
615 |
*/
|
616 |
private JPanel getJPanel() { |
617 |
if (jPanel == null) { |
618 |
jPanel = new JPanel(); |
619 |
jPanel.add(getCoordenadasCombo(), null);
|
620 |
} |
621 |
|
622 |
return jPanel;
|
623 |
} |
624 |
|
625 |
/**
|
626 |
* This method initializes jPanel8
|
627 |
*
|
628 |
* @return javax.swing.JPanel
|
629 |
*/
|
630 |
private JPanel getJPanel8() { |
631 |
if (jPanel8 == null) { |
632 |
jPanel8 = new JPanel(); |
633 |
jPanel8.setPreferredSize(new java.awt.Dimension(10, 100)); |
634 |
} |
635 |
|
636 |
return jPanel8;
|
637 |
} |
638 |
|
639 |
/**
|
640 |
* This method initializes jPanel9
|
641 |
*
|
642 |
* @return javax.swing.JPanel
|
643 |
*/
|
644 |
private JPanel getPanelCategoriaCombo() { |
645 |
if (panelCategoriaCombo == null) { |
646 |
panelCategoriaCombo = new JPanel(); |
647 |
panelCategoriaCombo.add(getCategoriaCombo(), null);
|
648 |
} |
649 |
|
650 |
return panelCategoriaCombo;
|
651 |
} |
652 |
|
653 |
/**
|
654 |
* This method initializes jPanel9
|
655 |
*
|
656 |
* @return javax.swing.JPanel
|
657 |
*/
|
658 |
private JPanel getPanelEscalaCombo() { |
659 |
if (panelEscalaCombo == null) { |
660 |
panelEscalaCombo = new JPanel(); |
661 |
panelEscalaCombo.add(getEscalaCombo(), null);
|
662 |
} |
663 |
|
664 |
return panelEscalaCombo;
|
665 |
} |
666 |
|
667 |
/**
|
668 |
* This method initializes jPanel9
|
669 |
*
|
670 |
* @return javax.swing.JPanel
|
671 |
*/
|
672 |
private JPanel getPanelProveedorText() { |
673 |
if (panelProveedorText == null) { |
674 |
panelProveedorText = new JPanel(); |
675 |
panelProveedorText.add(getProveedorText(), null);
|
676 |
} |
677 |
|
678 |
return panelProveedorText;
|
679 |
} |
680 |
|
681 |
/**
|
682 |
* This method initializes jPanel7
|
683 |
*
|
684 |
* @return javax.swing.JPanel
|
685 |
*/
|
686 |
private JPanel getPanelLabResumen() { |
687 |
if (panelLabResumen == null) { |
688 |
resumenLabel = new JLabel(); |
689 |
|
690 |
GridLayout gridLayout1 = new GridLayout(); |
691 |
panelLabResumen = new JPanel(); |
692 |
panelLabResumen.setLayout(gridLayout1); |
693 |
gridLayout1.setRows(1);
|
694 |
resumenLabel.setText("Resumen");
|
695 |
panelLabResumen.add(resumenLabel, null);
|
696 |
} |
697 |
|
698 |
return panelLabResumen;
|
699 |
} |
700 |
|
701 |
/**
|
702 |
* This method initializes jPanel7
|
703 |
*
|
704 |
* @return javax.swing.JPanel
|
705 |
*/
|
706 |
private JPanel getPanelTextResumen() { |
707 |
if (panelTextResumen == null) { |
708 |
panelTextResumen = new JPanel(); |
709 |
panelTextResumen.add(getResumenText(), null);
|
710 |
} |
711 |
|
712 |
return panelTextResumen;
|
713 |
} |
714 |
|
715 |
/**
|
716 |
* This method initializes jPanel9
|
717 |
*
|
718 |
* @return javax.swing.JPanel
|
719 |
*/
|
720 |
private JPanel getPanelLabClave() { |
721 |
if (panelLabClave == null) { |
722 |
claveLabel = new JLabel(); |
723 |
|
724 |
GridLayout gridLayout21 = new GridLayout(); |
725 |
panelLabClave = new JPanel(); |
726 |
panelLabClave.setLayout(gridLayout21); |
727 |
gridLayout21.setRows(1);
|
728 |
claveLabel.setText("Palabras Clave");
|
729 |
panelLabClave.add(claveLabel, null);
|
730 |
} |
731 |
|
732 |
return panelLabClave;
|
733 |
} |
734 |
|
735 |
/**
|
736 |
* This method initializes jPanel9
|
737 |
*
|
738 |
* @return javax.swing.JPanel
|
739 |
*/
|
740 |
private JPanel getPanelTextClave() { |
741 |
if (panelTextClave == null) { |
742 |
panelTextClave = new JPanel(); |
743 |
panelTextClave.add(getClaveText(), null);
|
744 |
} |
745 |
|
746 |
return panelTextClave;
|
747 |
} |
748 |
|
749 |
/**
|
750 |
* This method initializes jTextField
|
751 |
*
|
752 |
* @return javax.swing.JTextField
|
753 |
*/
|
754 |
private JTextField getResumenText() { |
755 |
if (resumenText == null) { |
756 |
resumenText = new JTextField(); |
757 |
resumenText.setPreferredSize(new java.awt.Dimension(300, 20)); |
758 |
} |
759 |
|
760 |
return resumenText;
|
761 |
} |
762 |
|
763 |
/**
|
764 |
* This method initializes jTextField
|
765 |
*
|
766 |
* @return javax.swing.JTextField
|
767 |
*/
|
768 |
private JTextField getClaveText() { |
769 |
if (claveText == null) { |
770 |
claveText = new JTextField(); |
771 |
claveText.setPreferredSize(new java.awt.Dimension(300, 20)); |
772 |
} |
773 |
|
774 |
return claveText;
|
775 |
} |
776 |
|
777 |
/**
|
778 |
* This method initializes jComboBox
|
779 |
*
|
780 |
* @return javax.swing.JComboBox
|
781 |
*/
|
782 |
private JComboBox getCoordenadasCombo() { |
783 |
if (coordenadasCombo == null) { |
784 |
String[] coordenadas = { |
785 |
"igual", "contiene", "incluye", "est? totalmente fuera de" |
786 |
}; |
787 |
coordenadasCombo = new JComboBox(coordenadas); |
788 |
coordenadasCombo.setPreferredSize(new java.awt.Dimension(290,25)); |
789 |
coordenadasCombo.setBackground(Color.white);
|
790 |
} |
791 |
|
792 |
return coordenadasCombo;
|
793 |
} |
794 |
|
795 |
/**
|
796 |
* This method initializes jPanel4
|
797 |
*
|
798 |
* @return javax.swing.JPanel
|
799 |
*/
|
800 |
private JPanel getPanelCoordenadas() { |
801 |
if (panelCoordenadas == null) { |
802 |
panelCoordenadas = new JPanel(); |
803 |
panelCoordenadas.setLayout(new BoxLayout(panelCoordenadas, BoxLayout.Y_AXIS)); |
804 |
panelCoordenadas.setBorder(javax.swing.BorderFactory.createTitledBorder( |
805 |
null, "Coordenadas", |
806 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
807 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
808 |
panelCoordenadas.setPreferredSize(new java.awt.Dimension(315, 240)); |
809 |
panelCoordenadas.add(getPanelSuperiores(), null);
|
810 |
panelCoordenadas.add(getPanelInferiores(), null);
|
811 |
panelCoordenadas.add(getJPanel(), null);
|
812 |
} |
813 |
|
814 |
return panelCoordenadas;
|
815 |
} |
816 |
|
817 |
/**
|
818 |
* This method initializes jPanel5
|
819 |
*
|
820 |
* @return javax.swing.JPanel
|
821 |
*/
|
822 |
private JPanel getLowerPanel() { |
823 |
if (lowerPanel == null) { |
824 |
lowerPanel = new JPanel(); |
825 |
lowerPanel.setPreferredSize(new java.awt.Dimension(665,335)); |
826 |
lowerPanel.add(getJPanel33(), null);
|
827 |
lowerPanel.add(getJPanel3(), null);
|
828 |
} |
829 |
|
830 |
return lowerPanel;
|
831 |
} |
832 |
|
833 |
|
834 |
/* (non-Javadoc)
|
835 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getTitleOption()
|
836 |
*/
|
837 |
public String getTitleOption() { |
838 |
if (getExactaButton().isSelected()) {
|
839 |
return "E"; |
840 |
} |
841 |
|
842 |
if (getCualquieraButton().isSelected()) {
|
843 |
return "Y"; |
844 |
} |
845 |
|
846 |
if (getTodasButton().isSelected()) {
|
847 |
return "A"; |
848 |
} |
849 |
|
850 |
return null; |
851 |
} |
852 |
|
853 |
/* (non-Javadoc)
|
854 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getAbstract()
|
855 |
*/
|
856 |
public String getAbstract() { |
857 |
if (getResumenText().getText().equals("")) { |
858 |
return null; |
859 |
} |
860 |
|
861 |
return getResumenText().getText();
|
862 |
} |
863 |
|
864 |
/* (non-Javadoc)
|
865 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getKeys()
|
866 |
*/
|
867 |
public String getKeys() { |
868 |
if (getClaveText().getText().equals("")) { |
869 |
return null; |
870 |
} |
871 |
|
872 |
return getClaveText().getText();
|
873 |
} |
874 |
|
875 |
/* (non-Javadoc)
|
876 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getCathegory()
|
877 |
*/
|
878 |
public String getCathegory() { |
879 |
return (String) getCategoriaCombo().getSelectedItem(); |
880 |
} |
881 |
|
882 |
/* (non-Javadoc)
|
883 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getScale()
|
884 |
*/
|
885 |
public String getScale() { |
886 |
return (String) getEscalaCombo().getSelectedItem(); |
887 |
} |
888 |
|
889 |
/* (non-Javadoc)
|
890 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getDateTo()
|
891 |
*/
|
892 |
public String getDateTo() { |
893 |
if (getAText().getText().equals("")) { |
894 |
return null; |
895 |
} |
896 |
|
897 |
return getAText().getText();
|
898 |
} |
899 |
|
900 |
/* (non-Javadoc)
|
901 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getDateFrom()
|
902 |
*/
|
903 |
public String getDateFrom() { |
904 |
if (getDeText().getText().equals("")) { |
905 |
return null; |
906 |
} |
907 |
|
908 |
return getDeText().getText();
|
909 |
} |
910 |
|
911 |
/* (non-Javadoc)
|
912 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getCoordinates()
|
913 |
*/
|
914 |
public Coordinates getCoordinates() {
|
915 |
return new Coordinates(getULXText().getText(), getULYText().getText(), |
916 |
getBRXText().getText(), getBRYText().getText()); |
917 |
} |
918 |
|
919 |
/* (non-Javadoc)
|
920 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getCoordinatesOption()
|
921 |
*/
|
922 |
public String getCoordinatesOption() { |
923 |
return (String) getCoordenadasCombo().getSelectedItem(); |
924 |
} |
925 |
|
926 |
/* (non-Javadoc)
|
927 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getProvider()
|
928 |
*/
|
929 |
public String getProvider() { |
930 |
if (getProveedorText().getText().equals("")) { |
931 |
return null; |
932 |
} |
933 |
|
934 |
return getProveedorText().getText();
|
935 |
} |
936 |
|
937 |
/* (non-Javadoc)
|
938 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getRestrictAreaClicked()
|
939 |
*/
|
940 |
public boolean getRestrictAreaClicked() { |
941 |
// TODO Auto-generated method stub
|
942 |
return false; |
943 |
} |
944 |
|
945 |
/**
|
946 |
* It sets a lower panel visible or not visible
|
947 |
* @param isMinimized
|
948 |
*/
|
949 |
public void setMinimized(boolean isMinimized){ |
950 |
if (isMinimized){
|
951 |
lowerPanel.setVisible(false);
|
952 |
setSize(700,100); |
953 |
}else{
|
954 |
lowerPanel.setVisible(true);
|
955 |
setSize(700,900); |
956 |
} |
957 |
this.repaint();
|
958 |
} |
959 |
|
960 |
} // @jve:decl-index=0:visual-constraint="10,10"
|