All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.tools.dip.MorphDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----com.ibm.beans.tools.dip.MorphDialog

public class MorphDialog
extends Dialog
implements MorphView, ActionListener, ItemListener
The MorphDialog class displays the Morphing UI. The MorphDialog class is an implementation of the MorphView interface, this means it can be used by the MorphController class as a view to be presented to the user for morphing beans.

See Also:
morph, MorphView, MorphController

Variable Index

 o fAdditionalClasses
The array of additional API class names.
 o fAdditionalDialog
The dialog presented to the user to add or edit an additional API pair.
 o fAdditionalInterfaces
The array of additional API interface names.
 o fAdditionalLabel
The label on the fAdditionalList.
 o fAdditionalList
The list on the advanced customization panel, that shows the additional API pairs.
 o fAdvancedPanel
The advanced customization panel, that fills the third tab.
 o fAggregate
The checkbox to determine if the new morphed class should be implemented using aggregation.
 o fAggregateLabel
The label on the fAggregate checkbox.
 o fAPICount
The array of headers for the number of additional API.
 o fBeanChoice
The choice component where the user picks a class to be used during either aggregation or inheritance.
 o fBeanInfo
The checkbox to determine if a BeanInfo should be created.
 o fCancelButton
The "cancel" button.
 o fCancelButtonStr
The string in the "cancel" button.
 o fDipList
The list where the user picks the pre-Dips to be applied to the new morphed class.
 o fDipMsg
The string put into the fDipList, indicating there are no dips available.
 o fDipsSpecifyOverrides
The checkbox to determine if the dips specify what methods are overridden.
 o fExtend
The checkbox to determine if the new morphed class should implement DippableExtended.
 o fFileDialogDirectory
The string containing the directory name of a jar being loaded.
 o fFinal
The checkbox to determine if the new morphed class should be a final class.
 o fFinalLabel
The label on the fFinal checkbox.
 o fFinalList
The list of method names to be considered as final methods.
 o fFinalStr
The string put into the fFinalList, indicating there are no methods in the list.
 o fHelpButton
The "help" button.
 o fHelpButtonStr
The string in the "help" button.
 o fHelpText
The TextArea component used to display the help.
 o fInherit
The checkbox to determine if the new morphed class should be implemented using inheritance.
 o fInheritLabel
The string in the fInherit checkbox.
 o fInterfaceChoice
The choice component where the user picks an interface to be used during aggregation.
 o fInterfaceLabel
The label on the fInterfaceChoice.
 o fInterfaceStr
The string put into the fInterfaceChoice, indicating there are no interfaces in the list.
 o fLoadBeanJarStr
The string in the "load bean jar" button.
 o fLoadDipJarStr
The string in the "load dip jar" button.
 o fLocPanel
The panel indicating where the new morphed class should be stored.
 o fMainPanel
The main panel, that fills the first tab.
 o fMF
The MessageFormatter for a MorphDialog.
 o fMorphButton
The "morph" button.
 o fMorphButtonStr
The string in the "morph" button.
 o fMorphViewSupport
The MorphViewSupport that manages the MorphViewEvent logic.
 o fMyParent
The parent frame of this dialog.
 o fNbrOfAPIs
The number of additional APIs.
 o fNewNameText
The field where the user enters a new name for the new morphed class.
 o fOptionsPanel
The general customization panel, that fills the second tab.
 o fOverrideParent
The checkbox to determine if all the methods in the parent class should be overridden.
 o fSelectBeanPanel
The panel indicating what class to morph.
 o fTabs
The tabs that contains the three main panels.
 o fTargetPanel
The panel indicating where to put the morphed class.
 o fUseInherit
A flag to indicate if inheritance is to be used in creating the morphed class.
 o fWD
The WaitDialog that tells the user what is happening.

Constructor Index

 o MorphDialog(Frame, boolean)
Constructs an initially invisible MorphDialog instance.

Method Index

 o actionPerformed(ActionEvent)
Manages action events on the MorphDialog.
 o addMorphViewListener(MorphViewListener)
Adds a MorphViewListener to the listener list.
 o addToListOfAdditionalInterfaces(String)
Adds an interface name to the list of interfaces to be considered as part of an additional API.
 o addToListOfClasses(String)
Adds a class name to the list of classes to be considered for morphing.
 o addToListOfDips(String)
Adds the class name of a dip to the list of dips to be considered for morphing.
 o addToListOfFinalMethodNames(String)
Adds a method name to the list of methods to be considered as final methods.
 o addToListOfInterfaces(String)
Adds an interface name to the list of interfaces to be considered for morphing.
 o cleanup()
Performs any cleanup needed so the MorphDialog can terminate.
 o constrain(Container, Component, int, int, int, int, int, int, double, double, int, int, int, int)
Positions the component in the container.
 o constructAWTDialog()
Constructs the AWT elements in a MorphDialog.
 o createWaitDialog()
