The AccessibilityListenerList is a copy of the Swing
EventListerList class.
| Modifier and Type | Field and Description |
|---|---|
| protected transient Object[] | listenerList
The list of listener type, listener pairs |
| private static final Object[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | add(Class<? extends EventListener>
the type of the listener to be added t, EventListener the listener to be added l)Add the listener as a listener of the specified type. |
| public int | Returns: the total number of listeners for this listener list.Returns the total number of listeners for this listener list. |
| public int | Returns: the number of listeners foundthe type of the listener to be counted t)Return the total number of listeners of the supplied type for this listener list. |
| public Object[] | Returns: an array of listener type, listener pairs.Passes back the event listener list as an array of listener type, listener pairs. |
| public synchronized void | remove(Class<? extends EventListener>
the type of the listener to be removed t, EventListener the listener to be removed l)Remove the listener as a listener of the specified type. |
| public String | Returns: a string representation of theAccessibilityListenerList.Overrides java. Return a string representation of the |
| listenerList | back to summary |
|---|---|
| protected transient Object[] listenerList The list of listener type, listener pairs | |
| NULL_ARRAY | back to summary |
|---|---|
| private static final Object[] NULL_ARRAY | |
| AccessibilityListenerList | back to summary |
|---|---|
| public AccessibilityListenerList() Constructs an | |
| add | back to summary |
|---|---|
| public synchronized void add(Class<? extends EventListener> t, EventListener l) Add the listener as a listener of the specified type.
| |
| getListenerCount | back to summary |
|---|---|
| public int getListenerCount() Returns the total number of listeners for this listener list.
| |
| getListenerCount | back to summary |
|---|---|
| public int getListenerCount(Class<? extends EventListener> t) Return the total number of listeners of the supplied type for this listener list.
| |
| getListenerList | back to summary |
|---|---|
| public Object[] getListenerList() Passes back the event listener list as an array of listener type, listener pairs. Note that for performance reasons, this implementation passes back the actual data structure in which the listener data is stored internally. This method is guaranteed to pass back a non-null array, so that no null-checking is required in fire methods. A zero-length array of Object is returned if there are currently no listeners. Absolutely no modification of the data contained in this array should be made. If any such manipulation is necessary, it should be done on a copy of the array returned rather than the array itself.
| |
| remove | back to summary |
|---|---|
| public synchronized void remove(Class<? extends EventListener> t, EventListener l) Remove the listener as a listener of the specified type.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return a string representation of the
| |