dsto.dfc.collections
Class DfcMonitoredList

java.lang.Object
  extended by dsto.dfc.collections.BasicMonitoredCollection
      extended by dsto.dfc.collections.BasicMonitoredList
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class dsto.dfc.collections.BasicMonitoredList
BasicMonitoredList.ListIteratorWrapper
 
Nested classes/interfaces inherited from class dsto.dfc.collections.BasicMonitoredCollection
BasicMonitoredCollection.CollectionIteratorWrapper
 
Field Summary
 
Fields inherited from class dsto.dfc.collections.BasicMonitoredCollection
collection, collectionListeners
 
Constructor Summary
DfcMonitoredList()
          Create a new instance using an ArrayList for storage.
DfcMonitoredList(List backingList)
           
 
Method Summary
 void addDfcMonitoredListListener(DfcMonitoredListListener l)
           
protected  void fireElementMoved(Object element, int oldIndex, int newIndex)
           
 void move(int fromIndex, int toIndex)
          Move an element from one index to another, firing an elementMoved event to any registered DfcMonitoredListListener's.
 void removeDfcMonitoredListListener(DfcMonitoredListListener l)
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface dsto.dfc.collections.MonitoredCollection
addCollectionListener, removeCollectionListener
 
Methods inherited from interface java.util.List
contains, containsAll, equals, hashCode, isEmpty, iterator, retainAll, size, toArray, toArray
 
Methods inherited from interface dsto.dfc.util.Copyable
clone
 

Constructor Detail

DfcMonitoredList

public DfcMonitoredList()
Create a new instance using an ArrayList for storage.


DfcMonitoredList

public DfcMonitoredList(List backingList)
Method Detail

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