Revision 3099

View differences:

trunk/applications/appCatalogYNomenclatorClient/servers.txt
1
193.43.36.137:2100
2
sercartlin:2100
3 1
localhost:210
4
http://delta.icc.es/indicio/csw
5
http://idee.unizar.es/SRW/servlet/search/SRW
6
gruposigp2:2100
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/SearchPanel.java
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.FlowLayout;
46
import java.awt.GridLayout;
47

  
48
import javax.swing.BoxLayout;
49
import javax.swing.ButtonGroup;
50
import javax.swing.JComboBox;
51
import javax.swing.JLabel;
52
import javax.swing.JPanel;
53
import javax.swing.JRadioButton;
54
import javax.swing.JTextField;
55

  
56

  
57
/**
58
 * @author Jorge Piera Llodra (piera_jor@gva.es)
59
 */
60
public class SearchPanel extends AbstractSearchPanel{
61
    private JTextField tituloText = null;
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 panelLabTitulo = null;
69
    private JLabel tituloLabel = null;
70
    private JPanel panelLabCategoria = null;
71
    private JLabel categoriaLab = null;
72
    private JPanel panelLabEscala = null;
73
    private JLabel escalaLabel = null;
74
    private JPanel panelLabProveedor = null;
75
    private JLabel proveedorLabel = null;
76
    private JTextField proveedorText = null;
77
    private JPanel panelAjusteBotones = null;
78
    private JPanel jPanel2 = null;
79
    private JPanel jPanel10 = null;
80
    private JPanel panelSeparacionDerecha = null;
81
    private JPanel panelLabFecha = null;
82
    private JLabel fechaLabel = null;
83
    private JPanel panelSeparacionIzquierda = null;
84
    private JPanel panelDe = null;
85
    private JPanel panelHasta = null;
86
    private JLabel deLabel = null;
87
    private JTextField deText = null;
88
    private JLabel ALabel = null;
89
    private JTextField aText = null;
90
    private JPanel jPanel3 = null;
91
    private JPanel panelSuperiores = null;
92
    private JPanel panelInferiores = null;
93
    private JLabel ULXLabel = null;
94
    private JTextField ULXText = null;
95
    private JLabel jLabel4 = null;
96
    private JLabel ULYLabel = null;
97
    private JTextField ULYText = null;
98
    private JLabel BRXLabel = null;
99
    private JTextField BRXText = null;
100
    private JLabel jLabel5 = null;
101
    private JLabel BRYLabel = null;
102
    private JTextField BRYText = null;
103
    private JPanel jPanel = null;
104
    private JPanel jPanel1 = null;
105
    private JPanel jPanel6 = null;
106
    private JPanel jPanel8 = null;
107
    private JPanel panelTextTitulo = null;
108
    private JPanel panelCategoriaCombo = null;
109
    private JPanel panelEscalaCombo = null;
110
    private JPanel panelProveedorText = null;
111
    private JPanel panelLabResumen = null;
112
    private JPanel panelTextResumen = null;
113
    private JPanel jPanel7 = null;
114
    private JPanel panelLabClave = null;
115
    private JPanel panelTextClave = null;
116
    private JPanel jPanel9 = null;
117
    private JLabel resumenLabel = null;
118
    private JLabel claveLabel = null;
119
    private JTextField resumenText = null;
120
    private JTextField claveText = null;
121
    private JComboBox coordenadasCombo = null;
122
    private JPanel jPanel4 = null;
123
    private JPanel componentesPanel = null;
124

  
125
    /**
126
     * This method initializes
127
     *
128
     */
129
    public SearchPanel() {
130
        super();
131
        initialize();
132
    }
133

  
134
    /**
135
     * This method initializes this
136
     *
137
     * @return void
138
     */
139
    private void initialize() {
140
        this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
141
        this.setPreferredSize(new java.awt.Dimension(727, 450));
142
        this.setLocation(0, 0);
143
        this.setSize(727, 450);
144
        this.add(getComponentesPanel(), null);
145
    }
146

  
147
    /**
148
     * This method initializes jTextField
149
     *
150
     * @return javax.swing.JTextField
151
     */
152
    private JTextField getTituloText() {
153
        if (tituloText == null) {
154
            tituloText = new JTextField();
155
            tituloText.setPreferredSize(new java.awt.Dimension(300, 20));
156
        }
157

  
158
        return tituloText;
159
    }
160

  
161
    /**
162
     * This method initializes jPanel
163
     *
164
     * @return javax.swing.JPanel
165
     */
166
    private JPanel getPanelBotones() {
167
        if (panelBotones == null) {
168
            panelBotones = new JPanel();
169
            panelBotones.setLayout(new BoxLayout(panelBotones, BoxLayout.Y_AXIS));
170
            panelBotones.setBorder(javax.swing.BorderFactory.createTitledBorder(
171
                    null, "Concordancia",
172
                    javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
173
                    javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));
174
            panelBotones.add(getExactaButton(), null);
175
            panelBotones.add(getCualquieraButton(), null);
176
            panelBotones.add(getTodasButton(), null);
177

  
178
            ButtonGroup group = new ButtonGroup();
179
            group.add(getExactaButton());
180
            group.add(getCualquieraButton());
181
            group.add(getTodasButton());
182
        }
183

  
184
        return panelBotones;
185
    }
186

  
187
    /**
188
     * This method initializes jRadioButton
189
     *
190
     * @return javax.swing.JRadioButton
191
     */
192
    private JRadioButton getExactaButton() {
193
        if (exactaButton == null) {
194
            exactaButton = new JRadioButton();
195
            exactaButton.setText("Frase Exacta");
196
            exactaButton.setSelected(true);
197
        }
198

  
199
        return exactaButton;
200
    }
201

  
202
    /**
203
     * This method initializes jRadioButton1
204
     *
205
     * @return javax.swing.JRadioButton
206
     */
207
    private JRadioButton getCualquieraButton() {
208
        if (cualquieraButton == null) {
209
            cualquieraButton = new JRadioButton();
210
            cualquieraButton.setText("Cualquier Palabra");
211
        }
212

  
213
        return cualquieraButton;
214
    }
215

  
216
    /**
217
     * This method initializes jRadioButton2
218
     *
219
     * @return javax.swing.JRadioButton
220
     */
221
    private JRadioButton getTodasButton() {
222
        if (todasButton == null) {
223
            todasButton = new JRadioButton();
224
            todasButton.setText("Todas las Palabras");
225
        }
226

  
227
        return todasButton;
228
    }
229

  
230
    /**
231
     * This method initializes jComboBox
232
     *
233
     * @return javax.swing.JComboBox
234
     */
235
    private JComboBox getCategoriaCombo() {
236
        if (categoriaCombo == null) {
237
            String[] categorias = {
238
                    "cualquiera", "biota", "boundaries",
239
                    "climatologyMeteorologyAtmosphere", "economy", "elevation",
240
                    "environment", "farming", "geoscientificInformation",
241
                    "health", "imageryBaseMapsEarthCover", "inlandWaters",
242
                    "intelligenceMilitary", "location", "oceans",
243
                    "planningCadastre", "society", "structure", "transportation",
244
                    "utilitiesCommunication"
245
                };
246
            categoriaCombo = new JComboBox(categorias);
247
            categoriaCombo.setPreferredSize(new java.awt.Dimension(300, 25));
248
        }
249

  
250
        return categoriaCombo;
251
    }
252

  
253
    /**
254
     * This method initializes jComboBox
255
     *
256
     * @return javax.swing.JComboBox
257
     */
258
    private JComboBox getEscalaCombo() {
259
        if (escalaCombo == null) {
260
            String[] escalas = {
261
                    "cualquiera", ">1.000.000", "1.000.000 - 250.000",
262
                    "250.000 - 50.000", "50.000 - 10.000", "10.000 - 5000",
263
                    "<5.000"
264
                };
265
            escalaCombo = new JComboBox(escalas);
266
            escalaCombo.setPreferredSize(new java.awt.Dimension(300, 25));
267
        }
268

  
269
        return escalaCombo;
270
    }
271

  
272
    /**
273
     * This method initializes jPanel
274
     *
275
     * @return javax.swing.JPanel
276
     */
277
    private JPanel getPanelLabTitulo() {
278
        if (panelLabTitulo == null) {
279
            GridLayout gridLayout10 = new GridLayout();
280
            tituloLabel = new JLabel();
281
            panelLabTitulo = new JPanel();
282
            panelLabTitulo.setLayout(gridLayout10);
283
            tituloLabel.setText("T?tulo");
284
            gridLayout10.setRows(1);
285
            panelLabTitulo.add(tituloLabel, null);
286
        }
287

  
288
        return panelLabTitulo;
289
    }
290

  
291
    /**
292
     * This method initializes jPanel
293
     *
294
     * @return javax.swing.JPanel
295
     */
296
    private JPanel getPanelLabCategoria() {
297
        if (panelLabCategoria == null) {
298
            categoriaLab = new JLabel();
299

  
300
            GridLayout gridLayout5 = new GridLayout();
301
            panelLabCategoria = new JPanel();
302
            panelLabCategoria.setLayout(gridLayout5);
303
            categoriaLab.setText("Categoria");
304
            gridLayout5.setRows(1);
305
            panelLabCategoria.add(categoriaLab, null);
306
        }
307

  
308
        return panelLabCategoria;
309
    }
310

  
311
    /**
312
     * This method initializes jPanel
313
     *
314
     * @return javax.swing.JPanel
315
     */
316
    private JPanel getPanelLabEscala() {
317
        if (panelLabEscala == null) {
318
            escalaLabel = new JLabel();
319

  
320
            GridLayout gridLayout2 = new GridLayout();
321
            panelLabEscala = new JPanel();
322
            panelLabEscala.setLayout(gridLayout2);
323
            gridLayout2.setRows(1);
324
            escalaLabel.setText("Escala");
325
            panelLabEscala.add(escalaLabel, null);
326
        }
327

  
328
        return panelLabEscala;
329
    }
330

  
331
    /**
332
     * This method initializes jPanel
333
     *
334
     * @return javax.swing.JPanel
335
     */
336
    private JPanel getPanelLabProveedor() {
337
        if (panelLabProveedor == null) {
338
            proveedorLabel = new JLabel();
339
            panelLabProveedor = new JPanel();
340

  
341
            GridLayout gridLayout2 = new GridLayout();
342
            panelLabProveedor.setLayout(gridLayout2);
343
            proveedorLabel.setText("Proveedor");
344
            panelLabProveedor.add(proveedorLabel, null);
345
        }
346

  
347
        return panelLabProveedor;
348
    }
349

  
350
    /**
351
     * This method initializes jTextField
352
     *
353
     * @return javax.swing.JTextField
354
     */
355
    private JTextField getProveedorText() {
356
        if (proveedorText == null) {
357
            proveedorText = new JTextField();
358
            proveedorText.setPreferredSize(new java.awt.Dimension(300, 20));
359
        }
360

  
361
        return proveedorText;
362
    }
363

  
364
    /**
365
     * This method initializes jPanel
366
     *
367
     * @return javax.swing.JPanel
368
     */
369
    private JPanel getPanelAjusteBotones() {
370
        if (panelAjusteBotones == null) {
371
            GridLayout gridLayout6 = new GridLayout();
372
            panelAjusteBotones = new JPanel();
373
            panelAjusteBotones.setLayout(gridLayout6);
374
            gridLayout6.setRows(1);
375
            panelAjusteBotones.add(getPanelBotones(), null);
376
        }
377

  
378
        return panelAjusteBotones;
379
    }
380

  
381
    /**
382
     * This method initializes jPanel2
383
     *
384
     * @return javax.swing.JPanel
385
     */
386
    private JPanel getJPanel2() {
387
        if (jPanel2 == null) {
388
            jPanel2 = new JPanel();
389
        }
390

  
391
        return jPanel2;
392
    }
393

  
394
    /**
395
     * This method initializes jPanel3
396
     *
397
     * @return javax.swing.JPanel
398
     */
399
    private JPanel getJPanel3() {
400
        if (panelSeparacionDerecha == null) {
401
            panelSeparacionDerecha = new JPanel();
402
            panelSeparacionDerecha.setLayout(new BoxLayout(
403
                    panelSeparacionDerecha, BoxLayout.Y_AXIS));
404
            panelSeparacionDerecha.setPreferredSize(new java.awt.Dimension(
405
                    325, 415));
406
            panelSeparacionDerecha.add(getJPanel32(), null);
407
            panelSeparacionDerecha.add(getJPanel34(), null);
408
            panelSeparacionDerecha.add(getJPanel35(), null);
409
            panelSeparacionDerecha.add(getJPanel37(), null);
410
            panelSeparacionDerecha.add(getJPanel4(), null);
411
            panelSeparacionDerecha.add(getJPanel1(), null);
412
            panelSeparacionDerecha.add(getJPanel8(), null);
413
        }
414

  
415
        return panelSeparacionDerecha;
416
    }
417

  
418
    /**
419
     * This method initializes jPanel3
420
     *
421
     * @return javax.swing.JPanel
422
     */
423
    private JPanel getJPanel32() {
424
        if (panelLabFecha == null) {
425
            fechaLabel = new JLabel();
426

  
427
            GridLayout gridLayout101 = new GridLayout();
428
            panelLabFecha = new JPanel();
429
            panelLabFecha.setLayout(gridLayout101);
430
            fechaLabel.setText("Fecha de ultima actualizacion");
431
            gridLayout101.setRows(1);
432
            panelLabFecha.add(fechaLabel, null);
433
        }
434

  
435
        return panelLabFecha;
436
    }
437

  
438
    /**
439
     * This method initializes jPanel3
440
     *
441
     * @return javax.swing.JPanel
442
     */
443
    private JPanel getJPanel33() {
444
        if (panelSeparacionIzquierda == null) {
445
            panelSeparacionIzquierda = new JPanel();
446
            panelSeparacionIzquierda.setLayout(new BoxLayout(
447
                    panelSeparacionIzquierda, BoxLayout.Y_AXIS));
448
            panelSeparacionIzquierda.setPreferredSize(new java.awt.Dimension(
449
                    325, 425));
450
            panelSeparacionIzquierda.add(getPanelLabTitulo(), null);
451
            panelSeparacionIzquierda.add(getPanelTextTitulo(), null);
452
            panelSeparacionIzquierda.add(getPanelAjusteBotones(), null);
453
            panelSeparacionIzquierda.add(getJPanel2(), null);
454
            panelSeparacionIzquierda.add(getPanelLabResumen(), null);
455
            panelSeparacionIzquierda.add(getPanelTextResumen(), null);
456
            panelSeparacionIzquierda.add(getJPanel7(), null);
457
            panelSeparacionIzquierda.add(getPanelLabClave(), null);
458
            panelSeparacionIzquierda.add(getPanelTextClave(), null);
459
            panelSeparacionIzquierda.add(getJPanel9(), null);
460
            panelSeparacionIzquierda.add(getPanelLabCategoria(), null);
461
            panelSeparacionIzquierda.add(getPanelCategoriaCombo(), null);
462
            panelSeparacionIzquierda.add(getJPanel10(), null);
463
            panelSeparacionIzquierda.add(getPanelLabEscala(), null);
464
            panelSeparacionIzquierda.add(getPanelEscalaCombo(), null);
465
            panelSeparacionIzquierda.add(getJPanel6(), null);
466
            panelSeparacionIzquierda.add(getPanelLabProveedor(), null);
467
            panelSeparacionIzquierda.add(getPanelProveedorText(), null);
468
        }
469

  
470
        return panelSeparacionIzquierda;
471
    }
472

  
473
    /**
474
     * This method initializes jPanel3
475
     *
476
     * @return javax.swing.JPanel
477
     */
478
    private JPanel getJPanel34() {
479
        if (panelDe == null) {
480
            deLabel = new JLabel();
481

  
482
            FlowLayout flowLayout11 = new FlowLayout();
483
            panelDe = new JPanel();
484
            panelDe.setLayout(flowLayout11);
485
            deLabel.setText("De:");
486
            panelDe.setComponentOrientation(java.awt.ComponentOrientation.LEFT_TO_RIGHT);
487
            flowLayout11.setAlignment(java.awt.FlowLayout.LEFT);
488
            panelDe.add(deLabel, null);
489
            panelDe.add(getDeText(), null);
490
        }
491

  
492
        return panelDe;
493
    }
494

  
495
    /**
496
     * This method initializes jPanel3
497
     *
498
     * @return javax.swing.JPanel
499
     */
500
    private JPanel getJPanel35() {
501
        if (panelHasta == null) {
502
            ALabel = new JLabel();
503

  
504
            FlowLayout flowLayout12 = new FlowLayout();
505
            panelHasta = new JPanel();
506
            panelHasta.setLayout(flowLayout12);
507
            ALabel.setText("A:");
508
            ALabel.setPreferredSize(new java.awt.Dimension(18, 16));
509
            ALabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
510
            flowLayout12.setAlignment(java.awt.FlowLayout.LEFT);
511
            panelHasta.add(ALabel, null);
512
            panelHasta.add(getAText(), null);
513
        }
514

  
515
        return panelHasta;
516
    }
517

  
518
    /**
519
     * This method initializes jTextField
520
     *
521
     * @return javax.swing.JTextField
522
     */
523
    private JTextField getDeText() {
524
        if (deText == null) {
525
            deText = new JTextField();
526
            deText.setPreferredSize(new java.awt.Dimension(100, 20));
527
        }
528

  
529
        return deText;
530
    }
531

  
532
    /**
533
     * This method initializes jTextField
534
     *
535
     * @return javax.swing.JTextField
536
     */
537
    private JTextField getAText() {
538
        if (aText == null) {
539
            aText = new JTextField();
540
            aText.setPreferredSize(new java.awt.Dimension(100, 20));
541
        }
542

  
543
        return aText;
544
    }
545

  
546
    /**
547
     * This method initializes jPanel3
548
     *
549
     * @return javax.swing.JPanel
550
     */
551
    private JPanel getJPanel37() {
552
        if (jPanel3 == null) {
553
            jPanel3 = new JPanel();
554
            jPanel3.setPreferredSize(new java.awt.Dimension(10, 10));
555
        }
556

  
557
        return jPanel3;
558
    }
559

  
560
    /**
561
     * This method initializes jPanel4
562
     *
563
     * @return javax.swing.JPanel
564
     */
565
    private JPanel getPanelSuperiores() {
566
        if (panelSuperiores == null) {
567
            ULXLabel = new JLabel();
568
            ULYLabel = new JLabel();
569
            jLabel4 = new JLabel();
570
            panelSuperiores = new JPanel();
571
            panelSuperiores.setBorder(javax.swing.BorderFactory.createTitledBorder(
572
                    null, "Superiores",
573
                    javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
574
                    javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));
575
            panelSuperiores.setPreferredSize(new java.awt.Dimension(213, 56));
576
            ULXLabel.setText("ULX:");
577
            jLabel4.setText("");
578
            jLabel4.setPreferredSize(new java.awt.Dimension(20, 0));
579
            ULYLabel.setText("ULY:");
580
            panelSuperiores.add(ULXLabel, null);
581
            panelSuperiores.add(getULXText(), null);
582
            panelSuperiores.add(jLabel4, null);
583
            panelSuperiores.add(ULYLabel, null);
584
            panelSuperiores.add(getULYText(), null);
585
        }
586

  
587
        return panelSuperiores;
588
    }
589

  
590
    /**
591
     * This method initializes jPanel4
592
     *
593
     * @return javax.swing.JPanel
594
     */
595
    private JPanel getPanelInferiores() {
596
        if (panelInferiores == null) {
597
            BRXLabel = new JLabel();
598
            BRYLabel = new JLabel();
599
            jLabel5 = new JLabel();
600
            panelInferiores = new JPanel();
601
            panelInferiores.setBorder(javax.swing.BorderFactory.createTitledBorder(
602
                    null, "Inferiores",
603
                    javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
604
                    javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));
605
            BRXLabel.setText("BRX:");
606
            jLabel5.setText("");
607
            jLabel5.setPreferredSize(new java.awt.Dimension(20, 0));
608
            BRYLabel.setText("BRY:");
609
            panelInferiores.add(BRXLabel, null);
610
            panelInferiores.add(getBRXText(), null);
611
            panelInferiores.add(jLabel5, null);
612
            panelInferiores.add(BRYLabel, null);
613
            panelInferiores.add(getBRYText(), null);
614
        }
615

  
616
        return panelInferiores;
617
    }
618

  
619
    /**
620
     * This method initializes jTextField
621
     *
622
     * @return javax.swing.JTextField
623
     */
624
    private JTextField getULXText() {
625
        if (ULXText == null) {
626
            ULXText = new JTextField();
627
            ULXText.setPreferredSize(new java.awt.Dimension(50, 20));
628
        }
629

  
630
        return ULXText;
631
    }
632

  
633
    /**
634
     * This method initializes jTextField
635
     *
636
     * @return javax.swing.JTextField
637
     */
638
    private JTextField getULYText() {
639
        if (ULYText == null) {
640
            ULYText = new JTextField();
641
            ULYText.setPreferredSize(new java.awt.Dimension(50, 20));
642
        }
643

  
644
        return ULYText;
645
    }
646

  
647
    /**
648
     * This method initializes jTextField
649
     *
650
     * @return javax.swing.JTextField
651
     */
652
    private JTextField getBRXText() {
653
        if (BRXText == null) {
654
            BRXText = new JTextField();
655
            BRXText.setPreferredSize(new java.awt.Dimension(50, 20));
656
        }
657

  
658
        return BRXText;
659
    }
660

  
661
    /**
662
     * This method initializes jTextField
663
     *
664
     * @return javax.swing.JTextField
665
     */
666
    private JTextField getBRYText() {
667
        if (BRYText == null) {
668
            BRYText = new JTextField();
669
            BRYText.setPreferredSize(new java.awt.Dimension(50, 20));
670
        }
671

  
672
        return BRYText;
673
    }
674

  
675
    /**
676
     * This method initializes jPanel
677
     *
678
     * @return javax.swing.JPanel
679
     */
680
    private JPanel getJPanel() {
681
        if (jPanel == null) {
682
            jPanel = new JPanel();
683
            jPanel.add(getCoordenadasCombo(), null);
684
        }
685

  
686
        return jPanel;
687
    }
688

  
689
    /**
690
     * This method initializes jPanel1
691
     *
692
     * @return javax.swing.JPanel
693
     */
694
    private JPanel getJPanel1() {
695
        if (jPanel1 == null) {
696
            jPanel1 = new JPanel();
697
            jPanel1.setPreferredSize(new java.awt.Dimension(10, 10));
698
        }
699

  
700
        return jPanel1;
701
    }
702

  
703
    /**
704
     * This method initializes jPanel6
705
     *
706
     * @return javax.swing.JPanel
707
     */
708
    private JPanel getJPanel6() {
709
        if (jPanel6 == null) {
710
            jPanel6 = new JPanel();
711
            jPanel6.setPreferredSize(new java.awt.Dimension(10, 10));
712
        }
713

  
714
        return jPanel6;
715
    }
716

  
717
    /**
718
     * This method initializes jPanel8
719
     *
720
     * @return javax.swing.JPanel
721
     */
722
    private JPanel getJPanel8() {
723
        if (jPanel8 == null) {
724
            jPanel8 = new JPanel();
725
            jPanel8.setPreferredSize(new java.awt.Dimension(10, 100));
726
        }
727

  
728
        return jPanel8;
729
    }
730

  
731
    /**
732
     * This method initializes jPanel9
733
     *
734
     * @return javax.swing.JPanel
735
     */
736
    private JPanel getPanelTextTitulo() {
737
        if (panelTextTitulo == null) {
738
            panelTextTitulo = new JPanel();
739
            panelTextTitulo.add(getTituloText(), null);
740
        }
741

  
742
        return panelTextTitulo;
743
    }
744

  
745
    /**
746
     * This method initializes jPanel9
747
     *
748
     * @return javax.swing.JPanel
749
     */
750
    private JPanel getPanelCategoriaCombo() {
751
        if (panelCategoriaCombo == null) {
752
            panelCategoriaCombo = new JPanel();
753
            panelCategoriaCombo.add(getCategoriaCombo(), null);
754
        }
755

  
756
        return panelCategoriaCombo;
757
    }
758

  
759
    /**
760
     * This method initializes jPanel9
761
     *
762
     * @return javax.swing.JPanel
763
     */
764
    private JPanel getPanelEscalaCombo() {
765
        if (panelEscalaCombo == null) {
766
            panelEscalaCombo = new JPanel();
767
            panelEscalaCombo.add(getEscalaCombo(), null);
768
        }
769

  
770
        return panelEscalaCombo;
771
    }
772

  
773
    /**
774
     * This method initializes jPanel9
775
     *
776
     * @return javax.swing.JPanel
777
     */
778
    private JPanel getPanelProveedorText() {
779
        if (panelProveedorText == null) {
780
            panelProveedorText = new JPanel();
781
            panelProveedorText.add(getProveedorText(), null);
782
        }
783

  
784
        return panelProveedorText;
785
    }
786

  
787
    /**
788
     * This method initializes jPanel7
789
     *
790
     * @return javax.swing.JPanel
791
     */
792
    private JPanel getPanelLabResumen() {
793
        if (panelLabResumen == null) {
794
            resumenLabel = new JLabel();
795

  
796
            GridLayout gridLayout1 = new GridLayout();
797
            panelLabResumen = new JPanel();
798
            panelLabResumen.setLayout(gridLayout1);
799
            gridLayout1.setRows(1);
800
            resumenLabel.setText("Resumen");
801
            panelLabResumen.add(resumenLabel, null);
802
        }
803

  
804
        return panelLabResumen;
805
    }
806

  
807
    /**
808
     * This method initializes jPanel7
809
     *
810
     * @return javax.swing.JPanel
811
     */
812
    private JPanel getPanelTextResumen() {
813
        if (panelTextResumen == null) {
814
            panelTextResumen = new JPanel();
815
            panelTextResumen.add(getResumenText(), null);
816
        }
817

  
818
        return panelTextResumen;
819
    }
820

  
821
    /**
822
     * This method initializes jPanel7
823
     *
824
     * @return javax.swing.JPanel
825
     */
826
    private JPanel getJPanel7() {
827
        if (jPanel7 == null) {
828
            jPanel7 = new JPanel();
829
        }
830

  
831
        return jPanel7;
832
    }
833

  
834
    /**
835
     * This method initializes jPanel9
836
     *
837
     * @return javax.swing.JPanel
838
     */
839
    private JPanel getPanelLabClave() {
840
        if (panelLabClave == null) {
841
            claveLabel = new JLabel();
842

  
843
            GridLayout gridLayout21 = new GridLayout();
844
            panelLabClave = new JPanel();
845
            panelLabClave.setLayout(gridLayout21);
846
            gridLayout21.setRows(1);
847
            claveLabel.setText("Palabras Clave");
848
            panelLabClave.add(claveLabel, null);
849
        }
850

  
851
        return panelLabClave;
852
    }
853

  
854
    /**
855
     * This method initializes jPanel9
856
     *
857
     * @return javax.swing.JPanel
858
     */
859
    private JPanel getPanelTextClave() {
860
        if (panelTextClave == null) {
861
            panelTextClave = new JPanel();
862
            panelTextClave.add(getClaveText(), null);
863
        }
864

  
865
        return panelTextClave;
866
    }
867

  
868
    /**
869
     * This method initializes jPanel9
870
     *
871
     * @return javax.swing.JPanel
872
     */
873
    private JPanel getJPanel9() {
874
        if (jPanel9 == null) {
875
            jPanel9 = new JPanel();
876
        }
877

  
878
        return jPanel9;
879
    }
880

  
881
    /**
882
     * This method initializes jPanel9
883
     *
884
     * @return javax.swing.JPanel
885
     */
886
    private JPanel getJPanel10() {
887
        if (jPanel10 == null) {
888
            jPanel10 = new JPanel();
889
        }
890

  
891
        return jPanel10;
892
    }
893

  
894
    /**
895
     * This method initializes jTextField
896
     *
897
     * @return javax.swing.JTextField
898
     */
899
    private JTextField getResumenText() {
900
        if (resumenText == null) {
901
            resumenText = new JTextField();
902
            resumenText.setPreferredSize(new java.awt.Dimension(300, 20));
903
        }
904

  
905
        return resumenText;
906
    }
907

  
908
    /**
909
     * This method initializes jTextField
910
     *
911
     * @return javax.swing.JTextField
912
     */
913
    private JTextField getClaveText() {
914
        if (claveText == null) {
915
            claveText = new JTextField();
916
            claveText.setPreferredSize(new java.awt.Dimension(300, 20));
917
        }
918

  
919
        return claveText;
920
    }
921

  
922
    /**
923
     * This method initializes jComboBox
924
     *
925
     * @return javax.swing.JComboBox
926
     */
927
    private JComboBox getCoordenadasCombo() {
928
        if (coordenadasCombo == null) {
929
            String[] coordenadas = {
930
                    "igual", "contiene", "incluye", "est? totalmente fuera de"
931
                };
932
            coordenadasCombo = new JComboBox(coordenadas);
933
            coordenadasCombo.setPreferredSize(new java.awt.Dimension(300, 25));
934
        }
935

  
936
        return coordenadasCombo;
937
    }
938

  
939
    /**
940
     * This method initializes jPanel4
941
     *
942
     * @return javax.swing.JPanel
943
     */
944
    private JPanel getJPanel4() {
945
        if (jPanel4 == null) {
946
            jPanel4 = new JPanel();
947
            jPanel4.setLayout(new BoxLayout(jPanel4, BoxLayout.Y_AXIS));
948
            jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(
949
                    null, "Coordenadas",
950
                    javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
951
                    javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));
952
            jPanel4.setPreferredSize(new java.awt.Dimension(315, 240));
953
            jPanel4.add(getPanelSuperiores(), null);
954
            jPanel4.add(getPanelInferiores(), null);
955
            jPanel4.add(getJPanel(), null);
956
        }
957

  
958
        return jPanel4;
959
    }
