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
-
ADDITIONAL_CLASS_SELECTED
- Action ID constant that indicates the view has
selected an additional API class.
-
CANCEL
- Action ID constant that indicates the view has
requested to cancel or close the morphing UI.
-
CLASS_SELECTED
- Action ID constant that indicates the view has
selected a class.
-
DIP_DESELECTED
- Action ID constant that indicates the view has
deselected a dip.
-
DIP_SELECTED
- Action ID constant that indicates the view has
selected a dip.
-
FINAL_METHODS
- Action ID constant that indicates the list of
final methods needs to be calculated.
-
LOAD_CLASSES_MODEL
- Action ID constant that indicates the view has
requested data be loaded into the classes model.
-
LOAD_DIPS_MODEL
- Action ID constant that indicates the view has
requested data be loaded into the dips model.
-
MORPH
- Action ID constant that indicates the view has
requested the morphing process to begin.
-
MorphViewEvent(Object, int, String, String[], int)
- Constructs a MorphViewEvent instance.
-
getActionID()
- Gets the action ID constant associated with this event.
-
getClassIndex()
- Gets the class index associated with this event.
-
getClassNames()
- Gets the array of class names associated with this event.
-
getDirectoryName()
- Gets the name of the directory associated with this event.
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.
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.
CLASS_SELECTED
public static final int CLASS_SELECTED
- Action ID constant that indicates the view has
selected a class.
FINAL_METHODS
public static final int FINAL_METHODS
- Action ID constant that indicates the list of
final methods needs to be calculated.
DIP_SELECTED
public static final int DIP_SELECTED
- Action ID constant that indicates the view has
selected a dip.
DIP_DESELECTED
public static final int DIP_DESELECTED
- Action ID constant that indicates the view has
deselected a dip.
CANCEL
public static final int CANCEL
- Action ID constant that indicates the view has
requested to cancel or close the morphing UI.
MORPH
public static final int MORPH
- Action ID constant that indicates the view has
requested the morphing process to begin.
ADDITIONAL_CLASS_SELECTED
public static final int ADDITIONAL_CLASS_SELECTED
- Action ID constant that indicates the view has
selected an additional API class.
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.
getDirectoryName
public String getDirectoryName()
- Gets the name of the directory associated with this event.
- Returns:
- The directory name.
getClassNames
public String[] getClassNames()
- Gets the array of class names associated with this event.
- Returns:
- The array of class names.
getActionID
public int getActionID()
- Gets the action ID constant associated with this event.
- Returns:
- The action ID constant.
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