Revision 3480 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/gazetteer/ui/search/SearchLowerPanel.java
SearchLowerPanel.java | ||
---|---|---|
62 | 62 |
|
63 | 63 |
import javax.swing.JScrollPane; |
64 | 64 |
import javax.swing.tree.DefaultMutableTreeNode; |
65 |
import javax.swing.JCheckBox; |
|
66 |
import java.awt.FlowLayout; |
|
67 |
import java.awt.GridBagLayout; |
|
68 |
import java.awt.GridBagConstraints; |
|
65 | 69 |
/** |
66 | 70 |
* @author Jorge Piera Llodra (piera_jor@gva.es) |
67 | 71 |
*/ |
... | ... | |
91 | 95 |
private JLabel BRYLabel = null; |
92 | 96 |
private JTextField BRYText = null; |
93 | 97 |
private JPanel jPanel = null; |
94 |
private JPanel jPanel8 = null;
|
|
98 |
private JPanel panelShowOptions = null;
|
|
95 | 99 |
private JPanel panelNResultadosCombo = null; |
96 | 100 |
private JPanel panelLabTipo = null; |
97 | 101 |
private JPanel panelListTipo = null; |
98 | 102 |
private JLabel tipoLabel = null; |
99 | 103 |
private ThesaurusJTree thesaurusTree = null; |
100 | 104 |
private JComboBox coordenadasCombo = null; |
101 |
private JPanel jPanel4 = null;
|
|
105 |
private JPanel panelCoordinates = null;
|
|
102 | 106 |
private JPanel componentesPanel = null; |
103 | 107 |
private JScrollPane jScrollThesaurus = null; |
104 | 108 |
private ITranslator translator = null; |
105 | 109 |
private String serverType = null; |
106 | 110 |
|
111 |
private JCheckBox checkBGoTo = null; |
|
112 |
private JCheckBox checkBKeepOld = null; |
|
113 |
private JPanel jPanel1 = null; |
|
114 |
private JPanel panelShowOptionsPosition = null; |
|
107 | 115 |
/** |
108 | 116 |
* |
109 | 117 |
* @param features |
... | ... | |
120 | 128 |
this.serverType = serverType; |
121 | 129 |
initialize(); |
122 | 130 |
disableComponents(serverType); |
131 |
getCheckBGoTo().setSelected(true); |
|
132 |
getCheckBKeepOld().setSelected(true); |
|
123 | 133 |
} |
124 | 134 |
|
125 | 135 |
/** |
... | ... | |
267 | 277 |
panelRigth.setLayout(new BoxLayout( |
268 | 278 |
panelRigth, BoxLayout.Y_AXIS)); |
269 | 279 |
panelRigth.setPreferredSize(new java.awt.Dimension(250,320)); |
270 |
panelRigth.add(getJPanel4(), null); |
|
271 |
panelRigth.add(getJPanel8(), null); |
|
280 |
panelRigth.add(getPanelCoordinates(), null); |
|
281 |
panelRigth.add(getPanelShowOptions(), null); |
|
282 |
panelRigth.add(getJPanel1(), null); |
|
272 | 283 |
} |
273 | 284 |
|
274 | 285 |
return panelRigth; |
... | ... | |
429 | 440 |
* |
430 | 441 |
* @return javax.swing.JPanel |
431 | 442 |
*/ |
432 |
private JPanel getJPanel8() { |
|
433 |
if (jPanel8 == null) { |
|
434 |
jPanel8 = new JPanel(); |
|
435 |
jPanel8.setPreferredSize(new java.awt.Dimension(10,200)); |
|
443 |
private JPanel getPanelShowOptions() { |
|
444 |
if (panelShowOptions == null) { |
|
445 |
FlowLayout flowLayout4 = new FlowLayout(); |
|
446 |
panelShowOptions = new JPanel(); |
|
447 |
panelShowOptions.setLayout(flowLayout4); |
|
448 |
panelShowOptions.setPreferredSize(new java.awt.Dimension(10,75)); |
|
449 |
panelShowOptions.setBorder(javax.swing.BorderFactory.createTitledBorder(null, Translator.getText(translator,"aspect"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
|
450 |
flowLayout4.setAlignment(java.awt.FlowLayout.LEFT); |
|
451 |
panelShowOptions.add(getPanelShowOptionsPosition(), null); |
|
436 | 452 |
} |
437 | 453 |
|
438 |
return jPanel8;
|
|
454 |
return panelShowOptions;
|
|
439 | 455 |
} |
440 | 456 |
|
441 | 457 |
/** |
... | ... | |
607 | 623 |
* |
608 | 624 |
* @return javax.swing.JPanel |
609 | 625 |
*/ |
610 |
private JPanel getJPanel4() {
|
|
611 |
if (jPanel4 == null) {
|
|
612 |
jPanel4 = new JPanel();
|
|
613 |
jPanel4.setLayout(new BoxLayout(jPanel4, BoxLayout.Y_AXIS));
|
|
614 |
jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(
|
|
626 |
private JPanel getPanelCoordinates() {
|
|
627 |
if (panelCoordinates == null) {
|
|
628 |
panelCoordinates = new JPanel();
|
|
629 |
panelCoordinates.setLayout(new BoxLayout(panelCoordinates, BoxLayout.Y_AXIS));
|
|
630 |
panelCoordinates.setBorder(javax.swing.BorderFactory.createTitledBorder(
|
|
615 | 631 |
null, Translator.getText(translator,"coordinates"), |
616 | 632 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
617 | 633 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
618 |
jPanel4.setPreferredSize(new java.awt.Dimension(315,175));
|
|
619 |
jPanel4.add(getPanelSuperiores(), null);
|
|
620 |
jPanel4.add(getPanelInferiores(), null);
|
|
621 |
jPanel4.add(getJPanel(), null);
|
|
634 |
panelCoordinates.setPreferredSize(new java.awt.Dimension(315,175));
|
|
635 |
panelCoordinates.add(getPanelSuperiores(), null);
|
|
636 |
panelCoordinates.add(getPanelInferiores(), null);
|
|
637 |
panelCoordinates.add(getJPanel(), null);
|
|
622 | 638 |
} |
623 | 639 |
|
624 |
return jPanel4;
|
|
640 |
return panelCoordinates;
|
|
625 | 641 |
} |
626 | 642 |
|
627 | 643 |
/** |
... | ... | |
729 | 745 |
|
730 | 746 |
} |
731 | 747 |
|
732 |
} // @jve:decl-index=0:visual-constraint="10,10" |
|
748 |
/** |
|
749 |
* This method initializes jCheckBox |
|
750 |
* |
|
751 |
* @return javax.swing.JCheckBox |
|
752 |
*/ |
|
753 |
private JCheckBox getCheckBGoTo() { |
|
754 |
if (checkBGoTo == null) { |
|
755 |
checkBGoTo = new JCheckBox(); |
|
756 |
checkBGoTo.setText(Translator.getText(translator,"goto")); |
|
757 |
} |
|
758 |
return checkBGoTo; |
|
759 |
} |
|
760 |
/** |
|
761 |
* This method initializes jCheckBox |
|
762 |
* |
|
763 |
* @return javax.swing.JCheckBox |
|
764 |
*/ |
|
765 |
private JCheckBox getCheckBKeepOld() { |
|
766 |
if (checkBKeepOld == null) { |
|
767 |
checkBKeepOld = new JCheckBox(); |
|
768 |
checkBKeepOld.setText(Translator.getText(translator,"mantainold")); |
|
769 |
} |
|
770 |
return checkBKeepOld; |
|
771 |
} |
|
772 |
/** |
|
773 |
* This method initializes jPanel1 |
|
774 |
* |
|
775 |
* @return javax.swing.JPanel |
|
776 |
*/ |
|
777 |
private JPanel getJPanel1() { |
|
778 |
if (jPanel1 == null) { |
|
779 |
jPanel1 = new JPanel(); |
|
780 |
jPanel1.setPreferredSize(new java.awt.Dimension(10,300)); |
|
781 |
} |
|
782 |
return jPanel1; |
|
783 |
} |
|
784 |
/** |
|
785 |
* This method initializes jPanel2 |
|
786 |
* |
|
787 |
* @return javax.swing.JPanel |
|
788 |
*/ |
|
789 |
private JPanel getPanelShowOptionsPosition() { |
|
790 |
if (panelShowOptionsPosition == null) { |
|
791 |
panelShowOptionsPosition = new JPanel(); |
|
792 |
panelShowOptionsPosition.setLayout(new BoxLayout(panelShowOptionsPosition, BoxLayout.Y_AXIS)); |
|
793 |
panelShowOptionsPosition.add(getCheckBGoTo(), null); |
|
794 |
panelShowOptionsPosition.add(getCheckBKeepOld(), null); |
|
795 |
} |
|
796 |
return panelShowOptionsPosition; |
|
797 |
} |
|
798 |
|
|
799 |
/** |
|
800 |
* It returns if the GOTO component is clicked |
|
801 |
* @return |
|
802 |
*/ |
|
803 |
public boolean isGoToClicked(){ |
|
804 |
return getCheckBGoTo().isSelected(); |
|
805 |
} |
|
806 |
|
|
807 |
/** |
|
808 |
* return if the Mantain Old button is enabled |
|
809 |
* @return |
|
810 |
*/ |
|
811 |
public boolean isKeepOldClicked(){ |
|
812 |
return getCheckBKeepOld().isSelected(); |
|
813 |
} |
|
814 |
} // @jve:decl-index=0:visual-constraint="10,10" |
Also available in: Unified diff