|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.dom.events.EventListenerList
public class EventListenerList
Class to manager event listeners for one event type.
| Nested Class Summary | |
|---|---|
class |
EventListenerList.Entry
EventListenerTable entry class. |
| Field Summary | |
|---|---|
protected IntTable |
counts
Counts of listener entries with a given namespace URI. |
protected EventListenerList.Entry |
head
Linked list of entries. |
protected EventListenerList.Entry[] |
listeners
Cache of listeners with any namespace URI. |
protected HashTable |
listenersNS
Caches of listeners with a given namespace URI. |
protected int |
n
Total number of event listners. |
| Constructor Summary | |
|---|---|
EventListenerList()
|
|
| Method Summary | |
|---|---|
void |
addListener(String namespaceURI,
Object group,
EventListener listener)
Adds a listener. |
EventListenerList.Entry[] |
getEventListeners()
Returns an array containing all event listener entries. |
EventListenerList.Entry[] |
getEventListeners(String namespaceURI)
Returns an array of EventListeners that match the given namespace URI. |
boolean |
hasEventListener(String namespaceURI)
Returns whether there is an event listener for the given namespace URI. |
void |
removeListener(String namespaceURI,
EventListener listener)
Removes a listener. |
int |
size()
Returns the number of event listeners stored in this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int n
protected EventListenerList.Entry head
protected IntTable counts
protected EventListenerList.Entry[] listeners
protected HashTable listenersNS
| Constructor Detail |
|---|
public EventListenerList()
| Method Detail |
|---|
public void addListener(String namespaceURI,
Object group,
EventListener listener)
public void removeListener(String namespaceURI,
EventListener listener)
public EventListenerList.Entry[] getEventListeners()
public EventListenerList.Entry[] getEventListeners(String namespaceURI)
public boolean hasEventListener(String namespaceURI)
public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||