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

Constructor Index

 o EventListenerVector()

Method Index

 o addListener(EventListener)
Adds a listener to the event list.
 o clone()
 o contains(EventListener)
 o elements()
 o reference()
 o removeListener(EventListener)
Removes a listener from the vector.
 o size()
 o unreference()

Constructors

 o EventListenerVector
  public EventListenerVector()

Methods

 o 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
 o clone
  public synchronized Object clone()
Overrides:
clone in class Object
 o contains
  public synchronized boolean contains(EventListener l)
 o elements
  public synchronized Enumeration elements()
 o reference
  public synchronized void reference()
 o 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
 o size
  public int size()
 o unreference
  public synchronized void unreference()

All Packages  Class Hierarchy  This Package  Previous  Next  Index