Creates a dialog with a message in it.
 o destroyWaitDialog()
Destroys the dialog which was telling the user what was happening.
 o displayDipCustomizer(Customizer)
Displays a dip customizer so that any customization needed by a pre-dip is included in the new dippable bean.
 o displayHelp()
Displays help for the user.
 o doLayout()
Prompts the layout manager to lay out this component.
 o finalize()
Disposes of system resources and performs other cleanup before garbage collection.
 o fireMorphView(int, String, String[], int)
Reports a morph view change to the registered listeners.
 o getAdditionalClasses()
Gets the array of additional API class names to be added to the dippable class.
 o getAdditionalClassItem(int)
Gets the string at the specified index in the list of additional API class names.
 o getAdditionalDialog()
Gets the dialog that allows the user to edit an additional API pair.
 o getAdditionalInterfaceItem(int)
Gets the string at the specified index in the list of additional API interface names.
 o getAdditionalInterfaces()
Gets the array of additional API interface names to be added to the dippable class.
 o getAdvancedPanel()
Gets the advanced customization panel.
 o getButtonsPanel()
Gets the main buttons panel.
 o getClassItem(int)
Gets the string at the specified index in the list of classes to be considered for morphing.
 o getClassItemCount()
Determines the number of class names in the list of classes to be considered for morphing.
 o getClassName()
Gets the name of the class to be used in the morphing process.
 o getDips()
Gets the list of dips to be applied to the dippable class.
 o getDoBeanInfo()
Determines whether the new dippable class should have a corresponding BeanInfo.
 o getDoDipsSpecifyOverrides()
Determines whether the pre-dips specify which methods the dippable bean should override.
 o getDoDisplay()
Determines whether the MorphDialog instance is visible.
 o getDoExtended()
Determines whether the new dippable class should implement com.ibm.beans.dip.DippableExtended.
 o getDoFinal()
Determines whether the new dippable class will be a final class.
 o getDoHideOriginal()
Determines whether the original bean should be marked as a "Java-Bean" in the manifest of the repository that contains the new dippable class.
 o getDoInheritance()
Determines whether the new dippable class should be created using inheritance or aggregation.
 o getDoOverrideParentMethods()
Determines which methods the dippable bean should override.
 o getEnabledAdvancedPanel()
Determines whether the advanced customization panel is enabled.
 o getEnabledGeneralPanel()
Determines whether the general customization panel is enabled.
 o getEnabledMainPanel()
Determines whether the main panel is enabled.
 o getEnabledSelectBeanPanel()
Determines whether the select bean panel is enabled.
 o getEnabledTargetPanel()
Determines whether the target panel is enabled.
 o getFinalMethodNames()
Gets the list of method names in the new dippable class that should be final methods.
 o getFrame()
Gets the frame this dialog is connected to.
 o getGeneralPanel()
Gets the general customizations panel.
 o getHelpText(int)
Determines the help text for the specified tab number.
 o getInterfaceName()
Gets the name of the interface to be used in the morphing process.
 o getMainPanel()
Gets the main options panel.
 o getNewClassName()
Determines the new name of the dippable bean.
 o getSaveToLocation()
Determines the location where the new dippable class will be saved.
 o getSaveToState()
Determines the location state indicating where the new dippable class will be saved.
 o getSelectBeanPanel()
Gets the select beans panel.
 o getTargetPanel()
Gets the target panel.
 o itemStateChanged(ItemEvent)
Manages item events on the MorphDialog.
 o removeAllElementsFromListOfAdditionalInterfaces()
Removes all the interface name(s) from the list of additional interfaces.
 o removeAllElementsFromListOfFinalMethodNames()
Removes all the method name(s) from the list of method names to be considered as final methods.
 o removeAllElementsFromListOfInterfaces()
Removes all the interface name(s) from the list of interfaces to be considered for morphing.
 o removeFromListOfClasses(String)
Removes a class name from the list of classes to be considered for morphing.
 o removeFromListOfDips(String)
Removes a class name from the list of dips to be considered for morphing.
 o removeMorphViewListener(MorphViewListener)
Removes a MorphViewListener from the listener list.
 o selectClass(String)
Select a class name from the list of classes to be considered for morphing.
 o selectDip(String)
Selects a class name from the list of dips to be considered for morphing.
 o selectFinalMethodName(String)
Select a method name from the list of method names to be considered as final methods.
 o setAdditionalAPI(int, String, String)
Sets the class name and interface name for one of the additional APIs.
 o setAdditionalAPISection(Panel)
Sets the section of the advanced customization panel that determines if additional APIs should be added to the new dippable class.
 o setAdditionalDialog(MorphAdditionalAPIDialog)
Sets the dialog that allows the user to edit an additional API pair.
 o setBeanInfoSection(Panel)
Sets the section of the general customization panel that asks if the new dippable class should have a BeanInfo.
 o setDipsSpecifyOverrideSection(Panel)
