displayablecollections
Interface DisplayableCollection.CollectionChangedNotification<E>
- All Superinterfaces:
- ChangeNotification
- All Known Subinterfaces:
- DisplayableList.ListChangedNotification<E>
- Enclosing interface:
- DisplayableCollection<E>
public static interface DisplayableCollection.CollectionChangedNotification<E>
- extends ChangeNotification
An object that implements this interface encapsulates information about
changes to a DisplayableCollection. Such an object will be
the second parameter when the update() method of an Observer is called
following a change to this DisplayableCollection.
getType
ChangeNotification.ChangeType getType()
- Accessor for the type of change denoted by this object.
- Specified by:
getType
in interface ChangeNotification
- Returns:
- the type of change made to the collection
getElement
E getElement()
- Accessor for information about the element involved in the change
- Returns:
- null for CLEARED; the element that was removed for
ELEMENT_REMOVED; the element that was added for
ELEMENT_ADDED; the new element for ELEMENT_MODFIED.