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.
-
EventFireSupport(Object)
- Constructs an EventFireSupport instance using the default Vector
implementation.
-
EventFireSupport(Object, Collection)
- Constructs an EventFireSupport instance using the input Collection.
-
addEventFireListener(EventFireListener)
- Adds a EventFireListener to the listener list.
-
elements()
- Gets an enumeration of EventFireListeners.
-
fireEventFire(String)
- Reports a bound event firing to any registered listeners.
-
isEmpty()
- Checks to see if the collection is empty.
-
removeEventFireListener(EventFireListener)
- Removes a EventFireListener from the listener list.
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.
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.
addEventFireListener
public synchronized void addEventFireListener(EventFireListener listener)
- Adds a EventFireListener to the listener list.
- Parameters:
- listener - The listener to add.
removeEventFireListener
public synchronized void removeEventFireListener(EventFireListener listener)
- Removes a EventFireListener from the listener list.
- Parameters:
- listener - The listener to remove.
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.
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.
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