public class EventListeners<K,V> extends Object
Constructor and Description |
---|
EventListeners()
Deprecated.
Creates an empty listener list.
|
EventListeners(int capacity)
Deprecated.
Creates an empty listener list.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(K listener,
V listenerObject)
Deprecated.
Add a listener to the list.
|
void |
removeAllListeners()
Deprecated.
Remove all listeners from the list.
|
void |
removeListener(V listener)
Deprecated.
Remove a listener from the list.
|
public EventListeners()
public EventListeners(int capacity)
capacity
- This argument is ignored.public void addListener(K listener, V listenerObject)
listener
- This is the listener object to be added to the list.listenerObject
- This is an optional listener-specific object.
This object will be passed to the EventDispatcher along with the listener
when the listener is to be called. This may be nullIllegalArgumentException
- If listener is null.public void removeListener(V listener)
listener
- This is the listener object to be removed from the list.IllegalArgumentException
- If listener is null.public void removeAllListeners()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.