org.escot
Class ChangeSupport
java.lang.Object
|
+--org.escot.ChangeSupport
- public class ChangeSupport
- extends Object
A convenience class to support objects which generate
ChangeEvents.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mListeners
protected Vector mListeners
ChangeSupport
public ChangeSupport()
addChangeListener
public void addChangeListener(ChangeListener lis)
- Registers a listener to receive ChangeEvents.
removeChangeListener
public void removeChangeListener(ChangeListener lis)
- Unregisters a listener receiving ChangeEvents.
fireChangeEvent
public void fireChangeEvent(Object source,
ChangeEvent ev)
- Notifies the listeners that a change has occurred,
providing the ChangeEvent to distribute.
- Parameters:
source - the source of the ChangeEvent.ev - the event
fireChangeEvent
public void fireChangeEvent(Object source)
- Notifies the listeners that a change has occurred.
- Parameters:
source - the source of the ChangeEvent.