|
|||||||||
| Home >> All >> org >> apache >> batik >> dom >> [ events overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.batik.dom.events
Class EventListenerList

java.lang.Objectorg.apache.batik.dom.events.EventListenerList
- public class EventListenerList
- extends java.lang.Object
A simple list of EventListener. Listeners are always added at the head of the list.
| Nested Class Summary | |
protected static class |
EventListenerList.Entry
|
| Field Summary | |
protected EventListenerList.Entry |
first
Simple Linked list of listeners. |
protected org.w3c.dom.events.EventListener[] |
listeners
Array of listeners retained between calls to getEventListeners if the list of listeners doesn't change. |
protected int |
n
Current number of entries in list. |
| Constructor Summary | |
EventListenerList()
|
|
| Method Summary | |
void |
add(org.w3c.dom.events.EventListener listener)
Adds the specified event listener. |
boolean |
contains(org.w3c.dom.events.EventListener listener)
Returns true of the specified event listener has already been added to this list, false otherwise. |
org.w3c.dom.events.EventListener[] |
getEventListeners()
Returns an array of the event listeners of this list, or null if any. |
void |
remove(org.w3c.dom.events.EventListener listener)
Removes the specified event listener. |
int |
size()
Returns the number of listeners in the list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
n
protected int n
- Current number of entries in list.
first
protected EventListenerList.Entry first
- Simple Linked list of listeners.
listeners
protected org.w3c.dom.events.EventListener[] listeners
- Array of listeners retained between calls to getEventListeners if the
list of listeners doesn't change. This needs to be a copy so if the
list of listeners changes during event dispatch it doesn't effect
the inprogress dispatch.
| Constructor Detail |
EventListenerList
public EventListenerList()
| Method Detail |
getEventListeners
public org.w3c.dom.events.EventListener[] getEventListeners()
- Returns an array of the event listeners of this list, or null if any.
add
public void add(org.w3c.dom.events.EventListener listener)
- Adds the specified event listener.
remove
public void remove(org.w3c.dom.events.EventListener listener)
- Removes the specified event listener.
contains
public boolean contains(org.w3c.dom.events.EventListener listener)
- Returns true of the specified event listener has already been
added to this list, false otherwise.
size
public int size()
- Returns the number of listeners in the list.
|
|||||||||
| Home >> All >> org >> apache >> batik >> dom >> [ events overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.batik.dom.events.EventListenerList