|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
public abstract class EventManager
A manager to which listeners can be attached. This handles the management of a list of listeners -- optimizing memory and performance. All the methods on this class are guaranteed to be thread-safe.
Clients may extend.
Constructor Summary | |
---|---|
EventManager()
|
Method Summary | |
---|---|
protected void |
addListenerObject(java.lang.Object listener)
Adds a listener to this manager that will be notified when this manager's state changes. |
protected void |
clearListeners()
Clears all of the listeners from the listener list. |
protected java.lang.Object[] |
getListeners()
Returns the listeners attached to this event manager. |
protected boolean |
isListenerAttached()
Whether one or more listeners are attached to the manager. |
protected void |
removeListenerObject(java.lang.Object listener)
Removes a listener from this manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventManager()
Method Detail |
---|
protected final void addListenerObject(java.lang.Object listener)
listener
- The listener to be added; must not be null
.protected final void clearListeners()
protected final java.lang.Object[] getListeners()
null
protected final boolean isListenerAttached()
true
if listeners are attached to the manager;
false
otherwise.protected final void removeListenerObject(java.lang.Object listener)
listener
- The listener to be removed; must not be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |