java.lang.Object
com.sun.java.accessibility.util.AccessibilityListenerList
The AccessibilityListenerList is a copy of the Swing
 EventListerList class.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.
- 
Field Details- 
listenerListThe list of listener type, listener pairs
 
- 
- 
Constructor Details- 
AccessibilityListenerListpublic AccessibilityListenerList()Constructs anAccessibilityListenerList.
 
- 
- 
Method Details- 
getListenerListPasses 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.
 
- 
getListenerCountpublic int getListenerCount()Returns the total number of listeners for this listener list.- Returns:
- the total number of listeners for this listener list.
 
- 
getListenerCountReturn 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
 
- 
addAdd the listener as a listener of the specified type.- Parameters:
- t- the type of the listener to be added
- l- the listener to be added
 
- 
removeRemove the listener as a listener of the specified type.- Parameters:
- t- the type of the listener to be removed
- l- the listener to be removed
 
- 
toStringReturn a string representation of theAccessibilityListenerList.
 
-