Sets the section of the advanced customization panel that asks if the dips should specify what methods are overridden.
 o setDoBeanInfo(boolean)
Specifies whether a BeanInfo should be generated.
 o setDoDipsSpecifyOverrides(boolean)
Specifies whether the pre-dips determine which methods the dippable bean should override.
 o setDoDisplay(boolean)
Shows or hides the MorphDialog instance.
 o setDoExtended(boolean)
Specifies the implementation interface for the new dippable class.
 o setDoFinal(boolean)
Specifies whether the new dippable class will be a final class.
 o setDoHideOriginal(boolean)
Specifies whether the original bean should be marked as a "Java-Bean" in the manifest of the repository that contains the new dippable class.
 o setDoInheritance(boolean)
Specifies the implementation approach to the new dippable class.
 o setDoOverrideParentMethods(boolean)
Specifies which methods the dippable bean should override.
 o setEnabledAdvancedPanel(boolean)
Enables or disables the advanced customization panel, depending on the value of the parameter b.
 o setEnabledComponents(Container, boolean)
Enables or disables all the Components in a Container.
 o setEnabledGeneralPanel(boolean)
Enables or disables the general customization panel, depending on the value of the parameter b.
 o setEnabledMainPanel(boolean)
Enables or disables the main panel, depending on the value of the parameter b.
 o setEnabledSelectBeanPanel(boolean)
Enables or disables the select bean panel, depending on the value of the parameter b.
 o setEnabledTargetPanel(boolean)
Enables or disables the target panel, depending on the value of the parameter b.
 o setErrorMessage(String)
Displays an error message.
 o setExtendedSection(Panel)
Sets the section of the general customization panel that asks if the new dippable class should implement the DippableExtended interface.
 o setFinalSection(Panel)
Sets the section of the advanced customization panel that asks if the new dippable class should be a final class.
 o setHelpText(int)
Sets the help text for the specified tab number.
 o setNewClassName(String)
Sets the new name of the dippable bean.
 o setNewNameSection(Panel)
Sets the section of the general customization panel that asks if the user wants to specify the new name of the new dippable class.
 o setOverrideParentSection(Panel)
Sets the section of the advanced customization panel that asks if all methods should be overridden, or just the parents methods.
 o setPreDipSection(Panel)
Sets the section of the general customization panel that asks if pre-Dips should be applied to the new dippable class while morphing.
 o setSaveToLocation(int, String)
Specifies where the dippable class will be saved.
 o setStatusMessage(String)
Displays a status, or informational, message.

Variables

 o fAPICount
 protected String fAPICount[]
The array of headers for the number of additional API. Adding to this list increases the number of additional API in the code.

 o fNbrOfAPIs
 protected int fNbrOfAPIs
The number of additional APIs. This number is set by fAPICount.length.

 o fWD
 protected WaitDialog fWD
The WaitDialog that tells the user what is happening.

 o fMorphViewSupport
 protected MorphViewSupport fMorphViewSupport
The MorphViewSupport that manages the MorphViewEvent logic.

 o fTabs
 protected Tabs fTabs
The tabs that contains the three main panels.

 o fMainPanel
 protected Panel fMainPanel
The main panel, that fills the first tab.

 o fSelectBeanPanel
 protected Panel fSelectBeanPanel
The panel indicating what class to morph. This is the top part of the main panel.

 o fTargetPanel
 protected Panel fTargetPanel
The panel indicating where to put the morphed class. This is the bottom part of the main panel.

 o fOptionsPanel
 protected Panel fOptionsPanel
The general customization panel, that fills the second tab.

 o fAdvancedPanel
 protected Panel fAdvancedPanel
The advanced customization panel, that fills the third tab.

 o fDipMsg
 protected String fDipMsg
The string put into the fDipList, indicating there are no dips available.

 o fDipList
 protected List fDipList
The list where the user picks the pre-Dips to be applied to the new morphed class.

 o fBeanChoice
 protected Choice fBeanChoice
The choice component where the user picks a class to be used during either aggregation or inheritance.

 o fInterfaceChoice
 protected Choice fInterfaceChoice
The choice component where the user picks an interface to be used during aggregation.

 o fInterfaceLabel
 protected Label fInterfaceLabel
The label on the fInterfaceChoice.

 o fInterfaceStr
 protected String fInterfaceStr
The string put into the fInterfaceChoice, indicating there are no interfaces in the list.

 o fNewNameText
 protected TextField fNewNameText
The field where the user enters a new name for the new morphed class.

 o fLocPanel
 protected LocationPanel fLocPanel
The panel indicating where the new morphed class should be stored. This is the bottom part of the main panel.

 o fMyParent
 protected Frame fMyParent
The parent frame of this dialog.

 o fInherit
 protected Checkbox fInherit
The checkbox to determine if the new morphed class should be implemented using inheritance.

 o fInheritLabel
 protected String fInheritLabel
The string in the fInherit checkbox.

 o fMorphButtonStr
 protected String fMorphButtonStr
The string in the "morph" button.

 o fMorphButton
 protected Button fMorphButton
The "morph" button.

 o fCancelButtonStr
 protected String fCancelButtonStr
The string in the "cancel" button.

 o fCancelButton
 protected Button fCancelButton
The "cancel" button.

 o fHelpButtonStr
 protected String fHelpButtonStr
The string in the "help" button.

 o fHelpButton
 protected Button fHelpButton
The "help" button.

 o fHelpText
 protected TextArea fHelpText
The TextArea component used to display the help.

 o fLoadBeanJarStr
 protected String fLoadBeanJarStr
The string in the "load bean jar" button.

 o fLoadDipJarStr
 protected String fLoadDipJarStr
The string in the "load dip jar" button.

 o fFileDialogDirectory
 protected String fFileDialogDirectory
The string containing the directory name of a jar being loaded.

 o fAggregate
 protected Checkbox fAggregate
The checkbox to determine if the new morphed class should be implemented using aggregation.

 o fAggregateLabel
 protected String fAggregateLabel
The label on the fAggregate checkbox.

 o fExtend
 protected Checkbox fExtend
The checkbox to determine if the new morphed class should implement DippableExtended.

 o fBeanInfo
 protected Checkbox fBeanInfo
The checkbox to determine if a BeanInfo should be created.

 o fOverrideParent
 protected Checkbox fOverrideParent
The checkbox to determine if all the methods in the parent class should be overridden.

 o fDipsSpecifyOverrides
 protected Checkbox fDipsSpecifyOverrides
The checkbox to determine if the dips specify what methods are overridden.

 o fFinal
 protected Checkbox fFinal
The checkbox to determine if the new morphed class should be a final class.

 o fFinalLabel
 protected Label fFinalLabel
The label on the fFinal checkbox.

 o fFinalList
 protected List fFinalList
The list of method names to be considered as final methods.

 o fFinalStr
 protected String fFinalStr
The string put into the fFinalList, indicating there are no methods in the list.

 o fAdditionalList
 protected List fAdditionalList
The list on the advanced customization panel, that shows the additional API pairs.

 o fAdditionalLabel
 protected Label fAdditionalLabel
The label on the fAdditionalList.

 o fAdditionalClasses
 protected String fAdditionalClasses[]
The array of additional API class names.

 o fAdditionalInterfaces
 protected String fAdditionalInterfaces[]
The array of additional API interface names.

 o fUseInherit
 protected boolean fUseInherit
A flag to indicate if inheritance is to be used in creating the morphed class.

 o fAdditionalDialog
 protected MorphAdditionalAPIDialog fAdditionalDialog
The dialog presented to the user to add or edit an additional API pair.

 o fMF
 protected MessageFormatter fMF
The MessageFormatter for a MorphDialog.

Constructors

 o MorphDialog
 public MorphDialog(Frame parent,
                    boolean modal)
Constructs an initially invisible MorphDialog instance. A modal MorphDialog gets all the input from the user.

Parameters:
parent - The owner of the dialog.
modal - If true, the dialog prevents any input to other windows until the dialog is completed.

Methods

 o constructAWTDialog
 protected void constructAWTDialog()
Constructs the AWT elements in a MorphDialog.

 o doLayout
 public void doLayout()
Prompts the layout manager to lay out this component.

Overrides:
doLayout in class Container
 o constrain
 protected void constrain(Container container,
                          Component component,
                          int grid_x,
                          int grid_y,
                          int grid_width,
                          int grid_height,
                          int fill,
                          int anchor,
                          double weight_x,
                          double weight_y,
                          int top,
                          int left,
                          int bottom,
                          int right)
Positions the component in the container. Most of the panels in the MorphDialog use java.awt.GridBagLayout, a powerful but complecated tool. This method provides the calls to position the component using the GridBagLayout.

Parameters:
container - The AWT Container recieving the component.
component - The AWT Component going into the container.
grid_x - The row in the grid to get the component.
grid_y - The column in the grid to get the component.
grid_width - The number of cells in a row the component needs.
grid_height - The number of cells in a column the component needs.
fill - Used to resize the component to the display area.
anchor - Used to position the component in the display area.
weight_x - Internal padding for the width.
weight_y - Internal padding for the height.
top - Inset space from the top of the display area.
left - Inset space from the left of the display area.
bottom - Inset space from the bottom of the display area.
right - Inset space from the right of the display area.
See Also:
GridBagLayout
 o setEnabledComponents
 protected void setEnabledComponents(Container container,
                                     boolean b)
Enables or disables all the Components in a Container.

Parameters:
container - The container containing the components.
b - true enables the components; false disables them.
 o getMainPanel
 protected Panel getMainPanel()
Gets the main options panel. This panel is used as the first tab in the MorphDialog.

