public class AccessibilityListenerList extends Object
The AccessibilityListenerList is a copy of the Swing
EventListerList class.
| Modifier and Type | Field | Description |
|---|---|---|
protected Object[] |
listenerList |
The list of listener type, listener pairs
|
| Constructor | Description |
|---|---|
AccessibilityListenerList() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(Class<? extends EventListener> t,
EventListener l) |
Add the listener as a listener of the specified type.
|
int |
getListenerCount() |
Returns the total number of listeners for this listener list.
|
int |
getListenerCount(Class<? extends EventListener> t) |
Return the total number of listeners of the supplied type
for this listener list.
|
Object[] |
getListenerList() |
Passes back the event listener list as an array of listener type, listener pairs.
|
void |
remove(Class<? extends EventListener> t,
EventListener l) |
Remove the listener as a listener of the specified type.
|
String |
toString() |
Return a string representation of the
AccessibilityListenerList. |
protected transient Object[] listenerList
public Object[] getListenerList()
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.
public int getListenerCount()
public int getListenerCount(Class<? extends EventListener> t)
t - the type of the listener to be countedpublic void add(Class<? extends EventListener> t, EventListener l)
t - the type of the listener to be addedl - the listener to be addedpublic void remove(Class<? extends EventListener> t, EventListener l)
t - the type of the listener to be removedl - the listener to be removed Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2002, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b153-2