|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.osgi.framework.eventmgr.EventListeners<K,V>
public class EventListeners<K,V>
This class manages a list of listeners. Listeners may be added or removed as necessary. This class uses identity for comparison, not equals.
| Constructor Summary | |
|---|---|
EventListeners()
Deprecated. Creates an empty listener list. |
|
EventListeners(int capacity)
Deprecated. Creates an empty listener list. |
|
| Method Summary | |
|---|---|
void |
addListener(K listener,
V listenerObject)
Deprecated. Add a listener to the list. |
void |
removeAllListeners()
Deprecated. Remove all listeners from the list. |
void |
removeListener(V listener)
Deprecated. Remove a listener from the list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventListeners()
public EventListeners(int capacity)
capacity - This argument is ignored.| Method Detail |
|---|
public void addListener(K listener,
V listenerObject)
listener - This is the listener object to be added to the list.listenerObject - This is an optional listener-specific object.
This object will be passed to the EventDispatcher along with the listener
when the listener is to be called. This may be null
IllegalArgumentException - If listener is null.public void removeListener(V listener)
listener - This is the listener object to be removed from the list.
IllegalArgumentException - If listener is null.public void removeAllListeners()
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.