|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.debug.internal.core.ListenerList
public class ListenerList
Local version of org.eclipse.jface.util.ListenerList (modified)s
Constructor Summary | |
---|---|
ListenerList(int capacity)
Creates a listener list with the given initial capacity. |
Method Summary | |
---|---|
void |
add(java.lang.Object listener)
Adds a listener to the list. |
java.lang.Object[] |
getListeners()
Returns an array containing all the registered listeners. |
void |
remove(java.lang.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 |
---|
equals, 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(java.lang.Object listener)
listener
- a listenerpublic java.lang.Object[] getListeners()
public void remove(java.lang.Object listener)
listener
- a listenerpublic void removeAll()
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |