All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.dip.EventFireSupport

java.lang.Object
   |
   +----com.ibm.beans.dip.EventFireSupport

public class EventFireSupport
extends Object
implements Serializable
This utility class can be used by beans that support bound events. You can inherit from this class or use an instance of this class as a member field of your bean. Once inherited or instantiated, you can delegate work to this bean.


Constructor Index

 o EventFireSupport(Object)
Constructs an EventFireSupport instance using the default Vector implementation.
 o EventFireSupport(Object, Collection)
Constructs an EventFireSupport instance using the input Collection.

Method Index

 o addEventFireListener(EventFireListener)
Adds a EventFireListener to the listener list.
 o elements()
Gets an enumeration of EventFireListeners.
 o fireEventFire(String)
Reports a bound event firing to any registered listeners.
 o isEmpty()
Checks to see if the collection is empty.
 o removeEventFireListener(EventFireListener)
Removes a EventFireListener from the listener list.

Constructors

 o EventFireSupport
 public EventFireSupport(Object sourceBean)
Constructs an EventFireSupport instance using the default Vector implementation.

Parameters:
sourceBean - The bean given as the source for any event.
 o EventFireSupport
 public EventFireSupport(Object sourceBean,
                         Collection collection)
Constructs an EventFireSupport instance using the input Collection.

Parameters:
sourceBean - The bean given as the source for any event.
collection - The type of Collection used to store the listeners.

Methods

 o addEventFireListener
 public synchronized void addEventFireListener(EventFireListener listener)
Adds a EventFireListener to the listener list.

Parameters:
listener - The listener to add.
 o removeEventFireListener
 public synchronized void removeEventFireListener(EventFireListener listener)
Removes a EventFireListener from the listener list.

Parameters:
listener - The listener to remove.
 o fireEventFire
 public void fireEventFire(String eventSetName)
Reports a bound event firing to any registered listeners.

Parameters:
eventSetName - The event set name for the event that was fired.
 o elements
 public final synchronized Enumeration elements()
Gets an enumeration of EventFireListeners. Use the Enumeration methods on the returned object to fetch the elements sequentially.

Returns:
An enumeration of the listeners that will be fired in the fireEventFire() method.
 o isEmpty
 public final boolean isEmpty()
Checks to see if the collection is empty.

Returns:
true if empty; false otherwise.

All Packages  Class Hierarchy  This Package  Previous  Next  Index