960

  
961
    /**
962
     * This method initializes jPanel5
963
     *
964
     * @return javax.swing.JPanel
965
     */
966
    private JPanel getComponentesPanel() {
967
        if (componentesPanel == null) {
968
            componentesPanel = new JPanel();
969
            componentesPanel.setPreferredSize(new java.awt.Dimension(665, 435));
970
            componentesPanel.add(getJPanel33(), null);
971
            componentesPanel.add(getJPanel3(), null);
972
        }
973

  
974
        return componentesPanel;
975
    }
976

  
977
    /* (non-Javadoc)
978
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getTitle()
979
     */
980
    public String getTitle() {
981
        if (getTituloText().getText().equals("")) {
982
            return null;
983
        }
984

  
985
        return getTituloText().getText();
986
    }
987

  
988
    /* (non-Javadoc)
989
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getTitleOption()
990
     */
991
    public String getTitleOption() {
992
        if (getExactaButton().isSelected()) {
993
            return "E";
994
        }
995

  
996
        if (getCualquieraButton().isSelected()) {
997
            return "Y";
998
        }
999

  
1000
        if (getTodasButton().isSelected()) {
1001
            return "A";
1002
        }
1003

  
1004
        return null;
1005
    }
1006

  
1007
    /* (non-Javadoc)
1008
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getAbstract()
1009
     */
