Class AccessibilityListenerList
java.lang.Object
com.sun.java.accessibility.util.AccessibilityListenerList
The AccessibilityListenerList is a copy of the Swing
EventListerList class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Class<? extends EventListener> t, EventListener l) Add the listener as a listener of the specified type.intReturns the total number of listeners for this listener list.intgetListenerCount(Class<? extends EventListener> t) Return the total number of listeners of the supplied type for this listener list.Object[]Passes back the event listener list as an array of listener type, listener pairs.voidremove(Class<? extends EventListener> t, EventListener l) Remove the listener as a listener of the specified type.toString()Return a string representation of theAccessibilityListenerList.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Field Details
-
listenerList
The list of listener type, listener pairs
-
-
Constructor Details
-
AccessibilityListenerList
public AccessibilityListenerList()Constructs anAccessibilityListenerList.
-
-
Method Details
-
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.
- Returns:
- an array of listener type, listener pairs.
-
getListenerCount
public int getListenerCount()Returns the total number of listeners for this listener list.- Returns:
- the total number of listeners for this listener list.
-
getListenerCount
Return the total number of listeners of the supplied type for this listener list.- Parameters:
t- the type of the listener to be counted- Returns:
- the number of listeners found
-
add
Add the listener as a listener of the specified type.- Parameters:
t- the type of the listener to be addedl- the listener to be added
-
remove
Remove the listener as a listener of the specified type.- Parameters:
t- the type of the listener to be removedl- the listener to be removed
-
toString
-