All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.tools.dip.MorphViewEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.ibm.beans.tools.dip.MorphViewEvent

public class MorphViewEvent
extends EventObject
A MorphViewEvent is fired by an implementation of the MorphView interface to tell the MorphController an action has occurred that must be handled.

See Also:
MorphView, MorphController

Variable Index

 o ADDITIONAL_CLASS_SELECTED
Action ID constant that indicates the view has selected an additional API class.
 o CANCEL
Action ID constant that indicates the view has requested to cancel or close the morphing UI.
 o CLASS_SELECTED
Action ID constant that indicates the view has selected a class.
 o DIP_DESELECTED
Action ID constant that indicates the view has deselected a dip.
 o DIP_SELECTED
Action ID constant that indicates the view has selected a dip.
 o FINAL_METHODS
Action ID constant that indicates the list of final methods needs to be calculated.
 o LOAD_CLASSES_MODEL
Action ID constant that indicates the view has requested data be loaded into the classes model.
 o LOAD_DIPS_MODEL
Action ID constant that indicates the view has requested data be loaded into the dips model.
 o MORPH
Action ID constant that indicates the view has requested the morphing process to begin.

Constructor Index

 o MorphViewEvent(Object, int, String, String[], int)
Constructs a MorphViewEvent instance.

Method Index

 o getActionID()
Gets the action ID constant associated with this event.
 o getClassIndex()
Gets the class index associated with this event.
 o getClassNames()
Gets the array of class names associated with this event.
 o getDirectoryName()
Gets the name of the directory associated with this event.

Variables

 o LOAD_CLASSES_MODEL
 public static final int LOAD_CLASSES_MODEL
Action ID constant that indicates the view has requested data be loaded into the classes model.

 o LOAD_DIPS_MODEL
 public static final int LOAD_DIPS_MODEL
Action ID constant that indicates the view has requested data be loaded into the dips model.

 o CLASS_SELECTED
 public static final int CLASS_SELECTED
Action ID constant that indicates the view has selected a class.

 o FINAL_METHODS
 public static final int FINAL_METHODS
Action ID constant that indicates the list of final methods needs to be calculated.

 o DIP_SELECTED
 public static final int DIP_SELECTED
Action ID constant that indicates the view has selected a dip.

 o DIP_DESELECTED
 public static final int DIP_DESELECTED
Action ID constant that indicates the view has deselected a dip.

 o CANCEL
 public static final int CANCEL
Action ID constant that indicates the view has requested to cancel or close the morphing UI.

 o MORPH
 public static final int MORPH
Action ID constant that indicates the view has requested the morphing process to begin.

 o ADDITIONAL_CLASS_SELECTED
 public static final int ADDITIONAL_CLASS_SELECTED
Action ID constant that indicates the view has selected an additional API class.

Constructors

 o MorphViewEvent
 public MorphViewEvent(Object source,
                       int action,
                       String dir,
                       String clsses[],
                       int index)
Constructs a MorphViewEvent instance. Note that some parameters are required by the MorphController instance, and some parameters can vary depending on the corresponding model used.

Parameters:
source - The source object firing the MorphViewEvent.
action - The Action ID constant.
dir -
The directory name. This parameter is only necessary if a directory name is needed to process the event. This parameter can be null. This parameter can be used by the corresponding MorphModelManipulator.loadModel() method when the action constant is MorphViewEvent.LOAD_CLASSES_MODEL or MorphViewEvent.LOAD_DIPS_MODEL.
clsses -
The array of class names. This parameter is only necessary if a class name is needed to process the event.

Required if the action constant is MorphViewEvent.CLASS_SELECTED, MorphViewEvent.FINAL_METHODS, MorphViewEvent.DIP_SELECTED, MorphViewEvent.DIP_DESELECTED, or MorphViewEvent.ADDITIONAL_CLASS_SELECTED. This parameter can be null.

index -
The index of the class name. This parameter is only necessary if clsses is needed to process the event. This parameter can be 0. This parameter is optional and can be used by the corresponding MorphModelManipulator.getURLName() method when the action constant is MorphViewEvent.MorphView.CLASS_SELECTED.

Methods

 o getDirectoryName
 public String getDirectoryName()
Gets the name of the directory associated with this event.

Returns:
The directory name.
 o getClassNames
 public String[] getClassNames()
Gets the array of class names associated with this event.

Returns:
The array of class names.
 o getActionID
 public int getActionID()
Gets the action ID constant associated with this event.

Returns:
The action ID constant.
 o getClassIndex
 public int getClassIndex()
Gets the class index associated with this event. This index represents the index number for the class name in the view. This index is optionally used as a shortcut to the corresponding object in the model by the MorphModelManipulator implementations.

Returns:
The class index.

All Packages  Class Hierarchy  This Package  Previous  Next  Index