1010
    public String getAbstract() {
1011
        if (getResumenText().getText().equals("")) {
1012
            return null;
1013
        }
1014

  
1015
        return getResumenText().getText();
1016
    }
1017

  
1018
    /* (non-Javadoc)
1019
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getKeys()
1020
     */
1021
    public String getKeys() {
1022
        if (getClaveText().getText().equals("")) {
1023
            return null;
1024
        }
1025

  
1026
        return getClaveText().getText();
1027
    }
1028

  
1029
    /* (non-Javadoc)
1030
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getCathegory()
1031
     */
1032
    public String getCathegory() {
1033
        return (String) getCategoriaCombo().getSelectedItem();
1034
    }
1035

  
1036
    /* (non-Javadoc)
1037
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getScale()
1038
     */
1039
    public String getScale() {
1040
        return (String) getEscalaCombo().getSelectedItem();
1041
    }
1042

  
1043
    /* (non-Javadoc)
1044
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getDateTo()
1045
     */
1046
    public String getDateTo() {
1047
        if (getAText().getText().equals("")) {
1048
            return null;
1049
        }
1050

  
1051
        return getAText().getText();
1052
    }
1053

  
1054
    /* (non-Javadoc)
1055
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getDateFrom()
1056
     */
1057
    public String getDateFrom() {
1058
        if (getDeText().getText().equals("")) {
1059
            return null;
1060
        }
1061

  
1062
        return getDeText().getText();
1063
    }
