Revision 56 org.gvsig.catalog/trunk/org.gvsig.catalog/org.gvsig.catalog.lib/src/main/java/org/gvsig/catalog/ui/search/SearchButtonPanel.java
SearchButtonPanel.java | ||
---|---|---|
75 | 75 |
public class SearchButtonPanel extends JPanel{ |
76 | 76 |
private javax.swing.JButton cancelButton; |
77 | 77 |
private javax.swing.JButton closeButton; |
78 |
private javax.swing.JButton lastButton;
|
|
78 |
private javax.swing.JButton previousButton;
|
|
79 | 79 |
private javax.swing.JButton searchButton; |
80 |
|
|
80 |
|
|
81 | 81 |
/** Creates new form SearchButtonsPanel */ |
82 | 82 |
public SearchButtonPanel() { |
83 | 83 |
initComponents(); |
84 | 84 |
initLabels(); |
85 | 85 |
initButtonSize(); |
86 | 86 |
} |
87 |
|
|
87 |
|
|
88 | 88 |
/** This method is called from within the constructor to |
89 | 89 |
* initialize the form. |
90 | 90 |
* WARNING: Do NOT modify this code. The content of this method is |
91 | 91 |
* always regenerated by the Form Editor. |
92 | 92 |
*/ |
93 |
// <editor-fold defaultstate="collapsed" desc=" C?digo Generado ">
|
|
93 |
// <editor-fold defaultstate="collapsed" desc=" C?digo Generado "> |
|
94 | 94 |
private void initComponents() { |
95 | 95 |
searchButton = new javax.swing.JButton(); |
96 | 96 |
cancelButton = new javax.swing.JButton(); |
97 |
lastButton = new javax.swing.JButton();
|
|
97 |
previousButton = new javax.swing.JButton();
|
|
98 | 98 |
closeButton = new javax.swing.JButton(); |
99 | 99 |
|
100 | 100 |
setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); |
... | ... | |
106 | 106 |
cancelButton.setText("jButton2"); |
107 | 107 |
add(cancelButton); |
108 | 108 |
|
109 |
lastButton.setText("jButton3");
|
|
110 |
add(lastButton);
|
|
109 |
previousButton.setText("jButton3");
|
|
110 |
add(previousButton);
|
|
111 | 111 |
|
112 | 112 |
closeButton.setText("jButton4"); |
113 | 113 |
add(closeButton); |
114 |
}// </editor-fold>
|
|
115 |
|
|
114 |
}// </editor-fold> |
|
115 |
|
|
116 | 116 |
/** |
117 | 117 |
* Rewrite the labels |
118 | 118 |
*/ |
119 | 119 |
private void initLabels(){ |
120 | 120 |
searchButton.setText(Messages.getText("searchButton")); |
121 | 121 |
closeButton.setText(Messages.getText("close")); |
122 |
lastButton.setText(Messages.getText("last"));
|
|
122 |
previousButton.setText(Messages.getText("previous"));
|
|
123 | 123 |
cancelButton.setText(Messages.getText("cancel")); |
124 | 124 |
} |
125 |
|
|
125 |
|
|
126 | 126 |
/** |
127 | 127 |
* Initialize the buttons size |
128 | 128 |
*/ |
129 | 129 |
private void initButtonSize(){ |
130 | 130 |
searchButton.setPreferredSize(CatalogConstants.BUTTON_SIZE); |
131 | 131 |
closeButton.setPreferredSize(CatalogConstants.BUTTON_SIZE); |
132 |
lastButton.setPreferredSize(CatalogConstants.BUTTON_SIZE);
|
|
132 |
previousButton.setPreferredSize(CatalogConstants.BUTTON_SIZE);
|
|
133 | 133 |
cancelButton.setPreferredSize(CatalogConstants.BUTTON_SIZE); |
134 | 134 |
} |
135 |
|
|
135 |
|
|
136 | 136 |
/** |
137 | 137 |
* Add a listener for the buttons |
138 | 138 |
* @param listener |
... | ... | |
143 | 143 |
cancelButton.setActionCommand(CatalogConstants.CANCEL_BUTTON_ACTION_COMMAND); |
144 | 144 |
closeButton.addActionListener(listener); |
145 | 145 |
closeButton.setActionCommand(CatalogConstants.CLOSE_BUTTON_ACTION_COMMAND); |
146 |
lastButton.addActionListener(listener);
|
|
147 |
lastButton.setActionCommand(CatalogConstants.LAST_BUTTON_ACTION_COMMAND);
|
|
146 |
previousButton.addActionListener(listener);
|
|
147 |
previousButton.setActionCommand(CatalogConstants.LAST_BUTTON_ACTION_COMMAND);
|
|
148 | 148 |
searchButton.addActionListener(listener); |
149 | 149 |
searchButton.setActionCommand(CatalogConstants.SEARCH_BUTTON_ACTION_COMMAND); |
150 | 150 |
} |
151 |
|
|
151 |
|
|
152 | 152 |
} |
Also available in: Unified diff