Revision 38564 branches/v2_0_0_prep/libraries/libUIComponent/src/org/gvsig/gui/beans/controls/comboscale/ComboScale.java
ComboScale.java | ||
---|---|---|
54 | 54 |
|
55 | 55 |
static private int eventId = Integer.MIN_VALUE; |
56 | 56 |
|
57 |
private Long lastValue = null; |
|
58 |
|
|
57 | 59 |
// jaume |
58 | 60 |
private class ComboScaleItem { |
59 | 61 |
|
... | ... | |
155 | 157 |
} |
156 | 158 |
return jComboBox; |
157 | 159 |
} |
160 |
|
|
161 |
public Object getValue() { |
|
162 |
return lastValue; |
|
163 |
} |
|
158 | 164 |
|
159 | 165 |
public void setItems(long[] items) { |
160 | 166 |
ComboScaleItem[] scales = new ComboScaleItem[items.length]; |
... | ... | |
216 | 222 |
if (!bDoCallListeners) |
217 | 223 |
return; |
218 | 224 |
|
225 |
lastValue = new Long(scale); |
|
219 | 226 |
Iterator<ActionListener> acIterator = actionCommandListeners.iterator(); |
220 | 227 |
while (acIterator.hasNext()) { |
221 | 228 |
ActionListener listener = acIterator.next(); |
222 |
listener.actionPerformed(new ActionEvent(this, eventId, |
|
223 |
"CHANGE_SCALE_" + scale)); |
|
229 |
listener.actionPerformed(new ActionEvent(this, eventId,"view-change-scale")); |
|
224 | 230 |
} |
225 | 231 |
eventId++; |
226 | 232 |
} |
Also available in: Unified diff