1064

  
1065
    /* (non-Javadoc)
1066
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getCoordinates()
1067
     */
1068
    public Coordinates getCoordinates() {
1069
        return new Coordinates(getULXText().getText(), getULYText().getText(),
1070
                getBRXText().getText(), getBRYText().getText());
1071
    }
1072

  
1073
    /* (non-Javadoc)
1074
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getCoordinatesOption()
1075
     */
1076
    public String getCoordinatesOption() {
1077
        return (String) getCoordenadasCombo().getSelectedItem();
1078
    }
1079

  
1080
    /* (non-Javadoc)
1081
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getProvider()
1082
     */
1083
    public String getProvider() {
1084
        if (getProveedorText().getText().equals("")) {
1085
            return null;
1086
        }
1087

  
1088
        return getProveedorText().getText();
1089
    }
1090

  
1091
    /* (non-Javadoc)
1092
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getRestrictAreaClicked()
1093
     */
1094
    public boolean getRestrictAreaClicked() {
1095
        // TODO Auto-generated method stub
1096
        return false;
1097
    }
1098

  
1099
    /* (non-Javadoc)
1100
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#setTitle(java.lang.String)
1101
     */
1102
    public void setTitle(String title) {
1103
        getTituloText().setText(title);
1104
        
1105
    }
1106

  
1107
    
1108
} //  @jve:decl-index=0:visual-constraint="10,10"
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/ISearchPanel.java
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

  
44
import es.gva.cit.catalogClient.querys.Coordinates;
45

  
46
/**
47
 * This interface is implemented by all the classes that implements the
48
 * Search panel.
49
 * @author Jorge Piera Llodra (piera_jor@gva.es)
50
 */
51
public interface ISearchPanel {
52
    	public String getTitle();
53
    	public String getTitleOption();
54
    	public String getAbstract();
55
    	public String getKeys();
56
    	public String getCathegory();
57
    	public String getScale();
58
    	public String getDateTo();
59
    	public String getDateFrom();
60
    	public Coordinates getCoordinates();
61
    	public String getCoordinatesOption();
62
    	public String getProvider();
63
    	public void setTitle(String title);
64
    	    	
65
       
66
}
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/SearchMiniPanel.java
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 javax.swing.JPanel;
44

  
45
import javax.swing.BoxLayout;
46
import javax.swing.JLabel;
47
import javax.swing.JTextField;
48

  
49
import es.gva.cit.catalogClient.querys.Coordinates;
50
/**
51
 * This class is the panel for the mini-search form 
52
 * 
53
 * @author Jorge Piera Llodra (piera_jor@gva.es)
54
 */
55
public class SearchMiniPanel extends AbstractSearchPanel{
56

  
57
    
58
	private JPanel topPanel = null;
59
	private JLabel t?tleLabel = null;
60
	private JTextField titleText = null;
61
	/**
62
	 * This method initializes 
63
	 * 
64
	 */
65
	public SearchMiniPanel() {
66
		super();
67
		initialize();
68
	}
69
	/**
70
	 * This method initializes this
71
	 * 
72
	 * @return void
73
	 */
74
	private void initialize() {
75
        this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
76
        this.setBounds(0, 0, 297, 58);
77
        this.add(getTopPanel(), null);
78
			
79
	}
80
	/**
81
	 * This method initializes jPanel	
82
	 * 	
83
	 * @return javax.swing.JPanel	
84
	 */    
85
	private JPanel getTopPanel() {
86
		if (topPanel == null) {
87
			t?tleLabel = new JLabel();
88
			topPanel = new JPanel();
89
			t?tleLabel.setText("T?tulo");
90
			topPanel.setPreferredSize(new java.awt.Dimension(252,29));
91
			topPanel.add(t?tleLabel, null);
92
			topPanel.add(getTitleText(), null);
93
		}
94
		return topPanel;
95
	}
96
	/**
97
	 * This method initializes jTextField	
98
	 * 	
99
	 * @return javax.swing.JTextField	
100
	 */    
101
	private JTextField getTitleText() {
102
		if (titleText == null) {
103
			titleText = new JTextField();
104
			titleText.setPreferredSize(new java.awt.Dimension(200,19));
105
		}
106
		return titleText;
107
	}
108
    /* (non-Javadoc)
109
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getTitle()
110
     */
111
    public String getTitle() {
112
        if (getTitleText().getText().equals("")) {
113
            return null;
114
        }
115

  
116
        return getTitleText().getText();
117
    }
118
    /* (non-Javadoc)
119
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getTitleOption()
120
     */
121
    public String getTitleOption() {
122
        //Y = anY
123
        return "Y";
124
    }
125
    /* (non-Javadoc)
126
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getAbstract()
127
     */
128
    public String getAbstract() {
129
        // TODO Auto-generated method stub
130
        return null;
131
    }
132
    /* (non-Javadoc)
133
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getKeys()
134
     */
135
    public String getKeys() {
136
        // TODO Auto-generated method stub
137
        return null;
138
    }
139
    /* (non-Javadoc)
140
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getCathegory()
141
     */
142
    public String getCathegory() {
143
        // TODO Auto-generated method stub
144
        return null;
145
    }
146
    /* (non-Javadoc)
147
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getScale()
148
     */
149
    public String getScale() {
150
        // TODO Auto-generated method stub
151
        return null;
152
    }
153
    /* (non-Javadoc)
154
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getDateTo()
155
     */
156
    public String getDateTo() {
157
        // TODO Auto-generated method stub
158
        return null;
159
    }
160
    /* (non-Javadoc)
161
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getDateFrom()
162
     */
163
    public String getDateFrom() {
164
        // TODO Auto-generated method stub
165
        return null;
166
    }
167
    /* (non-Javadoc)
168
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getCoordinates()
169
     */
170
    public Coordinates getCoordinates() {
171
        // TODO Auto-generated method stub
172
        return null;
173
    }
174
    /* (non-Javadoc)
175
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getCoordinatesOption()
176
     */
177
    public String getCoordinatesOption() {
178
        // TODO Auto-generated method stub
179
        return null;
180
    }
181
    /* (non-Javadoc)
182
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#getProvider()
183
     */
184
    public String getProvider() {
185
        // TODO Auto-generated method stub
186
        return null;
187
    }
188
    /* (non-Javadoc)
189
     * @see es.gva.cit.catalogClient.ui.ISearchPanel#setTitle(java.lang.String)
190
     */
191
    public void setTitle(String title) {
192
        getTitleText().setText(title);
193
        
194
    }
195
    
196
}  //  @jve:decl-index=0:visual-constraint="10,10"
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/AbstractSearchPanel.java
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 javax.swing.JPanel;
44

  
45
/**
46
 * This class must be implemented by all the classes that implements the 
47
 * Search panel
48
 * @author Jorge Piera Llodra (piera_jor@gva.es)
49
 */
50
public abstract class AbstractSearchPanel extends JPanel implements ISearchPanel{
51

  
52
   
53
}
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/SearchDialog.java
41 41
package es.gva.cit.catalogClient.ui;
42 42

  
43 43
import es.gva.cit.catalogClient.CatalogClient;
44
import es.gva.cit.catalogClient.utils.Frames;
45 44

  
46 45
import java.awt.event.WindowEvent;
47 46
import java.awt.event.WindowListener;
......
73 72
     * This method initializes jDialog
74 73
     */
75 74
    private void initialize(boolean isMinimized,String title) {
76
        setBounds(0,0,300, 130);
77
        Frames.CenterFrame(this);
75
        setBounds(0,0,625, 115);
76
        
78 77
        this.setTitle("B?squeda de Cat?logo");
79 78

  
80
        //setResizable(false);
79
        setResizable(false);
81 80
        setName("search");
82 81

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff