L
- Type of the listener to be stored in this Listpublic class IlvListenerList<L extends EventListener> extends Object implements Serializable
EventListener
interface.Constructor and Description |
---|
IlvListenerList()
Creates an IlvListenerList with initially no registered listeners.
|
Modifier and Type | Method and Description |
---|---|
void |
add(L listener)
Adds the listener to the list of registered listeners.passing a null
argument will result in IllegalArgumentException.
|
int |
getListenerCount()
Returns the number of registered listeners in this instance.
|
Object[] |
getListenerList()
Returns an array containing the listeners currently registered in this
object.This array should not be modified.
|
boolean |
remove(L listener)
Removes a listener from the List.
|
public IlvListenerList()
public final void add(L listener)
listener
- implementing Event Listener Interface.public final boolean remove(L listener)
listener
- implementing EventListener interface.public final int getListenerCount()
public final Object[] getListenerList()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.