root / branches / v05 / applications / appCatalogYNomenclatorClient / src / es / gva / cit / catalogClient / ui / search / SearchLowerPanel.java @ 4392
History | View | Annotate | Download (34.6 KB)
1 |
|
---|---|
2 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
3 |
*
|
4 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
19 |
*
|
20 |
* For more information, contact:
|
21 |
*
|
22 |
* Generalitat Valenciana
|
23 |
* Conselleria d'Infraestructures i Transport
|
24 |
* Av. Blasco Ib??ez, 50
|
25 |
* 46010 VALENCIA
|
26 |
* SPAIN
|
27 |
*
|
28 |
* +34 963862235
|
29 |
* gvsig@gva.es
|
30 |
* www.gvsig.gva.es
|
31 |
*
|
32 |
* or
|
33 |
*
|
34 |
* IVER T.I. S.A
|
35 |
* Salamanca 50
|
36 |
* 46005 Valencia
|
37 |
* Spain
|
38 |
*
|
39 |
* +34 963163400
|
40 |
* dac@iver.es
|
41 |
*/
|
42 |
package es.gva.cit.catalogClient.ui.search; |
43 |
import es.gva.cit.catalogClient.querys.Coordinates; |
44 |
import es.gva.cit.catalogClient.schemas.Schemas; |
45 |
import es.gva.cit.catalogClient.traductor.ITranslator; |
46 |
import es.gva.cit.catalogClient.traductor.Translator; |
47 |
import es.gva.cit.catalogClient.utils.Doubles; |
48 |
import com.iver.utiles.swing.jcomboServer.ServerData; |
49 |
import java.awt.Color; |
50 |
import java.awt.FlowLayout; |
51 |
import java.awt.GridLayout; |
52 |
import java.text.SimpleDateFormat; |
53 |
import javax.swing.BoxLayout; |
54 |
import javax.swing.ButtonGroup; |
55 |
import javax.swing.JComboBox; |
56 |
import javax.swing.JFormattedTextField; |
57 |
import javax.swing.JLabel; |
58 |
import javax.swing.JPanel; |
59 |
import javax.swing.JRadioButton; |
60 |
import javax.swing.JTextField; |
61 |
import javax.swing.border.TitledBorder; |
62 |
|
63 |
/**
|
64 |
*
|
65 |
*
|
66 |
*
|
67 |
* @author Jorge Piera Llodra (piera_jor@gva.es)
|
68 |
*/
|
69 |
public class SearchLowerPanel extends JPanel { |
70 |
/**
|
71 |
*
|
72 |
*
|
73 |
*/
|
74 |
private JPanel panelBotones = null; |
75 |
/**
|
76 |
*
|
77 |
*
|
78 |
*/
|
79 |
private JRadioButton exactaButton = null; |
80 |
/**
|
81 |
*
|
82 |
*
|
83 |
*/
|
84 |
private JRadioButton cualquieraButton = null; |
85 |
/**
|
86 |
*
|
87 |
*
|
88 |
*/
|
89 |
private JRadioButton todasButton = null; |
90 |
/**
|
91 |
*
|
92 |
*
|
93 |
*/
|
94 |
private JComboBox categoriaCombo = null; |
95 |
/**
|
96 |
*
|
97 |
*
|
98 |
*/
|
99 |
private JComboBox escalaCombo = null; |
100 |
/**
|
101 |
*
|
102 |
*
|
103 |
*/
|
104 |
private JPanel panelLabCategoria = null; |
105 |
/**
|
106 |
*
|
107 |
*
|
108 |
*/
|
109 |
private JLabel categoriaLab = null; |
110 |
/**
|
111 |
*
|
112 |
*
|
113 |
*/
|
114 |
private JPanel panelLabEscala = null; |
115 |
/**
|
116 |
*
|
117 |
*
|
118 |
*/
|
119 |
private JLabel escalaLabel = null; |
120 |
/**
|
121 |
*
|
122 |
*
|
123 |
*/
|
124 |
private JPanel panelLabProveedor = null; |
125 |
/**
|
126 |
*
|
127 |
*
|
128 |
*/
|
129 |
private JLabel proveedorLabel = null; |
130 |
/**
|
131 |
*
|
132 |
*
|
133 |
*/
|
134 |
private JTextField providerText = null; |
135 |
/**
|
136 |
*
|
137 |
*
|
138 |
*/
|
139 |
private JPanel panelAjusteBotones = null; |
140 |
/**
|
141 |
*
|
142 |
*
|
143 |
*/
|
144 |
private JPanel lowerRightPanel = null; |
145 |
/**
|
146 |
*
|
147 |
*
|
148 |
*/
|
149 |
private JPanel panelLabFecha = null; |
150 |
/**
|
151 |
*
|
152 |
*
|
153 |
*/
|
154 |
private JPanel lowerLeftPanel = null; |
155 |
/**
|
156 |
*
|
157 |
*
|
158 |
*/
|
159 |
private JPanel panelDe = null; |
160 |
/**
|
161 |
*
|
162 |
*
|
163 |
*/
|
164 |
private JPanel panelHasta = null; |
165 |
/**
|
166 |
*
|
167 |
*
|
168 |
*/
|
169 |
private JLabel deLabel = null; |
170 |
/**
|
171 |
*
|
172 |
*
|
173 |
*/
|
174 |
private JFormattedTextField fromText = null; |
175 |
/**
|
176 |
*
|
177 |
*
|
178 |
*/
|
179 |
private JLabel ALabel = null; |
180 |
/**
|
181 |
*
|
182 |
*
|
183 |
*/
|
184 |
private JFormattedTextField toText = null; |
185 |
/**
|
186 |
*
|
187 |
*
|
188 |
*/
|
189 |
private JPanel jPanel3 = null; |
190 |
/**
|
191 |
*
|
192 |
*
|
193 |
*/
|
194 |
private JPanel panelSuperiores = null; |
195 |
/**
|
196 |
*
|
197 |
*
|
198 |
*/
|
199 |
private JPanel panelInferiores = null; |
200 |
/**
|
201 |
*
|
202 |
*
|
203 |
*/
|
204 |
private JLabel ULXLabel = null; |
205 |
/**
|
206 |
*
|
207 |
*
|
208 |
*/
|
209 |
private JTextField ULXText = null; |
210 |
/**
|
211 |
*
|
212 |
*
|
213 |
*/
|
214 |
private JLabel ULYLabel = null; |
215 |
/**
|
216 |
*
|
217 |
*
|
218 |
*/
|
219 |
private JTextField ULYText = null; |
220 |
/**
|
221 |
*
|
222 |
*
|
223 |
*/
|
224 |
private JLabel BRXLabel = null; |
225 |
/**
|
226 |
*
|
227 |
*
|
228 |
*/
|
229 |
private JTextField BRXText = null; |
230 |
/**
|
231 |
*
|
232 |
*
|
233 |
*/
|
234 |
private JLabel BRYLabel = null; |
235 |
/**
|
236 |
*
|
237 |
*
|
238 |
*/
|
239 |
private JTextField BRYText = null; |
240 |
/**
|
241 |
*
|
242 |
*
|
243 |
*/
|
244 |
private JPanel jPanel = null; |
245 |
/**
|
246 |
*
|
247 |
*
|
248 |
*/
|
249 |
private JPanel jPanel8 = null; |
250 |
/**
|
251 |
*
|
252 |
*
|
253 |
*/
|
254 |
private JPanel panelCategoriaCombo = null; |
255 |
/**
|
256 |
*
|
257 |
*
|
258 |
*/
|
259 |
private JPanel panelEscalaCombo = null; |
260 |
/**
|
261 |
*
|
262 |
*
|
263 |
*/
|
264 |
private JPanel panelProveedorText = null; |
265 |
/**
|
266 |
*
|
267 |
*
|
268 |
*/
|
269 |
private JPanel panelLabResumen = null; |
270 |
/**
|
271 |
*
|
272 |
*
|
273 |
*/
|
274 |
private JPanel panelTextResumen = null; |
275 |
/**
|
276 |
*
|
277 |
*
|
278 |
*/
|
279 |
private JPanel panelLabClave = null; |
280 |
/**
|
281 |
*
|
282 |
*
|
283 |
*/
|
284 |
private JPanel panelTextClave = null; |
285 |
/**
|
286 |
*
|
287 |
*
|
288 |
*/
|
289 |
private JLabel resumenLabel = null; |
290 |
/**
|
291 |
*
|
292 |
*
|
293 |
*/
|
294 |
private JLabel claveLabel = null; |
295 |
/**
|
296 |
*
|
297 |
*
|
298 |
*/
|
299 |
private JTextField resumenText = null; |
300 |
/**
|
301 |
*
|
302 |
*
|
303 |
*/
|
304 |
private JTextField keyWordText = null; |
305 |
/**
|
306 |
*
|
307 |
*
|
308 |
*/
|
309 |
private JComboBox coordenadasCombo = null; |
310 |
/**
|
311 |
*
|
312 |
*
|
313 |
*/
|
314 |
private JPanel panelCoordenadas = null; |
315 |
/**
|
316 |
*
|
317 |
*
|
318 |
*/
|
319 |
private JPanel lowerPanel = null; |
320 |
/**
|
321 |
*
|
322 |
*
|
323 |
*/
|
324 |
private ITranslator translator = null; |
325 |
|
326 |
/**
|
327 |
*
|
328 |
*
|
329 |
*/
|
330 |
private String serverType = null; |
331 |
|
332 |
/**
|
333 |
* This method initializes
|
334 |
*
|
335 |
*
|
336 |
* @param translator
|
337 |
* @param serverType
|
338 |
* @param serverProfile
|
339 |
*/
|
340 |
public SearchLowerPanel(ITranslator translator, String serverType, String serverProfile) { |
341 |
super();
|
342 |
this.translator = translator;
|
343 |
this.serverType = serverType;
|
344 |
initialize(); |
345 |
disableComponents(serverType,serverProfile); |
346 |
} |
347 |
|
348 |
/**
|
349 |
* This method initializes this
|
350 |
*
|
351 |
*/
|
352 |
private void initialize() { |
353 |
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); |
354 |
this.setLocation(0, 0); |
355 |
this.setSize(565, 335); |
356 |
this.setPreferredSize(new java.awt.Dimension(565,335)); |
357 |
this.add(getLowerPanel(), null); |
358 |
} |
359 |
|
360 |
/**
|
361 |
* This method initializes jPanel
|
362 |
*
|
363 |
*
|
364 |
* @return javax.swing.JPanel
|
365 |
*/
|
366 |
private JPanel getPanelBotones() { |
367 |
if (panelBotones == null) { |
368 |
panelBotones = new JPanel(); |
369 |
panelBotones.setLayout(new BoxLayout(panelBotones, BoxLayout.Y_AXIS)); |
370 |
panelBotones.setBorder(javax.swing.BorderFactory.createTitledBorder( |
371 |
null, Translator.getText(translator,"concordancia"), |
372 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
373 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
374 |
panelBotones.add(getExactaButton(), null);
|
375 |
panelBotones.add(getCualquieraButton(), null);
|
376 |
panelBotones.add(getTodasButton(), null);
|
377 |
ButtonGroup group = new ButtonGroup(); |
378 |
group.add(getExactaButton()); |
379 |
group.add(getCualquieraButton()); |
380 |
group.add(getTodasButton()); |
381 |
} |
382 |
return panelBotones;
|
383 |
} |
384 |
|
385 |
/**
|
386 |
* This method initializes jRadioButton
|
387 |
*
|
388 |
*
|
389 |
* @return javax.swing.JRadioButton
|
390 |
*/
|
391 |
private JRadioButton getExactaButton() { |
392 |
if (exactaButton == null) { |
393 |
exactaButton = new JRadioButton(); |
394 |
exactaButton.setText(Translator.getText(translator,"exactSentence"));
|
395 |
exactaButton.setSelected(true);
|
396 |
} |
397 |
return exactaButton;
|
398 |
} |
399 |
|
400 |
/**
|
401 |
* This method initializes jRadioButton1
|
402 |
*
|
403 |
*
|
404 |
* @return javax.swing.JRadioButton
|
405 |
*/
|
406 |
private JRadioButton getCualquieraButton() { |
407 |
if (cualquieraButton == null) { |
408 |
cualquieraButton = new JRadioButton(); |
409 |
cualquieraButton.setText(Translator.getText(translator,"anyWord"));
|
410 |
} |
411 |
return cualquieraButton;
|
412 |
} |
413 |
|
414 |
/**
|
415 |
* This method initializes jRadioButton2
|
416 |
*
|
417 |
*
|
418 |
* @return javax.swing.JRadioButton
|
419 |
*/
|
420 |
private JRadioButton getTodasButton() { |
421 |
if (todasButton == null) { |
422 |
todasButton = new JRadioButton(); |
423 |
todasButton.setText(Translator.getText(translator,"allWords"));
|
424 |
} |
425 |
return todasButton;
|
426 |
} |
427 |
|
428 |
/**
|
429 |
* This method initializes jComboBox
|
430 |
*
|
431 |
*
|
432 |
* @return javax.swing.JComboBox
|
433 |
*/
|
434 |
private JComboBox getCategoriaCombo() { |
435 |
if (categoriaCombo == null) { |
436 |
String[] categorias = { |
437 |
Translator.getText(translator,"cathegoryAny") ,
|
438 |
Translator.getText(translator,"cathegoryBiota") ,
|
439 |
Translator.getText(translator,"cathegoryBoundaries") ,
|
440 |
Translator.getText(translator,"cathegoryClimatologyMeteorologyAtmosphere") ,
|
441 |
Translator.getText(translator,"cathegoryEconomy") ,
|
442 |
Translator.getText(translator,"cathegoryElevation") ,
|
443 |
Translator.getText(translator,"cathegoryEnvironment") ,
|
444 |
Translator.getText(translator,"cathegoryFarming") ,
|
445 |
Translator.getText(translator,"cathegoryGeoscientificInformation") ,
|
446 |
Translator.getText(translator,"cathegoryHealth") ,
|
447 |
Translator.getText(translator,"cathegoryImageryBaseMapsEarthCover") ,
|
448 |
Translator.getText(translator,"cathegoryInlandWaters") ,
|
449 |
Translator.getText(translator,"cathegoryIntelligenceMilitary"),
|
450 |
Translator.getText(translator,"cathegoryLocation") ,
|
451 |
Translator.getText(translator,"cathegoryOceans"),
|
452 |
Translator.getText(translator,"cathegoryPlanningCadastre") ,
|
453 |
Translator.getText(translator,"cathegorySociety") ,
|
454 |
Translator.getText(translator,"cathegoryStructure") ,
|
455 |
Translator.getText(translator,"cathegoryTransportation") ,
|
456 |
Translator.getText(translator,"cathegoryUtilitiesCommunication")
|
457 |
}; |
458 |
categoriaCombo = new JComboBox(categorias); |
459 |
categoriaCombo.setPreferredSize(new java.awt.Dimension(250,20)); |
460 |
categoriaCombo.setBackground(Color.white);
|
461 |
} |
462 |
return categoriaCombo;
|
463 |
} |
464 |
|
465 |
/**
|
466 |
* This method initializes jComboBox
|
467 |
*
|
468 |
*
|
469 |
* @return javax.swing.JComboBox
|
470 |
*/
|
471 |
private JComboBox getEscalaCombo() { |
472 |
if (escalaCombo == null) { |
473 |
String[] escalas = { |
474 |
Translator.getText(translator,"scaleAny") ,
|
475 |
Translator.getText(translator,"scaleI") ,
|
476 |
Translator.getText(translator,"scaleII") ,
|
477 |
Translator.getText(translator,"scaleIII") ,
|
478 |
Translator.getText(translator,"scaleIV") ,
|
479 |
Translator.getText(translator,"scaleV") ,
|
480 |
Translator.getText(translator,"scaleVI")
|
481 |
}; |
482 |
escalaCombo = new JComboBox(escalas); |
483 |
escalaCombo.setPreferredSize(new java.awt.Dimension(250,20)); |
484 |
escalaCombo.setBackground(Color.white);
|
485 |
} |
486 |
return escalaCombo;
|
487 |
} |
488 |
|
489 |
/**
|
490 |
* This method initializes jPanel
|
491 |
*
|
492 |
*
|
493 |
* @return javax.swing.JPanel
|
494 |
*/
|
495 |
private JPanel getPanelLabCategoria() { |
496 |
if (panelLabCategoria == null) { |
497 |
categoriaLab = new JLabel(); |
498 |
GridLayout gridLayout5 = new GridLayout(); |
499 |
panelLabCategoria = new JPanel(); |
500 |
panelLabCategoria.setLayout(gridLayout5); |
501 |
categoriaLab.setText(Translator.getText(translator,"cathegory"));
|
502 |
gridLayout5.setRows(1);
|
503 |
panelLabCategoria.add(categoriaLab, null);
|
504 |
} |
505 |
return panelLabCategoria;
|
506 |
} |
507 |
|
508 |
/**
|
509 |
* This method initializes jPanel
|
510 |
*
|
511 |
*
|
512 |
* @return javax.swing.JPanel
|
513 |
*/
|
514 |
private JPanel getPanelLabEscala() { |
515 |
if (panelLabEscala == null) { |
516 |
escalaLabel = new JLabel(); |
517 |
GridLayout gridLayout2 = new GridLayout(); |
518 |
panelLabEscala = new JPanel(); |
519 |
panelLabEscala.setLayout(gridLayout2); |
520 |
gridLayout2.setRows(1);
|
521 |
escalaLabel.setText(Translator.getText(translator,"scale"));
|
522 |
panelLabEscala.add(escalaLabel, null);
|
523 |
} |
524 |
return panelLabEscala;
|
525 |
} |
526 |
|
527 |
/**
|
528 |
* This method initializes jPanel
|
529 |
*
|
530 |
*
|
531 |
* @return javax.swing.JPanel
|
532 |
*/
|
533 |
private JPanel getPanelLabProveedor() { |
534 |
if (panelLabProveedor == null) { |
535 |
proveedorLabel = new JLabel(); |
536 |
panelLabProveedor = new JPanel(); |
537 |
GridLayout gridLayout2 = new GridLayout(); |
538 |
panelLabProveedor.setLayout(gridLayout2); |
539 |
proveedorLabel.setText(Translator.getText(translator,"provider"));
|
540 |
panelLabProveedor.add(proveedorLabel, null);
|
541 |
} |
542 |
return panelLabProveedor;
|
543 |
} |
544 |
|
545 |
/**
|
546 |
* This method initializes jTextField
|
547 |
*
|
548 |
*
|
549 |
* @return javax.swing.JTextField
|
550 |
*/
|
551 |
private JTextField getProviderText() { |
552 |
if (providerText == null) { |
553 |
providerText = new JTextField(); |
554 |
providerText.setPreferredSize(new java.awt.Dimension(250,20)); |
555 |
} |
556 |
return providerText;
|
557 |
} |
558 |
|
559 |
/**
|
560 |
* This method initializes jPanel
|
561 |
*
|
562 |
*
|
563 |
* @return javax.swing.JPanel
|
564 |
*/
|
565 |
private JPanel getPanelAjusteBotones() { |
566 |
if (panelAjusteBotones == null) { |
567 |
GridLayout gridLayout6 = new GridLayout(); |
568 |
panelAjusteBotones = new JPanel(); |
569 |
panelAjusteBotones.setLayout(gridLayout6); |
570 |
gridLayout6.setRows(1);
|
571 |
panelAjusteBotones.add(getPanelBotones(), null);
|
572 |
} |
573 |
return panelAjusteBotones;
|
574 |
} |
575 |
|
576 |
/**
|
577 |
* This method initializes jPanel3
|
578 |
*
|
579 |
*
|
580 |
* @return javax.swing.JPanel
|
581 |
*/
|
582 |
private JPanel getJPanel3() { |
583 |
if (lowerRightPanel == null) { |
584 |
lowerRightPanel = new JPanel(); |
585 |
lowerRightPanel.setLayout(new BoxLayout( |
586 |
lowerRightPanel, BoxLayout.Y_AXIS));
|
587 |
lowerRightPanel.setPreferredSize(new java.awt.Dimension(250,330)); |
588 |
lowerRightPanel.add(getPanelCoordenadas(), null);
|
589 |
lowerRightPanel.add(getJPanel32(), null);
|
590 |
lowerRightPanel.add(getJPanel37(), null);
|
591 |
lowerRightPanel.add(getJPanel8(), null);
|
592 |
} |
593 |
return lowerRightPanel;
|
594 |
} |
595 |
|
596 |
/**
|
597 |
* This method initializes jPanel3
|
598 |
*
|
599 |
*
|
600 |
* @return javax.swing.JPanel
|
601 |
*/
|
602 |
private JPanel getJPanel32() { |
603 |
if (panelLabFecha == null) { |
604 |
TitledBorder titledBorder1 = javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,5), Translator.getText(translator,"lastUpdateDate"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null); |
605 |
panelLabFecha = new JPanel(); |
606 |
panelLabFecha.setLayout(new BoxLayout(panelLabFecha, BoxLayout.Y_AXIS)); |
607 |
panelLabFecha.setBorder(titledBorder1); |
608 |
titledBorder1.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1));
|
609 |
panelLabFecha.add(getJPanel34(), null);
|
610 |
panelLabFecha.add(getJPanel35(), null);
|
611 |
} |
612 |
return panelLabFecha;
|
613 |
} |
614 |
|
615 |
/**
|
616 |
* This method initializes jPanel3
|
617 |
*
|
618 |
*
|
619 |
* @return javax.swing.JPanel
|
620 |
*/
|
621 |
private JPanel getJPanel33() { |
622 |
if (lowerLeftPanel == null) { |
623 |
lowerLeftPanel = new JPanel(); |
624 |
lowerLeftPanel.setLayout(new BoxLayout( |
625 |
lowerLeftPanel, BoxLayout.Y_AXIS));
|
626 |
lowerLeftPanel.setPreferredSize(new java.awt.Dimension(250,330)); |
627 |
lowerLeftPanel.add(getPanelAjusteBotones(), null);
|
628 |
lowerLeftPanel.add(getPanelLabResumen(), null);
|
629 |
lowerLeftPanel.add(getPanelTextResumen(), null);
|
630 |
lowerLeftPanel.add(getPanelLabClave(), null);
|
631 |
lowerLeftPanel.add(getPanelTextClave(), null);
|
632 |
lowerLeftPanel.add(getPanelLabCategoria(), null);
|
633 |
lowerLeftPanel.add(getPanelCategoriaCombo(), null);
|
634 |
lowerLeftPanel.add(getPanelLabEscala(), null);
|
635 |
lowerLeftPanel.add(getPanelEscalaCombo(), null);
|
636 |
lowerLeftPanel.add(getPanelLabProveedor(), null);
|
637 |
lowerLeftPanel.add(getPanelProveedorText(), null);
|
638 |
} |
639 |
return lowerLeftPanel;
|
640 |
} |
641 |
|
642 |
/**
|
643 |
* This method initializes jPanel3
|
644 |
*
|
645 |
*
|
646 |
* @return javax.swing.JPanel
|
647 |
*/
|
648 |
private JPanel getJPanel34() { |
649 |
if (panelDe == null) { |
650 |
deLabel = new JLabel(); |
651 |
FlowLayout flowLayout11 = new FlowLayout(); |
652 |
panelDe = new JPanel(); |
653 |
panelDe.setLayout(flowLayout11); |
654 |
deLabel.setText(Translator.getText(translator,"from"));
|
655 |
deLabel.setPreferredSize(new java.awt.Dimension(60,15)); |
656 |
deLabel.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); |
657 |
deLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
658 |
panelDe.setComponentOrientation(java.awt.ComponentOrientation.LEFT_TO_RIGHT); |
659 |
flowLayout11.setAlignment(java.awt.FlowLayout.LEFT); |
660 |
panelDe.add(deLabel, null);
|
661 |
panelDe.add(getFromText(), null);
|
662 |
} |
663 |
return panelDe;
|
664 |
} |
665 |
|
666 |
/**
|
667 |
* This method initializes jPanel3
|
668 |
*
|
669 |
*
|
670 |
* @return javax.swing.JPanel
|
671 |
*/
|
672 |
private JPanel getJPanel35() { |
673 |
if (panelHasta == null) { |
674 |
ALabel = new JLabel(); |
675 |
FlowLayout flowLayout12 = new FlowLayout(); |
676 |
panelHasta = new JPanel(); |
677 |
panelHasta.setLayout(flowLayout12); |
678 |
ALabel.setText(Translator.getText(translator,"to"));
|
679 |
ALabel.setPreferredSize(new java.awt.Dimension(60,16)); |
680 |
ALabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
681 |
flowLayout12.setAlignment(java.awt.FlowLayout.LEFT); |
682 |
panelHasta.add(ALabel, null);
|
683 |
panelHasta.add(getToText(), null);
|
684 |
} |
685 |
return panelHasta;
|
686 |
} |
687 |
|
688 |
/**
|
689 |
* This method initializes jTextField
|
690 |
*
|
691 |
*
|
692 |
* @return javax.swing.JTextField
|
693 |
*/
|
694 |
private JFormattedTextField getFromText() { |
695 |
if (fromText == null) { |
696 |
fromText = new JFormattedTextField(); |
697 |
fromText.setPreferredSize(new java.awt.Dimension(100, 20)); |
698 |
} |
699 |
return fromText;
|
700 |
} |
701 |
|
702 |
/**
|
703 |
* This method initializes jTextField
|
704 |
*
|
705 |
*
|
706 |
* @return javax.swing.JTextField
|
707 |
*/
|
708 |
private JFormattedTextField getToText() { |
709 |
if (toText == null) { |
710 |
toText = new JFormattedTextField(); |
711 |
toText.setPreferredSize(new java.awt.Dimension(100, 20)); |
712 |
} |
713 |
return toText;
|
714 |
} |
715 |
|
716 |
/**
|
717 |
* This method initializes jPanel3
|
718 |
*
|
719 |
*
|
720 |
* @return javax.swing.JPanel
|
721 |
*/
|
722 |
private JPanel getJPanel37() { |
723 |
if (jPanel3 == null) { |
724 |
jPanel3 = new JPanel(); |
725 |
jPanel3.setPreferredSize(new java.awt.Dimension(10, 10)); |
726 |
} |
727 |
return jPanel3;
|
728 |
} |
729 |
|
730 |
/**
|
731 |
* This method initializes jPanel4
|
732 |
*
|
733 |
*
|
734 |
* @return javax.swing.JPanel
|
735 |
*/
|
736 |
private JPanel getPanelSuperiores() { |
737 |
if (panelSuperiores == null) { |
738 |
ULXLabel = new JLabel(); |
739 |
ULYLabel = new JLabel(); |
740 |
panelSuperiores = new JPanel(); |
741 |
panelSuperiores.setBorder(javax.swing.BorderFactory.createTitledBorder( |
742 |
null, Translator.getText(translator,"upperCoordinates"), |
743 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
744 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
745 |
panelSuperiores.setPreferredSize(new java.awt.Dimension(213, 56)); |
746 |
ULXLabel.setText(Translator.getText(translator,"ULX"));
|
747 |
ULYLabel.setText(Translator.getText(translator,"ULY"));
|
748 |
panelSuperiores.add(ULXLabel, null);
|
749 |
panelSuperiores.add(getULXText(), null);
|
750 |
panelSuperiores.add(ULYLabel, null);
|
751 |
panelSuperiores.add(getULYText(), null);
|
752 |
} |
753 |
return panelSuperiores;
|
754 |
} |
755 |
|
756 |
/**
|
757 |
* This method initializes jPanel4
|
758 |
*
|
759 |
*
|
760 |
* @return javax.swing.JPanel
|
761 |
*/
|
762 |
private JPanel getPanelInferiores() { |
763 |
if (panelInferiores == null) { |
764 |
BRXLabel = new JLabel(); |
765 |
BRYLabel = new JLabel(); |
766 |
panelInferiores = new JPanel(); |
767 |
panelInferiores.setBorder(javax.swing.BorderFactory.createTitledBorder( |
768 |
null, Translator.getText(translator,"lowerCoordinates"), |
769 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
770 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
771 |
BRXLabel.setText(Translator.getText(translator,"BRX"));
|
772 |
BRYLabel.setText(Translator.getText(translator,"BRY"));
|
773 |
panelInferiores.add(BRXLabel, null);
|
774 |
panelInferiores.add(getBRXText(), null);
|
775 |
panelInferiores.add(BRYLabel, null);
|
776 |
panelInferiores.add(getBRYText(), null);
|
777 |
} |
778 |
return panelInferiores;
|
779 |
} |
780 |
|
781 |
/**
|
782 |
* This method initializes jTextField
|
783 |
*
|
784 |
*
|
785 |
* @return javax.swing.JTextField
|
786 |
*/
|
787 |
private JTextField getULXText() { |
788 |
if (ULXText == null) { |
789 |
ULXText = new JTextField(); |
790 |
ULXText.setPreferredSize(new java.awt.Dimension(65,20)); |
791 |
} |
792 |
return ULXText;
|
793 |
} |
794 |
|
795 |
/**
|
796 |
* This method initializes jTextField
|
797 |
*
|
798 |
*
|
799 |
* @return javax.swing.JTextField
|
800 |
*/
|
801 |
private JTextField getULYText() { |
802 |
if (ULYText == null) { |
803 |
ULYText = new JTextField(); |
804 |
ULYText.setPreferredSize(new java.awt.Dimension(65,20)); |
805 |
} |
806 |
return ULYText;
|
807 |
} |
808 |
|
809 |
/**
|
810 |
* This method initializes jTextField
|
811 |
*
|
812 |
*
|
813 |
* @return javax.swing.JTextField
|
814 |
*/
|
815 |
private JTextField getBRXText() { |
816 |
if (BRXText == null) { |
817 |
BRXText = new JTextField(); |
818 |
BRXText.setPreferredSize(new java.awt.Dimension(65,20)); |
819 |
} |
820 |
return BRXText;
|
821 |
} |
822 |
|
823 |
/**
|
824 |
* This method initializes jTextField
|
825 |
*
|
826 |
*
|
827 |
* @return javax.swing.JTextField
|
828 |
*/
|
829 |
private JTextField getBRYText() { |
830 |
if (BRYText == null) { |
831 |
BRYText = new JTextField(); |
832 |
BRYText.setPreferredSize(new java.awt.Dimension(60,20)); |
833 |
} |
834 |
return BRYText;
|
835 |
} |
836 |
|
837 |
/**
|
838 |
* This method initializes jPanel
|
839 |
*
|
840 |
*
|
841 |
* @return javax.swing.JPanel
|
842 |
*/
|
843 |
private JPanel getJPanel() { |
844 |
if (jPanel == null) { |
845 |
jPanel = new JPanel(); |
846 |
jPanel.add(getCoordenadasCombo(), null);
|
847 |
} |
848 |
return jPanel;
|
849 |
} |
850 |
|
851 |
/**
|
852 |
* This method initializes jPanel8
|
853 |
*
|
854 |
*
|
855 |
* @return javax.swing.JPanel
|
856 |
*/
|
857 |
private JPanel getJPanel8() { |
858 |
if (jPanel8 == null) { |
859 |
jPanel8 = new JPanel(); |
860 |
jPanel8.setPreferredSize(new java.awt.Dimension(10, 100)); |
861 |
} |
862 |
return jPanel8;
|
863 |
} |
864 |
|
865 |
/**
|
866 |
* This method initializes jPanel9
|
867 |
*
|
868 |
*
|
869 |
* @return javax.swing.JPanel
|
870 |
*/
|
871 |
private JPanel getPanelCategoriaCombo() { |
872 |
if (panelCategoriaCombo == null) { |
873 |
panelCategoriaCombo = new JPanel(); |
874 |
panelCategoriaCombo.setPreferredSize(new java.awt.Dimension(260,25)); |
875 |
panelCategoriaCombo.add(getCategoriaCombo(), null);
|
876 |
} |
877 |
return panelCategoriaCombo;
|
878 |
} |
879 |
|
880 |
/**
|
881 |
* This method initializes jPanel9
|
882 |
*
|
883 |
*
|
884 |
* @return javax.swing.JPanel
|
885 |
*/
|
886 |
private JPanel getPanelEscalaCombo() { |
887 |
if (panelEscalaCombo == null) { |
888 |
panelEscalaCombo = new JPanel(); |
889 |
panelEscalaCombo.setPreferredSize(new java.awt.Dimension(260,25)); |
890 |
panelEscalaCombo.add(getEscalaCombo(), null);
|
891 |
} |
892 |
return panelEscalaCombo;
|
893 |
} |
894 |
|
895 |
/**
|
896 |
* This method initializes jPanel9
|
897 |
*
|
898 |
*
|
899 |
* @return javax.swing.JPanel
|
900 |
*/
|
901 |
private JPanel getPanelProveedorText() { |
902 |
if (panelProveedorText == null) { |
903 |
panelProveedorText = new JPanel(); |
904 |
panelProveedorText.setPreferredSize(new java.awt.Dimension(260,25)); |
905 |
panelProveedorText.add(getProviderText(), null);
|
906 |
} |
907 |
return panelProveedorText;
|
908 |
} |
909 |
|
910 |
/**
|
911 |
* This method initializes jPanel7
|
912 |
*
|
913 |
*
|
914 |
* @return javax.swing.JPanel
|
915 |
*/
|
916 |
private JPanel getPanelLabResumen() { |
917 |
if (panelLabResumen == null) { |
918 |
resumenLabel = new JLabel(); |
919 |
GridLayout gridLayout1 = new GridLayout(); |
920 |
panelLabResumen = new JPanel(); |
921 |
panelLabResumen.setLayout(gridLayout1); |
922 |
gridLayout1.setRows(1);
|
923 |
resumenLabel.setText(Translator.getText(translator,"abstract"));
|
924 |
panelLabResumen.add(resumenLabel, null);
|
925 |
} |
926 |
return panelLabResumen;
|
927 |
} |
928 |
|
929 |
/**
|
930 |
* This method initializes jPanel7
|
931 |
*
|
932 |
*
|
933 |
* @return javax.swing.JPanel
|
934 |
*/
|
935 |
private JPanel getPanelTextResumen() { |
936 |
if (panelTextResumen == null) { |
937 |
panelTextResumen = new JPanel(); |
938 |
panelTextResumen.setPreferredSize(new java.awt.Dimension(260,25)); |
939 |
panelTextResumen.add(getResumenText(), null);
|
940 |
} |
941 |
return panelTextResumen;
|
942 |
} |
943 |
|
944 |
/**
|
945 |
* This method initializes jPanel9
|
946 |
*
|
947 |
*
|
948 |
* @return javax.swing.JPanel
|
949 |
*/
|
950 |
private JPanel getPanelLabClave() { |
951 |
if (panelLabClave == null) { |
952 |
claveLabel = new JLabel(); |
953 |
GridLayout gridLayout21 = new GridLayout(); |
954 |
panelLabClave = new JPanel(); |
955 |
panelLabClave.setLayout(gridLayout21); |
956 |
gridLayout21.setRows(1);
|
957 |
claveLabel.setText(Translator.getText(translator,"keyWords"));
|
958 |
panelLabClave.add(claveLabel, null);
|
959 |
} |
960 |
return panelLabClave;
|
961 |
} |
962 |
|
963 |
/**
|
964 |
* This method initializes jPanel9
|
965 |
*
|
966 |
*
|
967 |
* @return javax.swing.JPanel
|
968 |
*/
|
969 |
private JPanel getPanelTextClave() { |
970 |
if (panelTextClave == null) { |
971 |
panelTextClave = new JPanel(); |
972 |
panelTextClave.setPreferredSize(new java.awt.Dimension(260,25)); |
973 |
panelTextClave.add(getKeyWordText(), null);
|
974 |
} |
975 |
return panelTextClave;
|
976 |
} |
977 |
|
978 |
/**
|
979 |
* This method initializes jTextField
|
980 |
*
|
981 |
*
|
982 |
* @return javax.swing.JTextField
|
983 |
*/
|
984 |
private JTextField getResumenText() { |
985 |
if (resumenText == null) { |
986 |
resumenText = new JTextField(); |
987 |
resumenText.setPreferredSize(new java.awt.Dimension(250,20)); |
988 |
} |
989 |
return resumenText;
|
990 |
} |
991 |
|
992 |
/**
|
993 |
* This method initializes jTextField
|
994 |
*
|
995 |
*
|
996 |
* @return javax.swing.JTextField
|
997 |
*/
|
998 |
private JTextField getKeyWordText() { |
999 |
if (keyWordText == null) { |
1000 |
keyWordText = new JTextField(); |
1001 |
keyWordText.setPreferredSize(new java.awt.Dimension(250,20)); |
1002 |
} |
1003 |
return keyWordText;
|
1004 |
} |
1005 |
|
1006 |
/**
|
1007 |
* This method initializes jComboBox
|
1008 |
*
|
1009 |
*
|
1010 |
* @return javax.swing.JComboBox
|
1011 |
*/
|
1012 |
private JComboBox getCoordenadasCombo() { |
1013 |
if (coordenadasCombo == null) { |
1014 |
String[] coordenadas; |
1015 |
if (serverType.equals(ServerData.SERVER_SUBTYPE_CATALOG_Z3950)){
|
1016 |
coordenadas = new String[4]; |
1017 |
coordenadas[0] = Translator.getText(translator,"coordinatesContains"); |
1018 |
coordenadas[1] = Translator.getText(translator,"coordinatesEqual"); |
1019 |
coordenadas[2] = Translator.getText(translator,"coordinatesEnclose"); |
1020 |
coordenadas[3] = Translator.getText(translator,"coordinatesFullyOutsideOf"); |
1021 |
|
1022 |
}else{
|
1023 |
coordenadas = new String[2]; |
1024 |
coordenadas[0] = Translator.getText(translator,"coordinatesContains"); |
1025 |
coordenadas[1] = Translator.getText(translator,"coordinatesFullyOutsideOf"); |
1026 |
} |
1027 |
coordenadasCombo = new JComboBox(coordenadas); |
1028 |
coordenadasCombo.setPreferredSize(new java.awt.Dimension(240,20)); |
1029 |
coordenadasCombo.setBackground(Color.white);
|
1030 |
} |
1031 |
return coordenadasCombo;
|
1032 |
} |
1033 |
|
1034 |
/**
|
1035 |
* This method initializes jPanel4
|
1036 |
*
|
1037 |
*
|
1038 |
* @return javax.swing.JPanel
|
1039 |
*/
|
1040 |
private JPanel getPanelCoordenadas() { |
1041 |
if (panelCoordenadas == null) { |
1042 |
panelCoordenadas = new JPanel(); |
1043 |
panelCoordenadas.setLayout(new BoxLayout(panelCoordenadas, BoxLayout.Y_AXIS)); |
1044 |
panelCoordenadas.setBorder(javax.swing.BorderFactory.createTitledBorder( |
1045 |
null, Translator.getText(translator,"coordinates"), |
1046 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
1047 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
1048 |
panelCoordenadas.setPreferredSize(new java.awt.Dimension(315,180)); |
1049 |
panelCoordenadas.add(getPanelSuperiores(), null);
|
1050 |
panelCoordenadas.add(getPanelInferiores(), null);
|
1051 |
panelCoordenadas.add(getJPanel(), null);
|
1052 |
} |
1053 |
return panelCoordenadas;
|
1054 |
} |
1055 |
|
1056 |
/**
|
1057 |
* This method initializes jPanel5
|
1058 |
*
|
1059 |
*
|
1060 |
* @return javax.swing.JPanel
|
1061 |
*/
|
1062 |
private JPanel getLowerPanel() { |
1063 |
if (lowerPanel == null) { |
1064 |
lowerPanel = new JPanel(); |
1065 |
lowerPanel.setPreferredSize(new java.awt.Dimension(565,330)); |
1066 |
lowerPanel.add(getJPanel33(), null);
|
1067 |
lowerPanel.add(getJPanel3(), null);
|
1068 |
} |
1069 |
return lowerPanel;
|
1070 |
} |
1071 |
/* (non-Javadoc)
|
1072 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getTitleOption()
|
1073 |
*/
|
1074 |
|
1075 |
/**
|
1076 |
*
|
1077 |
*
|
1078 |
*
|
1079 |
* @return
|
1080 |
*/
|
1081 |
public String getTitleOption() { |
1082 |
if (getExactaButton().isSelected()) {
|
1083 |
return "E"; |
1084 |
} |
1085 |
if (getCualquieraButton().isSelected()) {
|
1086 |
return "Y"; |
1087 |
} |
1088 |
if (getTodasButton().isSelected()) {
|
1089 |
return "A"; |
1090 |
} |
1091 |
return null; |
1092 |
} |
1093 |
/* (non-Javadoc)
|
1094 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getAbstract()
|
1095 |
*/
|
1096 |
|
1097 |
/**
|
1098 |
*
|
1099 |
*
|
1100 |
*
|
1101 |
* @return
|
1102 |
*/
|
1103 |
public String getAbstract() { |
1104 |
if (getResumenText().getText().equals("")) { |
1105 |
return null; |
1106 |
} |
1107 |
return getResumenText().getText();
|
1108 |
} |
1109 |
/* (non-Javadoc)
|
1110 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getKeys()
|
1111 |
*/
|
1112 |
|
1113 |
/**
|
1114 |
*
|
1115 |
*
|
1116 |
*
|
1117 |
* @return
|
1118 |
*/
|
1119 |
public String getKeys() { |
1120 |
if (getKeyWordText().getText().equals("")) { |
1121 |
return null; |
1122 |
} |
1123 |
return getKeyWordText().getText();
|
1124 |
} |
1125 |
/* (non-Javadoc)
|
1126 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getCathegory()
|
1127 |
*/
|
1128 |
|
1129 |
/**
|
1130 |
*
|
1131 |
*
|
1132 |
*
|
1133 |
* @return
|
1134 |
*/
|
1135 |
public String getCathegory() { |
1136 |
return (String) getCategoriaCombo().getSelectedItem(); |
1137 |
} |
1138 |
/* (non-Javadoc)
|
1139 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getScale()
|
1140 |
*/
|
1141 |
|
1142 |
/**
|
1143 |
*
|
1144 |
*
|
1145 |
*
|
1146 |
* @return
|
1147 |
*/
|
1148 |
public String getScale() { |
1149 |
return (String) getEscalaCombo().getSelectedItem(); |
1150 |
} |
1151 |
/* (non-Javadoc)
|
1152 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getDateTo()
|
1153 |
*/
|
1154 |
|
1155 |
/**
|
1156 |
*
|
1157 |
*
|
1158 |
*
|
1159 |
* @return
|
1160 |
*/
|
1161 |
public String getDateTo() { |
1162 |
if (getToText().getText().equals("")) { |
1163 |
return null; |
1164 |
} |
1165 |
return getToText().getText();
|
1166 |
} |
1167 |
/* (non-Javadoc)
|
1168 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getDateFrom()
|
1169 |
*/
|
1170 |
|
1171 |
/**
|
1172 |
*
|
1173 |
*
|
1174 |
*
|
1175 |
* @return
|
1176 |
*/
|
1177 |
public String getDateFrom() { |
1178 |
if (getFromText().getText().equals("")) { |
1179 |
return null; |
1180 |
} |
1181 |
return getFromText().getText();
|
1182 |
} |
1183 |
/* (non-Javadoc)
|
1184 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getCoordinates()
|
1185 |
*/
|
1186 |
|
1187 |
/**
|
1188 |
*
|
1189 |
*
|
1190 |
*
|
1191 |
* @return
|
1192 |
*/
|
1193 |
public Coordinates getCoordinates() {
|
1194 |
return new Coordinates(getULXText().getText(), getULYText().getText(), |
1195 |
getBRXText().getText(), getBRYText().getText()); |
1196 |
} |
1197 |
|
1198 |
/**
|
1199 |
* It sets the coordinates fields
|
1200 |
*
|
1201 |
*
|
1202 |
* @param coordinates
|
1203 |
*/
|
1204 |
public void setCoordinates(Coordinates coordinates) { |
1205 |
setULXText(Doubles.get5Decimals(coordinates.ulx)); |
1206 |
setULYText(Doubles.get5Decimals(coordinates.uly)); |
1207 |
setBRXText(Doubles.get5Decimals(coordinates.brx)); |
1208 |
setBRYText(Doubles.get5Decimals(coordinates.bry)); |
1209 |
} |
1210 |
/* (non-Javadoc)
|
1211 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getCoordinatesOption()
|
1212 |
*/
|
1213 |
|
1214 |
/**
|
1215 |
*
|
1216 |
*
|
1217 |
*
|
1218 |
* @return
|
1219 |
*/
|
1220 |
public String getCoordinatesOption() { |
1221 |
return (String) getCoordenadasCombo().getSelectedItem(); |
1222 |
} |
1223 |
/* (non-Javadoc)
|
1224 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getProvider()
|
1225 |
*/
|
1226 |
|
1227 |
/**
|
1228 |
*
|
1229 |
*
|
1230 |
*
|
1231 |
* @return
|
1232 |
*/
|
1233 |
public String getProvider() { |
1234 |
if (getProviderText().getText().equals("")) { |
1235 |
return null; |
1236 |
} |
1237 |
return getProviderText().getText();
|
1238 |
} |
1239 |
/* (non-Javadoc)
|
1240 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getRestrictAreaClicked()
|
1241 |
*/
|
1242 |
|
1243 |
/**
|
1244 |
*
|
1245 |
*
|
1246 |
*
|
1247 |
* @return
|
1248 |
*/
|
1249 |
public boolean getRestrictAreaClicked() { |
1250 |
// TODO Auto-generated method stub
|
1251 |
return false; |
1252 |
} |
1253 |
|
1254 |
/**
|
1255 |
* It sets a lower panel visible or not visible
|
1256 |
*
|
1257 |
*
|
1258 |
* @param isMinimized
|
1259 |
*/
|
1260 |
public void setMinimized(boolean isMinimized) { |
1261 |
if (isMinimized){
|
1262 |
lowerPanel.setVisible(false);
|
1263 |
setSize(700,100); |
1264 |
}else{
|
1265 |
lowerPanel.setVisible(true);
|
1266 |
setSize(700,900); |
1267 |
} |
1268 |
this.repaint();
|
1269 |
} |
1270 |
|
1271 |
/**
|
1272 |
*
|
1273 |
*
|
1274 |
*
|
1275 |
* @param text The bRXText to set.
|
1276 |
*/
|
1277 |
public void setBRXText(String text) { |
1278 |
BRXText.setText(text); |
1279 |
} |
1280 |
|
1281 |
/**
|
1282 |
*
|
1283 |
*
|
1284 |
*
|
1285 |
* @param text The bRYText to set.
|
1286 |
*/
|
1287 |
public void setBRYText(String text) { |
1288 |
BRYText.setText(text); |
1289 |
} |
1290 |
|
1291 |
/**
|
1292 |
*
|
1293 |
*
|
1294 |
*
|
1295 |
* @param text The uLXText to set.
|
1296 |
*/
|
1297 |
public void setULXText(String text) { |
1298 |
ULXText.setText(text); |
1299 |
} |
1300 |
|
1301 |
/**
|
1302 |
*
|
1303 |
*
|
1304 |
*
|
1305 |
* @param text The uLYText to set.
|
1306 |
*/
|
1307 |
public void setULYText(String text) { |
1308 |
ULYText.setText(text); |
1309 |
} |
1310 |
|
1311 |
/**
|
1312 |
* This methos disables the components that are representing
|
1313 |
* fileds that the protocol used to do the search doesn't
|
1314 |
* support
|
1315 |
*
|
1316 |
*
|
1317 |
* @param type Server type: Z3950, SRW or CSW
|
1318 |
* @param profile Server Profile: DUBLINCORE, ISO19115, ebRIM
|
1319 |
*/
|
1320 |
private void disableComponents(String type, String profile) { |
1321 |
if (type.equals(ServerData.SERVER_SUBTYPE_CATALOG_Z3950)){
|
1322 |
getCategoriaCombo().setEnabled(false);
|
1323 |
} |
1324 |
|
1325 |
if (type.equals(ServerData.SERVER_SUBTYPE_CATALOG_SRW) || profile.equals(Schemas.DUBLINCORE)){
|
1326 |
getKeyWordText().setEnabled(false);
|
1327 |
getCategoriaCombo().setEnabled(false);
|
1328 |
getEscalaCombo().setEnabled(false);
|
1329 |
getULXText().setEnabled(false);
|
1330 |
getULYText().setEnabled(false);
|
1331 |
getBRXText().setEnabled(false);
|
1332 |
getBRYText().setEnabled(false);
|
1333 |
getCoordenadasCombo().setEnabled(false);
|
1334 |
getFromText().setEnabled(false);
|
1335 |
getToText().setEnabled(false);
|
1336 |
} |
1337 |
|
1338 |
if (profile.equals(Schemas.EBRIM)){
|
1339 |
getEscalaCombo().setEnabled(false);
|
1340 |
getProviderText().setEnabled(false);
|
1341 |
getFromText().setEnabled(false);
|
1342 |
getToText().setEnabled(false);
|
1343 |
} |
1344 |
|
1345 |
if (profile.equals(Schemas.ISO19115)){
|
1346 |
getKeyWordText().setEnabled(false);
|
1347 |
getCategoriaCombo().setEnabled(false);
|
1348 |
getEscalaCombo().setEnabled(false);
|
1349 |
getProviderText().setEnabled(false);
|
1350 |
getULXText().setEnabled(false);
|
1351 |
getULYText().setEnabled(false);
|
1352 |
getBRXText().setEnabled(false);
|
1353 |
getBRYText().setEnabled(false);
|
1354 |
getCoordenadasCombo().setEnabled(false);
|
1355 |
getFromText().setEnabled(false);
|
1356 |
getToText().setEnabled(false);
|
1357 |
} |
1358 |
|
1359 |
} |
1360 |
} |
1361 |
// @jve:decl-index=0:visual-constraint="10,10"
|