APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.java.accessibility.util

public Class AccessibilityListenerList

extends Object
Class Inheritance
Imports
java.util.*, java.beans.*, java.awt.*, java.awt.event.*, javax.accessibility.*

The AccessibilityListenerList is a copy of the Swing EventListerList class.

Field Summary

Modifier and TypeField and Description
protected transient Object[]
listenerList

The list of listener type, listener pairs

private static final Object[]

Constructor Summary

AccessConstructor and Description
public
AccessibilityListenerList()

Constructs an AccessibilityListenerList.

Method Summary

Modifier and TypeMethod and Description
public synchronized void
add(Class<? extends EventListener>
the type of the listener to be added
t
,
EventListener
the listener to be added
l
)

Add the listener as a listener of the specified type.

public int

Returns:

the total number of listeners for this listener list.
getListenerCount
()

Returns the total number of listeners for this listener list.

public int

Returns:

the number of listeners found
getListenerCount
(Class<? extends EventListener>
the type of the listener to be counted
t
)

Return the total number of listeners of the supplied type for this listener list.

public Object[]

Returns:

an array of listener type, listener pairs.
getListenerList
()

Passes back the event listener list as an array of listener type, listener pairs.

public synchronized void
remove(Class<? extends EventListener>
the type of the listener to be removed
t
,
EventListener
the listener to be removed
l
)

Remove the listener as a listener of the specified type.

public String

Returns:

a string representation of the AccessibilityListenerList.
toString
()

Overrides java.lang.Object.toString.

Return a string representation of the AccessibilityListenerList.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

listenerListback to summary
protected transient Object[] listenerList

The list of listener type, listener pairs

NULL_ARRAYback to summary
private static final Object[] NULL_ARRAY

Constructor Detail

AccessibilityListenerListback to summary
public AccessibilityListenerList()

Constructs an AccessibilityListenerList.

Method Detail

addback to summary
public synchronized void add(Class<? extends EventListener> t, EventListener l)

Add the listener as a listener of the specified type.

Parameters
t:Class<? extends EventListener>

the type of the listener to be added

l:EventListener

the listener to be added

getListenerCountback to summary
public int getListenerCount()

Returns the total number of listeners for this listener list.

Returns:int

the total number of listeners for this listener list.

getListenerCountback to summary
public int getListenerCount(Class<? extends EventListener> t)

Return the total number of listeners of the supplied type for this listener list.

Parameters
t:Class<? extends EventListener>

the type of the listener to be counted

Returns:int

the number of listeners found

getListenerListback to summary
public Object[] 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:Object[]

an array of listener type, listener pairs.

removeback to summary
public synchronized void remove(Class<? extends EventListener> t, EventListener l)

Remove the listener as a listener of the specified type.

Parameters
t:Class<? extends EventListener>

the type of the listener to be removed

l:EventListener

the listener to be removed

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return a string representation of the AccessibilityListenerList.

Returns:String

a string representation of the AccessibilityListenerList.