@Exported public class AccessibilityListenerList extends Object
The AccessibilityListenerList
is a copy of the Swing
EventListerList
class.
Modifier and Type | Field and Description |
---|---|
protected Object[] |
listenerList
The list of listener type, listener pairs
|
Constructor and Description |
---|
AccessibilityListenerList() |
Modifier and Type | Method and Description |
---|---|
void |
add(Class 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 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 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 t)
t
- the type of the listener to be countedpublic void add(Class t, EventListener l)
t
- the type of the listener to be addedl
- the listener to be addedpublic void remove(Class t, EventListener l)
t
- the type of the listener to be removedl
- the listener to be removed
Copyright © 2002, 2016, Oracle and/or its affiliates. All rights reserved.