|
org.openide.util 7.9.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.util.ChangeSupport
public final class ChangeSupport
A simple equivalent of PropertyChangeSupport for
ChangeListeners. This class is not serializable.
| Constructor Summary | |
|---|---|
ChangeSupport(Object source)
Creates a new ChangeSupport |
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener listener)
Adds a ChangeListener to the listener list. |
void |
fireChange()
Fires a change event to all registered listeners. |
boolean |
hasListeners()
Checks if there are any listeners registered to this ChangeSupport. |
void |
removeChangeListener(ChangeListener listener)
Removes a ChangeListener from the listener list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChangeSupport(Object source)
ChangeSupport
source - the instance to be given as the source for events.| Method Detail |
|---|
public void addChangeListener(ChangeListener listener)
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.
listener - the ChangeListener to be added.public void removeChangeListener(ChangeListener listener)
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.
listener - the ChangeListener to be removed.public void fireChange()
public boolean hasListeners()
ChangeSupport.
|
org.openide.util 7.9.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||