|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.launching.ListenerList
public class ListenerList
Local version of org.eclipse.jface.util.ListenerList (modified)s Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Constructor Summary | |
---|---|
ListenerList(int capacity)
Creates a listener list with the given initial capacity. |
Method Summary | |
---|---|
void |
add(Object listener)
Adds a listener to the list. |
Object[] |
getListeners()
Returns an array containing all the registered listeners. |
void |
remove(Object listener)
Removes a listener from the list. |
void |
removeAll()
Removes all the listeners from the list. |
int |
size()
Returns the number of registered listeners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListenerList(int capacity)
capacity
- the number of listeners which this list can initially accept
without growing its internal representation; must be at least 1Method Detail |
---|
public void add(Object listener)
listener
- a listenerpublic Object[] getListeners()
public void remove(Object listener)
listener
- a listenerpublic void removeAll()
public int size()
|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |