Revision 9491 trunk/libraries/libUI/src/org/gvsig/gui/beans/filterPanel/AbstractFilterQueryJPanel.java
AbstractFilterQueryJPanel.java | ||
---|---|---|
68 | 68 |
public static final int DefaultHeight = 280; |
69 | 69 |
public static final int DefaultWidth = 490; |
70 | 70 |
|
71 |
protected final int fieldsJPanelHeight = 135;
|
|
71 |
protected final int fieldsJPanelHeight = 145;
|
|
72 | 72 |
protected final int fieldsJPanelWidth = 145; |
73 | 73 |
protected final int valuesJPanelHeight = fieldsJPanelHeight; |
74 | 74 |
protected final int valuesJPanelWidth = fieldsJPanelWidth; |
75 | 75 |
protected final int defaultBottomJPanelWidth = 480; |
76 |
protected final int defaultBottomJPanelHeight = 120;
|
|
76 |
protected final int defaultBottomJPanelHeight = 110;
|
|
77 | 77 |
protected int filterJScrollPaneHeight; |
78 | 78 |
protected int filterJScrollPanelWidth; |
79 |
protected final int filterButtonsPanelHeight = FilterButtonsJPanel.default_FilterButtonsJPanellHeight;
|
|
79 |
protected final int filterButtonsPanelHeight = FilterButtonsJPanel.default_FilterButtonsJPanelHeight; |
|
80 | 80 |
protected final int filterButtonsPanelWidth = FilterButtonsJPanel.default_FilterButtonsJPanelWidth; |
81 | 81 |
protected final int defaultTopJPanelWidth = defaultBottomJPanelWidth; |
82 |
protected final int defaultTopJPanelHeight = 135;
|
|
83 |
protected int fieldsAndValuesJScrollPaneHeight = 100;
|
|
82 |
protected final int defaultTopJPanelHeight = 145;
|
|
83 |
protected int fieldsAndValuesJScrollPaneHeight = 110;
|
|
84 | 84 |
protected int fieldsAndValuesJScrollPaneWidth = fieldsJPanelWidth; |
85 | 85 |
|
86 | 86 |
protected javax.swing.JLabel fieldsJLabel = null; |
... | ... | |
204 | 204 |
protected abstract JPanel getFieldsJPanel(); |
205 | 205 |
|
206 | 206 |
/** |
207 |
* This method initializes jScrollPane |
|
208 |
* |
|
209 |
* @return javax.swing.JScrollPane |
|
210 |
*/ |
|
211 |
protected abstract javax.swing.JScrollPane getFieldsJScrollPane(); |
|
212 |
|
|
213 |
/** |
|
207 | 214 |
* This method initializes valuesJLabel |
208 | 215 |
* |
209 | 216 |
* @return javax.swing.JLabel |
... | ... | |
225 | 232 |
protected abstract JPanel getValuesJPanel(); |
226 | 233 |
|
227 | 234 |
/** |
235 |
* This method initializes jScrollPane1 |
|
236 |
* |
|
237 |
* @return javax.swing.JScrollPane |
|
238 |
*/ |
|
239 |
protected abstract javax.swing.JScrollPane getValuesJScrollPane(); |
|
240 |
|
|
241 |
/** |
|
228 | 242 |
* This method initializes filterJScrollPane |
229 | 243 |
* |
230 | 244 |
* @return javax.swing.JScrollPane |
231 | 245 |
*/ |
232 | 246 |
protected abstract javax.swing.JScrollPane getFilterJScrollPane(); |
247 |
|
|
248 |
/** |
|
249 |
* This method initializes txtExpression |
|
250 |
* |
|
251 |
* @return javax.swing.JTextArea |
|
252 |
*/ |
|
253 |
protected abstract javax.swing.JTextArea getTxtExpression(); |
|
233 | 254 |
|
234 | 255 |
/** |
235 | 256 |
* DOCUMENT ME! |
... | ... | |
237 | 258 |
* @param symbol DOCUMENT ME! |
238 | 259 |
*/ |
239 | 260 |
protected void putSymbol(String symbol) { |
240 |
int position = txtExpression.getCaretPosition();
|
|
261 |
int position = getTxtExpression().getCaretPosition();
|
|
241 | 262 |
|
242 |
txtExpression.setText(insert(txtExpression.getText(), position, symbol));
|
|
263 |
getTxtExpression().setText(insert(getTxtExpression().getText(), position, symbol));
|
|
243 | 264 |
|
244 | 265 |
if (symbol.equals(" () ")) { |
245 | 266 |
position = position + 2; |
... | ... | |
247 | 268 |
position = position + symbol.length(); |
248 | 269 |
} |
249 | 270 |
|
250 |
txtExpression.setCaretPosition(position);
|
|
271 |
getTxtExpression().setCaretPosition(position);
|
|
251 | 272 |
} |
252 | 273 |
|
253 | 274 |
/** |
... | ... | |
388 | 409 |
|
389 | 410 |
if (difference > 0) { |
390 | 411 |
this.setPreferredSize(new Dimension(this.getPreferredSize().width, this.getPreferredSize().height + difference)); |
391 |
topJPanel.setPreferredSize(new Dimension(topJPanel.getPreferredSize().width, topJPanel.getPreferredSize().height + difference));
|
|
412 |
getTopJPanel().setPreferredSize(new Dimension(getTopJPanel().getPreferredSize().width, getTopJPanel().getPreferredSize().height + difference));
|
|
392 | 413 |
|
393 |
fieldsJPanel.setPreferredSize(new Dimension(fieldsJPanel.getPreferredSize().width, fieldsJPanel.getPreferredSize().height + difference));
|
|
394 |
fieldsJScrollPane.setPreferredSize(new Dimension(fieldsJScrollPane.getPreferredSize().width, fieldsJScrollPane.getPreferredSize().height + difference));
|
|
414 |
getFieldsJPanel().setPreferredSize(new Dimension(getFieldsJPanel().getPreferredSize().width, getFieldsJPanel().getPreferredSize().height + difference));
|
|
415 |
getFieldsJScrollPane().setPreferredSize(new Dimension(getFieldsJScrollPane().getPreferredSize().width, getFieldsJScrollPane().getPreferredSize().height + difference));
|
|
395 | 416 |
|
396 |
valuesJPanel.setPreferredSize(new Dimension(valuesJPanel.getPreferredSize().width, valuesJPanel.getPreferredSize().height + difference));
|
|
397 |
valuesJScrollPane.setPreferredSize(new Dimension(valuesJScrollPane.getPreferredSize().width, valuesJScrollPane.getPreferredSize().height + difference));
|
|
417 |
getValuesJPanel().setPreferredSize(new Dimension(getValuesJPanel().getPreferredSize().width, getValuesJPanel().getPreferredSize().height + difference));
|
|
418 |
getValuesJScrollPane().setPreferredSize(new Dimension(getValuesJScrollPane().getPreferredSize().width, getValuesJScrollPane().getPreferredSize().height + difference));
|
|
398 | 419 |
} |
399 | 420 |
} |
400 | 421 |
|
Also available in: Unified diff