Revision 9493 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/filter/FilterDialog.java

View differences:

FilterDialog.java
55 55
import javax.swing.tree.DefaultTreeModel;
56 56

  
57 57
import org.apache.log4j.Logger;
58
import org.gvsig.gui.beans.filterPanel.AbstractFilterQueryJPanel;
59 58
import org.gvsig.gui.beans.filterPanel.tableFilterQueryPanel.TableFilterQueryJPanel;
60 59

  
61 60
import com.hardcode.gdbms.engine.data.driver.DriverException;
......
91 90
	
92 91
	private String title;
93 92
	
94
	private final int filterDialog_Width = AbstractFilterQueryJPanel.DefaultWidth +10;
93
	private final int filterDialog_Width = 500;
95 94
	private final int filterDialog_Height = 362;
95
	private final int widthIncrementForAndami = 20; // This is necessary because when the panel is sent to Andami, that needs a bit more width-space to show that panel.
96 96

  
97 97

  
98 98
	/**
......
117 117
	 */
118 118
	protected void initialize() {
119 119
		super.initialize();
120
		this.resize(AbstractFilterQueryJPanel.DefaultWidth, filterDialog_Height);
121 120
		
121
		super.resizeHeight(filterDialog_Height);
122
		super.resizeWidth(filterDialog_Width - widthIncrementForAndami);
123
		
122 124
		this.addNewListeners();
123 125
	}
124 126
	
......
127 129
	 */
128 130
	private void addNewListeners() {
129 131
		// Listener for "btnAdd"
130
		getBtnAdd().addActionListener(new java.awt.event.ActionListener() {
132
		// Adds more elements to the current set
133
		getBtnAddToCurrentSet().addActionListener(new java.awt.event.ActionListener() {
131 134
			/*
132 135
			 *  (non-Javadoc)
133 136
			 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
......
153 156
		});
154 157

  
155 158
		// Listener for "btnNuevo"
156
		getBtnNuevo().addActionListener(new java.awt.event.ActionListener() {
159
		// Adds a new set
160
		getBtnNewSet().addActionListener(new java.awt.event.ActionListener() {
157 161
			public void actionPerformed(java.awt.event.ActionEvent e) {
158 162
				final String expr = "select * from '" +
159 163
					model.getDataSourceName() + "' where " +
......
173 177
		});
174 178
				
175 179
		// Listener for "btnFromSet"
180
		// Selects elements in the table that are according the current filter condition
176 181
		getBtnFromSet().addActionListener(new java.awt.event.ActionListener() {
177 182
			public void actionPerformed(java.awt.event.ActionEvent e) {
178 183
				final String expr = "select * from '" +
......
563 568
	 */
564 569
	public WindowInfo getWindowInfo() {
565 570
		WindowInfo vi = new WindowInfo(WindowInfo.ICONIFIABLE);
571

  
572
		//if (System.getProperty("os.name")co.compareTo(arg0))
573
		vi.setHeight(this.filterDialog_Height);
574
		vi.setWidth(this.filterDialog_Width);
575

  
576
		// Old instructions
566 577
//		vi.setWidth(480);
567 578
//		vi.setHeight(362);
568
		vi.setWidth(filterDialog_Width);
569
		vi.setHeight(filterDialog_Height);
570 579
		vi.setTitle(PluginServices.getText( this, "filtro") + " (" + title + ")");
571 580
		return vi;
572 581
	}

Also available in: Unified diff