Revision 8585 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/panels/WFSFilterPanel.java

View differences:

WFSFilterPanel.java
1 1
package com.iver.cit.gvsig.gui.panels;
2 2

  
3
import java.awt.Color;
3 4
import java.awt.event.MouseAdapter;
4 5
import java.awt.event.MouseEvent;
5 6
import java.text.NumberFormat;
......
109 110
	public WFSFilterPanel(WFSParamsPanel parent) {
110 111
		super();
111 112
		this.parent = parent;
113

  
114
		// At beginning, the JList is disabled (and its set a particular color for user could knew it)
115
		super.getValuesJList().setEnabled(false);
116
		getValuesJList().setBackground(new Color(220, 220, 220));
112 117
	}
113 118
	
114 119
	/*
......
122 127
		defaultTreeModel = (DefaultTreeModel)fieldsJTree.getModel();
123 128
		
124 129
		this.addNewListeners();
125
		panelAsATabForWFSLayersLoad = true;
130
		panelAsATabForWFSLayersLoad = true;		
126 131
	}
127 132
	
128 133
	/**
......
154 159
				if (!panelAsATabForWFSLayersLoad)
155 160
					parent.isApplicable(true);
156 161
			}
157
			
158 162
		});
159 163
		
160 164
		// Listener for "fieldsJTree" 
......
200 204
					putSymbol(valor.toString());	
201 205
				}
202 206
			}
203
		});
207
		});		
204 208
	}
205 209
	
206 210
	/**
......
210 214
	 */
211 215
	public void setWFSFilterPanelIsAsTabForWFSLayersLoad (boolean b) {
212 216
		this.panelAsATabForWFSLayersLoad = b;
217
		
218
		if (this.panelAsATabForWFSLayersLoad == true) {
219
			// At beginning, the JList is disabled (and its set a particular color for user could knew it)
220
			super.getValuesJList().setEnabled(false);
221
			super.getValuesJList().setBackground(new Color(220, 220, 220));
222
		}
223
		else {
224
			super.getValuesJList().setEnabled(true);
225
			super.getValuesJList().setBackground(Color.WHITE);
226
		}
213 227
	}
214 228
	
215 229
	/**

Also available in: Unified diff