Returns:
A panel with the main morphing options.
 o setEnabledMainPanel
 public void setEnabledMainPanel(boolean b)
Enables or disables the main panel, depending on the value of the parameter b. An enabled component can respond to user input and generate events. The main panel is enabled initially by default.

Parameters:
b - true enables the main panel; false disables it.
See Also:
getEnabledMainPanel
 o getEnabledMainPanel
 public boolean getEnabledMainPanel()
Determines whether the main panel is enabled. An enabled component can respond to user input and generate events.

Returns:
true if the main panel is enabled; false otherwise.
See Also:
getEnabledMainPanel
 o getSelectBeanPanel
 protected Panel getSelectBeanPanel()
Gets the select beans panel. This panel is used for the user to select which bean to morph. This panel is the top of the main options panel.

Returns:
A panel to select which class to morph.
 o setEnabledSelectBeanPanel
 public void setEnabledSelectBeanPanel(boolean b)
Enables or disables the select bean panel, depending on the value of the parameter b. An enabled component can respond to user input and generate events. The select bean panel is enabled initially by default.

Parameters:
b - true enables the select bean panel; false disables it.
See Also:
getEnabledSelectBeanPanel
 o getEnabledSelectBeanPanel
 public boolean getEnabledSelectBeanPanel()
Determines whether the select bean panel is enabled. An enabled component can respond to user input and generate events.

Returns:
true if the select bean panel is enabled; false otherwise.
See Also:
setEnabledSelectBeanPanel
 o getTargetPanel
 protected Panel getTargetPanel()
Gets the target panel. This panel is used for the user to decide where to put the dippable class once it is created.

Returns:
A panel to select where to put the dippable class.
 o setEnabledTargetPanel
 public void setEnabledTargetPanel(boolean b)
Enables or disables the target panel, depending on the value of the parameter b. An enabled component can respond to user input and generate events. The target panel is enabled initially by default.

Parameters:
b - true enables the target panel; false disables it.
See Also:
getEnabledTargetPanel
 o getEnabledTargetPanel
 public boolean getEnabledTargetPanel()
Determines whether the target panel is enabled. An enabled component can respond to user input and generate events.

Returns:
true if the target panel is enabled; false otherwise.
See Also:
setEnabledTargetPanel
 o getGeneralPanel
 protected Panel getGeneralPanel()
Gets the general customizations panel. This panel is used as the second tab in the MorphDialog.

Returns:
A panel with the general customization options.
 o setExtendedSection
 protected void setExtendedSection(Panel generalPanel)
Sets the section of the general customization panel that asks if the new dippable class should implement the DippableExtended interface.

Parameters:
generalPanel - The general customization panel.
 o setBeanInfoSection
 protected void setBeanInfoSection(Panel generalPanel)
Sets the section of the general customization panel that asks if the new dippable class should have a BeanInfo.

Parameters:
generalPanel - The general customization panel.
 o setNewNameSection
 protected void setNewNameSection(Panel generalPanel)
Sets the section of the general customization panel that asks if the user wants to specify the new name of the new dippable class.

Parameters:
generalPanel - The general customization panel.
 o setPreDipSection
 protected void setPreDipSection(Panel generalPanel)
Sets the section of the general customization panel that asks if pre-Dips should be applied to the new dippable class while morphing.

Parameters:
generalPanel - The general customization panel.
 o setEnabledGeneralPanel
 public void setEnabledGeneralPanel(boolean b)
Enables or disables the general customization panel, depending on the value of the parameter b. An enabled component can respond to user input and generate events. The general customization panel is enabled initially by default.

Parameters:
b - true enables the general customization panel; false disables it.
See Also:
getEnabledGeneralPanel
 o getEnabledGeneralPanel
 public boolean getEnabledGeneralPanel()
Determines whether the general customization panel is enabled. An enabled component can respond to user input and generate events.

Returns:
true if the general customization panel is enabled; false otherwise.
See Also:
setEnabledGeneralPanel
 o getAdvancedPanel
 protected Panel getAdvancedPanel()
Gets the advanced customization panel. This panel is used as the third tab in the MorphDialog.

Returns:
A panel with the advanced customization options.
 o setOverrideParentSection
 protected void setOverrideParentSection(Panel p)
Sets the section of the advanced customization panel that asks if all methods should be overridden, or just the parents methods.

Parameters:
p - The advanced customization panel.
 o setDipsSpecifyOverrideSection
 protected void setDipsSpecifyOverrideSection(Panel p)
Sets the section of the advanced customization panel that asks if the dips should specify what methods are overridden.

Parameters:
p - The advanced customization panel.
 o setFinalSection
 protected void setFinalSection(Panel p)
Sets the section of the advanced customization panel that asks if the new dippable class should be a final class.

Parameters:
p - The advanced customization panel.
 o setAdditionalAPISection
 protected void setAdditionalAPISection(Panel p)
