org.eclipse.emf.edit.provider
Class ChangeNotifier
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.eclipse.emf.edit.provider.ChangeNotifier
- All Implemented Interfaces:
- Cloneable, Collection, IChangeNotifier, List, RandomAccess, Serializable
- public class ChangeNotifier
- extends ArrayList
- implements IChangeNotifier
This is a simple and obvious implementation of IChangeNotifier
as an extension of an ArrayList, for flexibility.
- See Also:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
ChangeNotifier
public ChangeNotifier()
fireNotifyChanged
public void fireNotifyChanged(Notification notification)
- This calls
notifyChanged
for each listener.
- Specified by:
fireNotifyChanged
in interface IChangeNotifier
addListener
public void addListener(INotifyChangedListener notifyChangedListener)
- This adds another listener.
- Specified by:
addListener
in interface IChangeNotifier
removeListener
public void removeListener(INotifyChangedListener notifyChangedListener)
- This removes a listener.
- Specified by:
removeListener
in interface IChangeNotifier