Revision 10608 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/panels/WFSSelectFeaturePanel.java
WFSSelectFeaturePanel.java | ||
---|---|---|
59 | 59 |
* |
60 | 60 |
* $Id$ |
61 | 61 |
* $Log$ |
62 |
* Revision 1.16 2007-02-22 12:25:09 ppiqueras |
|
62 |
* Revision 1.17 2007-03-05 13:49:42 ppiqueras |
|
63 |
* Si una capa WFS no tiene campos (y por tanto no tiene un campo obligatorio de tipo geometr?a), que avise al usuario y no permita que se intente cargar dicha capa. |
|
64 |
* |
|
65 |
* Revision 1.16 2007/02/22 12:25:09 ppiqueras |
|
63 | 66 |
* A?adidas tool tip text. |
64 | 67 |
* |
65 | 68 |
* Revision 1.15 2007/02/09 14:12:39 jorpiell |
... | ... | |
301 | 304 |
|
302 | 305 |
/** |
303 | 306 |
* Refresh the features list |
304 |
* |
|
305 | 307 |
*/ |
306 | 308 |
public void refreshInfo(){ |
309 |
// Unselects all features |
|
310 |
unselectAllFeatures(); |
|
311 |
|
|
312 |
// Add the new features |
|
313 |
getLstFeatures().addFeatures(data.getFeatures()); |
|
314 |
} |
|
315 |
|
|
316 |
/** |
|
317 |
* Updates the list with no feature selected |
|
318 |
*/ |
|
319 |
public void unselectAllFeatures() { |
|
307 | 320 |
// Reset the last row selection of the features table |
308 | 321 |
int numberOfFeatures = getLstFeatures().getRowCount(); |
322 |
|
|
309 | 323 |
if (numberOfFeatures > 0) { |
310 | 324 |
ListSelectionModel model = getLstFeatures().getSelectionModel(); |
311 | 325 |
model.removeSelectionInterval(0, numberOfFeatures - 1); // whatever row selection |
312 | 326 |
} |
313 |
|
|
314 |
// Add the new features |
|
315 |
getLstFeatures().addFeatures(data.getFeatures()); |
|
316 | 327 |
} |
317 |
|
|
328 |
|
|
318 | 329 |
/** |
319 | 330 |
* Refreshes the wizard components data each time a feature |
320 | 331 |
* is selected. The describeFeatureType operation must be |
Also available in: Unified diff