| java.lang.Object org.openide.util.ChangeSupport
ChangeSupport | public ChangeSupport(Object source)(Code) | | Creates a new ChangeSupport
Parameters: source - the instance to be given as the source for events. |
addChangeListener | public void addChangeListener(ChangeListener listener)(Code) | | Adds a ChangeListener to the listener list. The same
listener object may be added more than once, and will be called
as many times as it is added. If listener is null,
no exception is thrown and no action is taken.
Parameters: listener - the ChangeListener to be added. |
fireChange | public void fireChange()(Code) | | Fires a change event to all registered listeners.
|
hasListeners | public boolean hasListeners()(Code) | | Checks if there are any listeners registered to thisChangeSupport .
true if there are one or more listeners for the given property,false otherwise. |
removeChangeListener | public void removeChangeListener(ChangeListener listener)(Code) | | Removes a ChangeListener from the listener list.
If listener was added more than once,
it will be notified one less time after being removed.
If listener is null, or was never added, no exception is
thrown and no action is taken.
Parameters: listener - the ChangeListener to be removed. |
|
|