Revision 44801 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featurequery/DefaultFeatureQueryGroupByPanel.java
DefaultFeatureQueryGroupByPanel.java | ||
---|---|---|
11 | 11 |
import javax.swing.JComponent; |
12 | 12 |
import javax.swing.JLabel; |
13 | 13 |
import javax.swing.JList; |
14 |
import javax.swing.event.ChangeEvent; |
|
15 |
import javax.swing.event.ChangeListener; |
|
16 |
import javax.swing.event.ListDataEvent; |
|
17 |
import javax.swing.event.ListDataListener; |
|
14 | 18 |
import javax.swing.event.ListSelectionEvent; |
19 |
import javax.swing.event.ListSelectionListener; |
|
15 | 20 |
import org.apache.commons.io.FilenameUtils; |
16 | 21 |
import org.apache.commons.lang3.StringUtils; |
17 | 22 |
import org.gvsig.expressionevaluator.ExpressionEvaluatorLocator; |
... | ... | |
114 | 119 |
|
115 | 120 |
this.lstAttributes.setCellRenderer(new AttributesWithAggregateRenderer()); |
116 | 121 |
this.lstAttributes.addListSelectionListener((ListSelectionEvent e) -> { |
117 |
if (e.getValueIsAdjusting()) { |
|
118 |
return; |
|
119 |
} |
|
120 |
doSelectAttribute(); |
|
122 |
if (e.getValueIsAdjusting()) {
|
|
123 |
return;
|
|
124 |
}
|
|
125 |
doSelectAttribute();
|
|
121 | 126 |
}); |
122 | 127 |
|
123 | 128 |
this.cboAggretateFunctions.addActionListener(new ActionListener() { |
... | ... | |
132 | 137 |
txtAttributesFilter, |
133 | 138 |
btnAttributesFilter |
134 | 139 |
); |
140 |
this.aggregateFunctionsController.addChangeListener(new ChangeListener() { |
|
141 |
@Override |
|
142 |
public void stateChanged(ChangeEvent ce) { |
|
143 |
doSelectAttribute(); |
|
144 |
} |
|
145 |
}); |
|
135 | 146 |
Dimension sz = this.getPreferredSize(); |
136 | 147 |
if (sz.width < DEFAULT_WIDTH) { |
137 | 148 |
sz.width = DEFAULT_WIDTH; |
Also available in: Unified diff