All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.tools.dip.MorphViewSupport

java.lang.Object
   |
   +----com.ibm.beans.tools.dip.MorphViewSupport

public class MorphViewSupport
extends Object
implements Serializable
This utility class can be used by beans that support bound methods. 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 MorphViewSupport(Object)
Constructs a MorphViewSupport instance.
 o MorphViewSupport(Object, Collection)
Constructs a MorphViewSupport instance using the input Collection.

Method Index

 o addMorphViewListener(MorphViewListener)
Adds a MorphViewListener instance to the listener list.
 o elements()
Gets an enumeration of MorphViewListener instances.
 o fireMorphView(int, String, String[], int)
Reports a bound method call to any registered listeners.
 o isEmpty()
Checks to see if the collection of listeners is empty.
 o removeMorphViewListener(MorphViewListener)
Removes a MorphViewListener instance from the listener list.

Constructors

 o MorphViewSupport
 public MorphViewSupport(Object source)
Constructs a MorphViewSupport instance.

Parameters:
source - The object given as the source for any event.
 o MorphViewSupport
 public MorphViewSupport(Object source,
                         Collection collection)
Constructs a MorphViewSupport instance using the input Collection.

Parameters:
source - The object given as the source for any event.
collection - The Collection used to store the listeners.

Methods

 o addMorphViewListener
 public synchronized void addMorphViewListener(MorphViewListener listener)
Adds a MorphViewListener instance to the listener list.

Parameters:
listener - The listener to add.
 o removeMorphViewListener
 public synchronized void removeMorphViewListener(MorphViewListener listener)
Removes a MorphViewListener instance from the listener list.

Parameters:
listener - The listener to remove.
 o fireMorphView
 public void fireMorphView(int actionID,
                           String directoryName,
                           String className[],
                           int index)
Reports a bound method call to any registered listeners.

Parameters:
actionID - The MorphViewEvent action ID.
directoryName - The directory name.
className - The class name.
index - The class index.
See Also:
MorphViewEvent
 o elements
 public final synchronized Enumeration elements()
Gets an enumeration of MorphViewListener instances. 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 fireMorphView() method.
 o isEmpty
 public final boolean isEmpty()
Checks to see if the collection of listeners is empty.

Returns:
true if empty; false otherwise.

All Packages  Class Hierarchy  This Package  Previous  Next  Index