dsto.dfc.collections
Class DfcMonitoredList
java.lang.Object
dsto.dfc.collections.BasicMonitoredCollection
dsto.dfc.collections.BasicMonitoredList
dsto.dfc.collections.DfcMonitoredList
- All Implemented Interfaces:
- MonitoredCollection, MonitoredList, Copyable, Serializable, Cloneable, Iterable, Collection, List
- Direct Known Subclasses:
- ListDataObject
public class DfcMonitoredList
- extends BasicMonitoredList
Extended MonitoredList implementation supporting move operations.
- Version:
- $Revision$
- Author:
- Matthew Phillips
- See Also:
- Serialized Form
Methods inherited from class dsto.dfc.collections.BasicMonitoredList |
add, add, addAll, addAll, clear, get, getBackingList, indexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, set, subList |
Methods inherited from class dsto.dfc.collections.BasicMonitoredCollection |
addCollectionListener, clone, contains, containsAll, emptyClone, fireElementsAdded, fireElementsRemoved, isEmpty, iterator, removeCollectionListener, retainAll, size, toArray, toArray, toString |
DfcMonitoredList
public DfcMonitoredList()
- Create a new instance using an ArrayList for storage.
DfcMonitoredList
public DfcMonitoredList(List backingList)
move
public void move(int fromIndex,
int toIndex)
throws IndexOutOfBoundsException
- Move an element from one index to another, firing an
elementMoved event to any registered DfcMonitoredListListener's.
- Throws:
IndexOutOfBoundsException
addDfcMonitoredListListener
public void addDfcMonitoredListListener(DfcMonitoredListListener l)
removeDfcMonitoredListListener
public void removeDfcMonitoredListListener(DfcMonitoredListListener l)
fireElementMoved
protected void fireElementMoved(Object element,
int oldIndex,
int newIndex)
Copyright © 2008 Commonwealth of Australia