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() |
Constructs an AccessibilityListenerList . |
Modifier and Type | Method | Description |
---|---|---|
void |
add |
Add the listener as a listener of the specified type. |
int |
getListenerCount() |
Returns the total number of listeners for this listener list. |
int |
getListenerCount |
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 |
Remove the listener as a listener of the specified type. |
String |
toString() |
Return a string representation of the AccessibilityListenerList . |
protected transient Object[] listenerList
public AccessibilityListenerList()
AccessibilityListenerList
.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 removedpublic String toString()
AccessibilityListenerList
.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.accessibility/com/sun/java/accessibility/util/AccessibilityListenerList.html