Class powersoft.jcm.event.EventListenerVector
All Packages Class Hierarchy This Package Previous Next Index
Class powersoft.jcm.event.EventListenerVector
java.lang.Object
|
+----powersoft.jcm.event.EventListenerVector
- public class EventListenerVector
- extends Object
- implements Cloneable
-
EventListenerVector()
-
-
addListener(EventListener)
- Adds a listener to the event list.
-
clone()
-
-
contains(EventListener)
-
-
elements()
-
-
reference()
-
-
removeListener(EventListener)
- Removes a listener from the vector.
-
size()
-
-
unreference()
-
EventListenerVector
public EventListenerVector()
addListener
public final synchronized EventListenerVector addListener(EventListener listener)
- Adds a listener to the event list. If the vector is in use, it is
cloned first. Always returns the modified vector, cloned or not.
- Parameters:
- listener - The event listener to add. If the event listener is
already in the list, it first removes it, then adds
it again.
- Returns:
- The modified event list, a clone if required.
- See Also:
- removeListener, reference, unreference
clone
public synchronized Object clone()
- Overrides:
- clone in class Object
contains
public synchronized boolean contains(EventListener l)
elements
public synchronized Enumeration elements()
reference
public synchronized void reference()
removeListener
public final synchronized EventListenerVector removeListener(EventListener listener)
- Removes a listener from the vector. If the vector is in use, it is
cloned first. Always returns the modified vector, cloned or not.
- Parameters:
- listener - The listener to remove. If the listener is not in the
the vector, no error occurs and the vector is unchanged.
- Returns:
- The modified event list, a clone if required.
- See Also:
- addListener, reference, unreference
size
public int size()
unreference
public synchronized void unreference()
All Packages Class Hierarchy This Package Previous Next Index