public class ChangeNotifier extends java.util.ArrayList<INotifyChangedListener> implements IChangeNotifier
IChangeNotifier as an extension of an ArrayList, for flexibility.| Constructor and Description |
|---|
ChangeNotifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(INotifyChangedListener notifyChangedListener)
This adds another listener.
|
void |
fireNotifyChanged(Notification notification)
This calls
notifyChanged for each listener. |
void |
removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizepublic void fireNotifyChanged(Notification notification)
notifyChanged for each listener.fireNotifyChanged in interface IChangeNotifierpublic void addListener(INotifyChangedListener notifyChangedListener)
addListener in interface IChangeNotifierpublic void removeListener(INotifyChangedListener notifyChangedListener)
removeListener in interface IChangeNotifier