Sets the section of the advanced customization panel that determines if additional APIs should be added to the new dippable class.

Parameters:
p - The advanced customization panel.
 o setEnabledAdvancedPanel
 public void setEnabledAdvancedPanel(boolean b)
Enables or disables the advanced customization panel, depending on the value of the parameter b. An enabled component can respond to user input and generate events. The advanced customization panel is enabled initially by default.

Parameters:
b - true enables the advanced customization panel; false disables it.
See Also:
getEnabledAdvancedPanel
 o getEnabledAdvancedPanel
 public boolean getEnabledAdvancedPanel()
Determines whether the advanced customization panel is enabled. An enabled component can respond to user input and generate events.

Returns:
true if the advanced customization panel is enabled; false otherwise.
See Also:
setEnabledAdvancedPanel
 o getButtonsPanel
 protected Panel getButtonsPanel()
Gets the main buttons panel. This panel contains the "Morph Class", "Close", and "Help" buttons.

Returns:
a panel with buttons.
 o getDoDisplay
 public boolean getDoDisplay()
Determines whether the MorphDialog instance is visible.

Returns:
true if the MorphDialog instance is displayed to the user; false otherwise.
 o cleanup
 public synchronized void cleanup()
Performs any cleanup needed so the MorphDialog can terminate.

 o setDoDisplay
 public void setDoDisplay(boolean flag)
Shows or hides the MorphDialog instance.

Parameters:
flag - true if the MorphDialog instance is displayed to the user; false otherwise.
 o addMorphViewListener
 public void addMorphViewListener(MorphViewListener listener)
Adds a MorphViewListener to the listener list.

Parameters:
listener - The MorphViewListener to be added.
 o removeMorphViewListener
 public void removeMorphViewListener(MorphViewListener listener)
Removes a MorphViewListener from the listener list.

Parameters:
listener - The MorphViewListener to be removed
 o fireMorphView
 public void fireMorphView(int actionID,
                           String directoryName,
                           String className[],
                           int index)
Reports a morph view change to the registered listeners.

Parameters:
actionID -
One of the MorphViewEvent action constants indicating what action needs to be taken.
directoryName -
The name of the directory associated with the event.
className -
An array of class names associated with the event.
index -
The optional index associated with className.
See Also:
fireMorphView
 o setErrorMessage
 public void setErrorMessage(String msg)
Displays an error message.

Parameters:
msg - The error message to be displayed to the user.
 o setStatusMessage
 public void setStatusMessage(String msg)
Displays a status, or informational, message.

Parameters:
msg - The status message to be displayed to the user.
 o getClassName
 public String getClassName()
Gets the name of the class to be used in the morphing process. If inheritance was chosen, this class will be the parent of the new dippable class. If aggregation was chosen, this class will provide the implementation for the new dippable class.

Returns:
The package qualified class name to be used in the morphing process.
 o addToListOfClasses
 public void addToListOfClasses(String className)
Adds a class name to the list of classes to be considered for morphing. The user selects a class name from this list.

Parameters:
className - A package qualified class name that is a candidate for morphing.
 o removeFromListOfClasses
 public void removeFromListOfClasses(String className)
Removes a class name from the list of classes to be considered for morphing. The user selects a class name from this list.

Parameters:
className - A package qualified class name to be removed as a candidate for morphing.
 o selectClass
 public void selectClass(String className)
Select a class name from the list of classes to be considered for morphing. This method pre-selects a class name for the user. The user has the option of changing this selection before initiating morphing.

Parameters:
className - A package qualified class name.
 o getInterfaceName
 public String getInterfaceName()
Gets the name of the interface to be used in the morphing process. If inheritance was chosen, this interface will not be used. If aggregation was chosen, this interface will be implemented by the new dippable class.

Returns:
The package qualified interface name to be used in the morphing process.
 o addToListOfInterfaces
 public void addToListOfInterfaces(String interfaceName)
Adds an interface name to the list of interfaces to be considered for morphing. The user selects an interface name from this list.

Parameters:
interfaceName - A package qualified interface name.
 o removeAllElementsFromListOfInterfaces
 public void removeAllElementsFromListOfInterfaces()
Removes all the interface name(s) from the list of interfaces to be considered for morphing. After this method is called the list of interface names is empty.

 o getDoInheritance
 public boolean getDoInheritance()
Determines whether the new dippable class should be created using inheritance or aggregation.

Returns:
true if the dippable class should use inheritance;
false if the dippable class should use aggregation.
 o setDoInheritance
 public void setDoInheritance(boolean flag)
Specifies the implementation approach to the new dippable class.

Parameters:
flag -
true if the dippable class should use inheritance;
false if the dippable class should use aggregation.
 o getDoExtended
 public boolean getDoExtended()
Determines whether the new dippable class should implement com.ibm.beans.dip.DippableExtended.

