Revision 15819 trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/doubleslider/DoubleSlider.java
DoubleSlider.java | ||
---|---|---|
42 | 42 |
public class DoubleSlider extends JComponent implements MouseMotionListener, MouseListener, MouseWheelListener { |
43 | 43 |
private static final long serialVersionUID = 663355422780987493L; |
44 | 44 |
|
45 |
private ArrayList actionCommandListeners = new ArrayList();
|
|
45 |
private ArrayList<DoubleSliderListener> actionCommandListeners = new ArrayList<DoubleSliderListener>();
|
|
46 | 46 |
|
47 | 47 |
private final int LEFT_PAD = 2; |
48 | 48 |
private final int RIGHT_PAD = 2; |
... | ... | |
459 | 459 |
* Invocar a los eventos asociados al componente |
460 | 460 |
*/ |
461 | 461 |
private void callValueChangedListeners() { |
462 |
Iterator acIterator = actionCommandListeners.iterator();
|
|
463 |
while (acIterator.hasNext()) {
|
|
464 |
DoubleSliderListener listener = (DoubleSliderListener) acIterator.next();
|
|
462 |
Iterator<DoubleSliderListener> iterator = actionCommandListeners.iterator();
|
|
463 |
while (iterator.hasNext()) {
|
|
464 |
DoubleSliderListener listener = iterator.next();
|
|
465 | 465 |
listener.actionValueChanged(new DoubleSliderEvent(this)); |
466 | 466 |
} |
467 | 467 |
} |
... | ... | |
470 | 470 |
* Invocar a los eventos asociados al componente |
471 | 471 |
*/ |
472 | 472 |
private void callValueDraggedListeners() { |
473 |
Iterator acIterator = actionCommandListeners.iterator();
|
|
474 |
while (acIterator.hasNext()) {
|
|
475 |
DoubleSliderListener listener = (DoubleSliderListener) acIterator.next();
|
|
473 |
Iterator<DoubleSliderListener> iterator = actionCommandListeners.iterator();
|
|
474 |
while (iterator.hasNext()) {
|
|
475 |
DoubleSliderListener listener = iterator.next();
|
|
476 | 476 |
listener.actionValueDragged(new DoubleSliderEvent(this)); |
477 | 477 |
} |
478 | 478 |
} |
Also available in: Unified diff