libUIComponent-Added-new-feature-to-filter-dialog-Export-selected-t.patch

Pablo Sanxiao, 02/16/2012 10:53 AM

Download (4.8 KB)

View differences:

config/text.properties
100 100
errorMessageJComboBoxItemsSeekerConfigurable=Configuraci\u00f3n del comportamiento inv\u00e1lida.
101 101
espere=Por favor, espere
102 102
exportJOP2Title=Exportar a JOP2T
103
export_selected=Exportar selecci\u00f3n
103 104
extraer=Extraer
104 105
Failed_pausing_the_process=Fall\u00f3 pausando el proceso.
105 106
Failed_resuming_the_process=Fall\u00f3 reanudando el proceso.
......
107 108
feature=Capas
108 109
fields=Campos
109 110
fields_uppercase_first=Campos
111
file_already_exists=El archivo ya existe. ?Desea sobreescribirlo?
110 112
fill=Rellenar
111 113
filter=Filtro
112 114
filter_by_sentence=Filtrado por sentencia
src/org/gvsig/gui/beans/filterPanel/AbstractFilterQueryJPanel.java
85 85
 * @author Pablo Piqueras Bartolom? (p_queras@hotmail.com)
86 86
 */
87 87
public abstract class AbstractFilterQueryJPanel extends AbstractPanel implements Serializable {
88
	public static final int DefaultHeight = 280;
88
	public static final int DefaultHeight = 380;
89 89
	public static final int DefaultWidth = 490; 
90 90
	
91 91
	protected final int fieldsJPanelHeight = 145;
......
93 93
	protected final int valuesJPanelHeight = fieldsJPanelHeight;
94 94
	protected final int valuesJPanelWidth = fieldsJPanelWidth;
95 95
	protected final int defaultBottomJPanelWidth = 480;
96
	protected final int defaultBottomJPanelHeight = 110;
96
	protected final int defaultBottomJPanelHeight = 150;
97 97
	protected int filterJScrollPaneHeight;
98 98
	protected int filterJScrollPanelWidth;
99 99
	protected final int filterButtonsPanelHeight = FilterButtonsJPanel.default_FilterButtonsJPanelHeight;
src/org/gvsig/gui/beans/filterPanel/tableFilterQueryPanel/TableFilterQueryJPanel.java
69 69
	protected JButtonML btnNewSet = null;
70 70
	protected JButtonML btnAddToCurrentSet = null;
71 71
	protected JButtonML btnFromSet = null;
72
	protected JButtonML btnExportSet = null;
72 73
	protected int defaultButtonsSetPanelWidth = 190; 
73
	protected int defaultButtonsSetPanelHeight = 100;
74
	protected int defaultButtonsSetPanelHeight = 150;
74 75
	protected int filterJScrollPaneHeight = defaultBottomJPanelHeight - 10;
75 76
	protected int filterJScrollPanelWidth = defaultBottomJPanelWidth - 10 - defaultButtonsSetPanelWidth;
76 77
	protected int setButtonWidth = defaultButtonsSetPanelWidth - 5;
......
230 231
			buttonsSetJPanel.setPreferredSize(new java.awt.Dimension(defaultButtonsSetPanelWidth, defaultButtonsSetPanelHeight));
231 232
			buttonsSetJPanel.add(getBtnNewSet(), null);
232 233
			buttonsSetJPanel.add(getBtnAddToCurrentSet(), null);
233
			buttonsSetJPanel.add(getBtnFromSet(), null);			
234
			buttonsSetJPanel.add(getBtnFromSet(), null);	
235
			buttonsSetJPanel.add(getBtnExportSet(), null);
234 236
		}
235 237

  
236 238
		return buttonsSetJPanel;
......
285 287
		return btnFromSet;
286 288
	}
287 289
	
290
	protected javax.swing.JButton getBtnExportSet() {
291
	    if (btnExportSet == null) {
292
		btnExportSet = new JButtonML();
293
		btnExportSet.setPreferredSize(new Dimension(this.setButtonWidth,
294
		this.setButtonHeight));
295
		btnExportSet.setText(Messages.getText("export_selected"));
296
		// btnFromSet.setMargin(new java.awt.Insets(2, 2, 2, 2));
297
	    }
298
	    return btnExportSet;
299
	}
300
	
288 301
	/*
289 302
	 * (non-Javadoc)
290 303
	 * @see org.gvsig.gui.beans.filterPanel.AbstractFilterQueryJPanel#getTxtExpression()
291
-