fcmodeler.util
Interface SetChangeListener
- All Superinterfaces:
- java.util.EventListener
- All Known Implementing Classes:
- EdgeMappingObserver, NodeMappingObserver
- public interface SetChangeListener
- extends java.util.EventListener
The listener interface for receiving set change events. The class that is interested in the
modifications to a set implements this interface. The object created with that class is then
registered with an observable set using the set's addSetChangeListener
method.
When an element is added to or removed from the set, the relevant method in the listener object
is called, and the SetChangeEvent
is passed to it.
- Since:
- JDK1.3
- Version:
- $Revision: 1.1 $
- Author:
- Julie Dickerson , Zach Cox
elementAdded
public void elementAdded(SetChangeEvent event)
- Invoked when an element is added to the observed set.
- Parameters:
event
- the object representing the element's addition.
elementRemoved
public void elementRemoved(SetChangeEvent event)
- Invoked when an element is removed from the observed set.
- Parameters:
event
- the object represent the element's removal.