Returns:
true if the dippable class should implement com.ibm.beans.dip.DippableExtended;
false if the dippable class should just implement com.ibm.beans.dip.Dippable.
 o setDoExtended
 public void setDoExtended(boolean flag)
Specifies the implementation interface for the new dippable class.

Parameters:
flag -
true if the dippable class should implement com.ibm.beans.dip.DippableExtended;
false if the dippable class should just implement com.ibm.beans.dip.Dippable.
 o getDoBeanInfo
 public boolean getDoBeanInfo()
Determines whether the new dippable class should have a corresponding BeanInfo.

Returns:
true if the dippable class should have a corresponding BeanInfo; false otherwise.
 o setDoBeanInfo
 public void setDoBeanInfo(boolean flag)
Specifies whether a BeanInfo should be generated.

Parameters:
flag - true if the dippable class should have a corresponding BeanInfo; false otherwise.
 o getNewClassName
 public String getNewClassName()
Determines the new name of the dippable bean.

Returns:
null if no unique class name was provided by the user and the default name should be used; otherwise this method returns the new package qualified class name of the dippable class to be created.
 o setNewClassName
 public void setNewClassName(String name)
Sets the new name of the dippable bean.

Parameters:
name - The new package qualified class name of the dippable class to be created.
 o getDips
 public String[] getDips()
Gets the list of dips to be applied to the dippable class. These dips will be applied to the dippable class in it's constructor. These dips are sometimes referred to as pre-dips.

Returns:
null if no dips are to be applied to the new dippable class; otherwise an array of dip names.
 o addToListOfDips
 public void addToListOfDips(String dipName)
Adds the class name of a dip to the list of dips to be considered for morphing. The user selects one or more dip names from this list to be pre-dips.

Parameters:
dipName - A package qualified class name of a dip.
 o removeFromListOfDips
 public void removeFromListOfDips(String dipName)
Removes a class name from the list of dips to be considered for morphing. The user selects one or more dip names from this list to be pre-dips.

Parameters:
dipName - A package qualified class name of a dip.
 o selectDip
 public void selectDip(String dipName)
Selects a class name from the list of dips to be considered for morphing. This method pre-selects a dip name for the user. The user has the option of changing this selection before initiating morphing.

Parameters:
dipName - A package qualified class name of a dip.
 o displayDipCustomizer
 public void displayDipCustomizer(Customizer dipCustomizer)
Displays a dip customizer so that any customization needed by a pre-dip is included in the new dippable bean.

Parameters:
dipCustomizer - The customizer for a dip
 o getDoOverrideParentMethods
 public boolean getDoOverrideParentMethods()
Determines which methods the dippable bean should override.

Returns:
true means override all general methods from all parent classes;
false means override only the general methods in the original bean.
 o setDoOverrideParentMethods
 public void setDoOverrideParentMethods(boolean flag)
Specifies which methods the dippable bean should override.

Parameters:
flag -
true means override all general methods from all parent classes;
false means override only the general methods in the original bean.
 o getDoDipsSpecifyOverrides
 public boolean getDoDipsSpecifyOverrides()
Determines whether the pre-dips specify which methods the dippable bean should override. The pre-dips are the dips applied in the dippable class's constructor(s).

Returns:
true if the predips specify what methods will be overridden in the dippable bean; false otherwise.
 o setDoDipsSpecifyOverrides
 public void setDoDipsSpecifyOverrides(boolean flag)
Specifies whether the pre-dips determine which methods the dippable bean should override. The pre-dips are the dips applied in the dippable class's constructor(s).

Parameters:
flag - true if the predips specify which methods will be overridden in the dippable bean; false otherwise.
 o getDoFinal
 public boolean getDoFinal()
Determines whether the new dippable class will be a final class.

Returns:
true if the new dippable class will be a final class; false otherwise.
 o setDoFinal
 public void setDoFinal(boolean flag)
Specifies whether the new dippable class will be a final class.

Parameters:
flag - true if the new dippable class will be a final class; false otherwise.
 o getFinalMethodNames
 public String[] getFinalMethodNames()
Gets the list of method names in the new dippable class that should be final methods.

Returns:
null if no methods are to be final methods; otherwise an array of method names.
 o addToListOfFinalMethodNames
 public void addToListOfFinalMethodNames(String methodName)
Adds a method name to the list of methods to be considered as final methods. The user selects a class name from this list.

Parameters:
methodName - A method name that is a candidate to be a final method.
 o removeAllElementsFromListOfFinalMethodNames
 public void removeAllElementsFromListOfFinalMethodNames()
Removes all the method name(s) from the list of method names to be considered as final methods. After this method is called the list of method names is empty.

 o selectFinalMethodName
 public void selectFinalMethodName(String methodName)
Select a method name from the list of method names to be considered as final methods. This method pre-selects a method name for the user. The user has the option of changing this selection before initiating morphing.

