Revision 15728 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/panels/WFSFilterPanel.java
WFSFilterPanel.java | ||
---|---|---|
134 | 134 |
private TreePath currentPath; |
135 | 135 |
private String featureName; |
136 | 136 |
private Map allFieldsAndValuesKnownOfCurrentLayer; // This will have all values (not repeated) known of all fields (not repeated) |
137 |
private short eventsReceived; // This attribute is necessary to avoid a bug produced by the reception duplicated of an event when a layer of a WFS service is selected. |
|
137 | 138 |
|
138 | 139 |
///// GUI METHODS //// |
139 | 140 |
|
... | ... | |
414 | 415 |
super.getValuesJList().setEnabled(false); |
415 | 416 |
super.getValuesJList().setBackground(new Color(220, 220, 220)); // a grey color |
416 | 417 |
|
418 |
/* |
|
419 |
* This attribute is necessary to avoid a bug produced by the reception duplicated of an event |
|
420 |
* when a layer of a WFS service is selected. |
|
421 |
*/ |
|
422 |
if ((eventsReceived % 2) == 0) |
|
423 |
this.allFieldsAndValuesKnownOfCurrentLayer.clear(); |
|
424 |
|
|
425 |
eventsReceived ++; |
|
426 |
|
|
417 | 427 |
this.allFieldsAndValuesKnownOfCurrentLayer.clear(); |
418 | 428 |
getValidateFilterExpressionJCheckBox().setSelected(true); |
419 | 429 |
} |
... | ... | |
430 | 440 |
|
431 | 441 |
this.getFieldsJTree().removeAll(); |
432 | 442 |
this.getValuesJList().removeAll(); |
443 |
|
|
444 |
/* |
|
445 |
* This attribute is necessary to avoid a bug produced by the reception duplicated of an event |
|
446 |
* when a layer of a WFS service is selected. |
|
447 |
*/ |
|
448 |
eventsReceived = 0; |
|
433 | 449 |
|
434 | 450 |
// Updates data associated to view with the new layer data |
435 | 451 |
this.setNewDataToTable(); |
... | ... | |
727 | 743 |
else |
728 | 744 |
return true; // No validation done because user selected that option |
729 | 745 |
} |
730 |
|
|
746 |
|
|
731 | 747 |
/** |
732 | 748 |
* Returns true if there is a field with the same name as 'text' |
733 | 749 |
* |
Also available in: Unified diff