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.
-
MorphViewSupport(Object)
- Constructs a MorphViewSupport instance.
-
MorphViewSupport(Object, Collection)
- Constructs a MorphViewSupport instance using the input Collection.
-
addMorphViewListener(MorphViewListener)
- Adds a MorphViewListener instance to the listener list.
-
elements()
- Gets an enumeration of MorphViewListener instances.
-
fireMorphView(int, String, String[], int)
- Reports a bound method call to any registered listeners.
-
isEmpty()
- Checks to see if the collection of listeners is empty.
-
removeMorphViewListener(MorphViewListener)
- Removes a MorphViewListener instance from the listener list.
MorphViewSupport
public MorphViewSupport(Object source)
- Constructs a MorphViewSupport instance.
- Parameters:
- source - The object given as the source for any event.
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.
addMorphViewListener
public synchronized void addMorphViewListener(MorphViewListener listener)
- Adds a MorphViewListener instance to the listener list.
- Parameters:
- listener - The listener to add.
removeMorphViewListener
public synchronized void removeMorphViewListener(MorphViewListener listener)
- Removes a MorphViewListener instance from the listener list.
- Parameters:
- listener - The listener to remove.
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
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.
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