Parameters:
methodName - A method name.
 o getAdditionalClasses
 public String[] getAdditionalClasses()
Gets the array of additional API class names to be added to the dippable class.

Returns:
null if no additional APIs are to be added to the new dippable class; otherwise a string with the list of additional APIs class names.
 o getAdditionalInterfaces
 public String[] getAdditionalInterfaces()
Gets the array of additional API interface names to be added to the dippable class.

Returns:
null if no additional APIs are to be added to the new dippable class; otherwise a string with the list of additional APIs interface names.
 o addToListOfAdditionalInterfaces
 public void addToListOfAdditionalInterfaces(String interfaceName)
Adds an interface name to the list of interfaces to be considered as part of an additional API.

Parameters:
interfaceName - A package qualified interface name.
 o removeAllElementsFromListOfAdditionalInterfaces
 public void removeAllElementsFromListOfAdditionalInterfaces()
Removes all the interface name(s) from the list of additional interfaces. After this method is called the list of additional interface names is empty.

 o setSaveToLocation
 public void setSaveToLocation(int state,
                               String location)
Specifies where the dippable class will be saved.

Parameters:
state - One of the location constants defined in the MorphView class.
location - The full path name of the location where the dippable class will be saved.
 o getSaveToState
 public int getSaveToState()
Determines the location state indicating where the new dippable class will be saved.

Returns:
One of the location constants defined in the MorphView class.
 o getSaveToLocation
 public String getSaveToLocation()
Determines the location where the new dippable class will be saved.

Returns:
The full path name of the location where the dippable class will be saved.
 o setDoHideOriginal
 public void setDoHideOriginal(boolean state)
Specifies whether the original bean should be marked as a "Java-Bean" in the manifest of the repository that contains the new dippable class.

Parameters:
state - true if the original bean should not be marked as a "Java-Bean"; false otherwise.
 o getDoHideOriginal
 public boolean getDoHideOriginal()
Determines whether the original bean should be marked as a "Java-Bean" in the manifest of the repository that contains the new dippable class.

Returns:
true if the original bean should not be marked as a "Java-Bean"; false otherwise.
 o actionPerformed
 public void actionPerformed(ActionEvent e)
Manages action events on the MorphDialog.

Parameters:
e - The action event performed.
 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
Manages item events on the MorphDialog.

Parameters:
e - The item event performed.
 o displayHelp
 protected void displayHelp()
Displays help for the user.

 o setHelpText
 protected void setHelpText(int tab)
Sets the help text for the specified tab number.

Parameters:
tab - The number of the tab
 o getHelpText
 protected String getHelpText(int tab)
Determines the help text for the specified tab number.

Parameters:
tab - The number of the tab
Returns:
The help text for specified tab.
 o getClassItemCount
 protected int getClassItemCount()
Determines the number of class names in the list of classes to be considered for morphing.

Returns:
The number of items in the list of class names.
 o getClassItem
 protected String getClassItem(int index)
Gets the string at the specified index in the list of classes to be considered for morphing.

Parameters:
index - The index of the string in the list.
Returns:
The string at the position indicated by the index.
 o createWaitDialog
 protected void createWaitDialog()
Creates a dialog with a message in it. This dialog is used to tell the user what is going on.

 o destroyWaitDialog
 protected void destroyWaitDialog()
Destroys the dialog which was telling the user what was happening.

 o getAdditionalClassItem
 protected String getAdditionalClassItem(int index)
Gets the string at the specified index in the list of additional API class names.

Parameters:
index - The index of the string in the list.
Returns:
The string at the position indicated by the index.
 o getAdditionalInterfaceItem
 protected String getAdditionalInterfaceItem(int index)
Gets the string at the specified index in the list of additional API interface names.

Parameters:
index - The index of the string in the list.
Returns:
The string at the position indicated by the index.
 o setAdditionalAPI
 protected void setAdditionalAPI(int index,
                                 String className,
                                 String interfaceName)
Sets the class name and interface name for one of the additional APIs.

Parameters:
index - The index of the additional API pair.
className - The class name of the additional API pair.
interfaceName - The interface name of the additional API pair.
 o getAdditionalDialog
 protected MorphAdditionalAPIDialog getAdditionalDialog()
Gets the dialog that allows the user to edit an additional API pair.

Returns:
The dialog presented to the user for editing an additional API pair.
 o setAdditionalDialog
 protected void setAdditionalDialog(MorphAdditionalAPIDialog dialog)
Sets the dialog that allows the user to edit an additional API pair.

Parameters:
dialog - The dialog presented to the user for editing an additional API pair.
 o getFrame
 protected Frame getFrame()
Gets the frame this dialog is connected to.

Returns:
The frame this dialog is connected to.
 o finalize
 protected void finalize() throws Throwable
Disposes of system resources and performs other cleanup before garbage collection.

Throws: Throwable
Not thrown directly by this logic.
Overrides:
finalize in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index