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
-
fAdditionalClasses
- The array of additional API class names.
-
fAdditionalDialog
- The dialog presented to the user to add
or edit an additional API pair.
-
fAdditionalInterfaces
- The array of additional API interface names.
-
fAdditionalLabel
- The label on the
fAdditionalList
.
-
fAdditionalList
- The list on the advanced customization panel,
that shows the additional API pairs.
-
fAdvancedPanel
- The advanced customization panel, that fills
the third tab.
-
fAggregate
- The checkbox to determine if the new morphed class
should be implemented using aggregation.
-
fAggregateLabel
- The label on the
fAggregate
checkbox.
-
fAPICount
- The array of headers for the number of additional
API.
-
fBeanChoice
- The choice component where the user picks a
class to be used during either aggregation or
inheritance.
-
fBeanInfo
- The checkbox to determine if a BeanInfo should
be created.
-
fCancelButton
- The "cancel" button.
-
fCancelButtonStr
- The string in the "cancel" button.
-
fDipList
- The list where the user picks the pre-Dips to be
applied to the new morphed class.
-
fDipMsg
- The string put into the
fDipList
,
indicating there are no dips available.
-
fDipsSpecifyOverrides
- The checkbox to determine if the dips specify
what methods are overridden.
-
fExtend
- The checkbox to determine if the new morphed class
should implement DippableExtended.
-
fFileDialogDirectory
- The string containing the directory name of a jar
being loaded.
-
fFinal
- The checkbox to determine if the new
morphed class should be a final class.
-
fFinalLabel
- The label on the
fFinal
checkbox.
-
fFinalList
- The list of method names to be considered
as final methods.
-
fFinalStr
- The string put into the
fFinalList
,
indicating there are no methods in the list.
-
fHelpButton
- The "help" button.
-
fHelpButtonStr
- The string in the "help" button.
-
fHelpText
- The TextArea component used to display the help.
-
fInherit
- The checkbox to determine if the new morphed class
should be implemented using inheritance.
-
fInheritLabel
- The string in the
fInherit
checkbox.
-
fInterfaceChoice
- The choice component where the user picks an
interface to be used during aggregation.
-
fInterfaceLabel
- The label on the
fInterfaceChoice
.
-
fInterfaceStr
- The string put into the
fInterfaceChoice
,
indicating there are no interfaces in the list.
-
fLoadBeanJarStr
- The string in the "load bean jar" button.
-
fLoadDipJarStr
- The string in the "load dip jar" button.
-
fLocPanel
- The panel indicating where the new morphed class
should be stored.
-
fMainPanel
- The main panel, that fills the first tab.
-
fMF
- The MessageFormatter for a MorphDialog.
-
fMorphButton
- The "morph" button.
-
fMorphButtonStr
- The string in the "morph" button.
-
fMorphViewSupport
- The MorphViewSupport that manages the
MorphViewEvent logic.
-
fMyParent
- The parent frame of this dialog.
-
fNbrOfAPIs
- The number of additional APIs.
-
fNewNameText
- The field where the user enters a new name for the
new morphed class.
-
fOptionsPanel
- The general customization panel, that fills
the second tab.
-
fOverrideParent
- The checkbox to determine if all the methods in
the parent class should be overridden.
-
fSelectBeanPanel
- The panel indicating what class to morph.
-
fTabs
- The tabs that contains the three main panels.
-
fTargetPanel
- The panel indicating where to put the morphed class.
-
fUseInherit
- A flag to indicate if inheritance is to
be used in creating the morphed class.
-
fWD
- The WaitDialog that tells the user what
is happening.
-
MorphDialog(Frame, boolean)
- Constructs an initially invisible MorphDialog instance.
-
actionPerformed(ActionEvent)
- Manages action events on the MorphDialog.
-
addMorphViewListener(MorphViewListener)
- Adds a MorphViewListener to the listener list.
-
addToListOfAdditionalInterfaces(String)
- Adds an interface name to the list of interfaces to be considered
as part of an additional API.
-
addToListOfClasses(String)
- Adds a class name to the list of classes to be considered for
morphing.
-
addToListOfDips(String)
- Adds the class name of a dip to the list of dips to be considered for
morphing.
-
addToListOfFinalMethodNames(String)
- Adds a method name to the list of methods to be considered as
final methods.
-
addToListOfInterfaces(String)
- Adds an interface name to the list of interfaces to be considered for
morphing.
-
cleanup()
- Performs any cleanup needed so the
MorphDialog can terminate.
-
constrain(Container, Component, int, int, int, int, int, int, double, double, int, int, int, int)
- Positions the component in the container.
-
constructAWTDialog()
- Constructs the AWT elements in a MorphDialog.
-
createWaitDialog()
- Creates a dialog with a message in it.
-
destroyWaitDialog()
- Destroys the dialog which was telling the user what was happening.
-
displayDipCustomizer(Customizer)
- Displays a dip customizer so that any customization needed by a pre-dip
is included in the new dippable bean.
-
displayHelp()
- Displays help for the user.
-
doLayout()
- Prompts the layout manager to lay out this component.
-
finalize()
- Disposes of system resources and performs other cleanup before
garbage collection.
-
fireMorphView(int, String, String[], int)
- Reports a morph view change to the registered listeners.
-
getAdditionalClasses()
- Gets the array of additional API class names to be added to the
dippable class.
-
getAdditionalClassItem(int)
- Gets the string at the specified index in the list of additional API
class names.
-
getAdditionalDialog()
- Gets the dialog that allows the user to edit an additional API pair.
-
getAdditionalInterfaceItem(int)
- Gets the string at the specified index in the list of additional API
interface names.
-
getAdditionalInterfaces()
- Gets the array of additional API interface names to be added to the
dippable class.
-
getAdvancedPanel()
- Gets the advanced customization panel.
-
getButtonsPanel()
- Gets the main buttons panel.
-
getClassItem(int)
- Gets the string at the specified index in the list of classes to be
considered for morphing.
-
getClassItemCount()
- Determines the number of class names in the list of classes to be
considered for morphing.
-
getClassName()
- Gets the name of the class to be used in the morphing process.
-
getDips()
- Gets the list of dips to be applied to the dippable class.
-
getDoBeanInfo()
- Determines whether the new dippable class should have a corresponding
BeanInfo.
-
getDoDipsSpecifyOverrides()
- Determines whether the pre-dips
specify which methods the dippable bean should
override.
-
getDoDisplay()
- Determines whether the MorphDialog instance is visible.
-
getDoExtended()
- Determines whether the new dippable class should implement
com.ibm.beans.dip.DippableExtended.
-
getDoFinal()
- Determines whether the new dippable class will be a final class.
-
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.
-
getDoInheritance()
- Determines whether the new dippable class should be created using
inheritance or aggregation.
-
getDoOverrideParentMethods()
- Determines which methods the dippable bean should override.
-
getEnabledAdvancedPanel()
- Determines whether the advanced customization panel is enabled.
-
getEnabledGeneralPanel()
- Determines whether the general customization panel is enabled.
-
getEnabledMainPanel()
- Determines whether the main panel is enabled.
-
getEnabledSelectBeanPanel()
- Determines whether the select bean panel is enabled.
-
getEnabledTargetPanel()
- Determines whether the target panel is enabled.
-
getFinalMethodNames()
- Gets the list of method names in the new dippable class that should
be final methods.
-
getFrame()
- Gets the frame this dialog is connected to.
-
getGeneralPanel()
- Gets the general customizations panel.
-
getHelpText(int)
- Determines the help text for the specified tab number.
-
getInterfaceName()
- Gets the name of the interface to be used in the morphing process.
-
getMainPanel()
- Gets the main options panel.
-
getNewClassName()
- Determines the new name of the dippable bean.
-
getSaveToLocation()
- Determines the location where the new dippable class will be saved.
-
getSaveToState()
- Determines the location state indicating where the new dippable class
will be saved.
-
getSelectBeanPanel()
- Gets the select beans panel.
-
getTargetPanel()
- Gets the target panel.
-
itemStateChanged(ItemEvent)
- Manages item events on the MorphDialog.
-
removeAllElementsFromListOfAdditionalInterfaces()
- Removes all the interface name(s) from the list of additional
interfaces.
-
removeAllElementsFromListOfFinalMethodNames()
- Removes all the method name(s) from the list of method names
to be considered as final methods.
-
removeAllElementsFromListOfInterfaces()
- Removes all the interface name(s) from the list of interfaces
to be considered for morphing.
-
removeFromListOfClasses(String)
- Removes a class name from the list of classes to be considered for
morphing.
-
removeFromListOfDips(String)
- Removes a class name from the list of dips to be considered for
morphing.
-
removeMorphViewListener(MorphViewListener)
- Removes a MorphViewListener from the listener list.
-
selectClass(String)
- Select a class name from the list of classes to be considered for
morphing.
-
selectDip(String)
- Selects a class name from the list of dips to be considered for
morphing.
-
selectFinalMethodName(String)
- Select a method name from the list of method names to be considered as
final methods.
-
setAdditionalAPI(int, String, String)
- Sets the class name and interface name for one of the additional APIs.
-
setAdditionalAPISection(Panel)
- Sets the section of the advanced customization panel that determines
if additional APIs should be added to the new dippable class.
-
setAdditionalDialog(MorphAdditionalAPIDialog)
- Sets the dialog that allows the user to edit an additional API pair.
-
setBeanInfoSection(Panel)
- Sets the section of the general customization panel that asks
if the new dippable class should have a BeanInfo.
-
setDipsSpecifyOverrideSection(Panel)
- Sets the section of the advanced customization panel that asks
if the dips should specify what methods are overridden.
-
setDoBeanInfo(boolean)
- Specifies whether a BeanInfo should be generated.
-
setDoDipsSpecifyOverrides(boolean)
- Specifies whether the pre-dips determine
which methods the dippable bean should
override.
-
setDoDisplay(boolean)
- Shows or hides the MorphDialog instance.
-
setDoExtended(boolean)
- Specifies the implementation interface for the new dippable class.
-
setDoFinal(boolean)
- Specifies whether the new dippable class will be a final class.
-
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.
-
setDoInheritance(boolean)
- Specifies the implementation approach to the new dippable class.
-
setDoOverrideParentMethods(boolean)
- Specifies which methods the dippable bean should override.
-
setEnabledAdvancedPanel(boolean)
- Enables or disables the advanced customization panel, depending on
the value of the parameter b.
-
setEnabledComponents(Container, boolean)
- Enables or disables all the Components in a Container.
-
setEnabledGeneralPanel(boolean)
- Enables or disables the general customization panel, depending on
the value of the parameter b.
-
setEnabledMainPanel(boolean)
- Enables or disables the main panel, depending on the value of the
parameter b.
-
setEnabledSelectBeanPanel(boolean)
- Enables or disables the select bean panel, depending on the value of the
parameter b.
-
setEnabledTargetPanel(boolean)
- Enables or disables the target panel, depending on the value of the
parameter b.
-
setErrorMessage(String)
- Displays an error message.
-
setExtendedSection(Panel)
- Sets the section of the general customization panel that asks
if the new dippable class should implement the DippableExtended
interface.
-
setFinalSection(Panel)
- Sets the section of the advanced customization panel that asks
if the new dippable class should be a final class.
-
setHelpText(int)
- Sets the help text for the specified tab number.
-
setNewClassName(String)
- Sets the new name of the dippable bean.
-
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.
-
setOverrideParentSection(Panel)
- Sets the section of the advanced customization panel that asks
if all methods should be overridden, or just the parents methods.
-
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.
-
setSaveToLocation(int, String)
- Specifies where the dippable class will be saved.
-
setStatusMessage(String)
- Displays a status, or informational, message.
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.
fNbrOfAPIs
protected int fNbrOfAPIs
- The number of additional APIs. This number
is set by fAPICount.length.
fWD
protected WaitDialog fWD
- The WaitDialog that tells the user what
is happening.
fMorphViewSupport
protected MorphViewSupport fMorphViewSupport
- The MorphViewSupport that manages the
MorphViewEvent logic.
fTabs
protected Tabs fTabs
- The tabs that contains the three main panels.
fMainPanel
protected Panel fMainPanel
- The main panel, that fills the first tab.
fSelectBeanPanel
protected Panel fSelectBeanPanel
- The panel indicating what class to morph.
This is the top part of the main panel.
fTargetPanel
protected Panel fTargetPanel
- The panel indicating where to put the morphed class.
This is the bottom part of the main panel.
fOptionsPanel
protected Panel fOptionsPanel
- The general customization panel, that fills
the second tab.
fAdvancedPanel
protected Panel fAdvancedPanel
- The advanced customization panel, that fills
the third tab.
fDipMsg
protected String fDipMsg
- The string put into the
fDipList
,
indicating there are no dips available.
fDipList
protected List fDipList
- The list where the user picks the pre-Dips to be
applied to the new morphed class.
fBeanChoice
protected Choice fBeanChoice
- The choice component where the user picks a
class to be used during either aggregation or
inheritance.
fInterfaceChoice
protected Choice fInterfaceChoice
- The choice component where the user picks an
interface to be used during aggregation.
fInterfaceLabel
protected Label fInterfaceLabel
- The label on the
fInterfaceChoice
.
fInterfaceStr
protected String fInterfaceStr
- The string put into the
fInterfaceChoice
,
indicating there are no interfaces in the list.
fNewNameText
protected TextField fNewNameText
- The field where the user enters a new name for the
new morphed class.
fLocPanel
protected LocationPanel fLocPanel
- The panel indicating where the new morphed class
should be stored. This is the bottom part of
the main panel.
fMyParent
protected Frame fMyParent
- The parent frame of this dialog.
fInherit
protected Checkbox fInherit
- The checkbox to determine if the new morphed class
should be implemented using inheritance.
fInheritLabel
protected String fInheritLabel
- The string in the
fInherit
checkbox.
fMorphButtonStr
protected String fMorphButtonStr
- The string in the "morph" button.
fMorphButton
protected Button fMorphButton
- The "morph" button.
fCancelButtonStr
protected String fCancelButtonStr
- The string in the "cancel" button.
fCancelButton
protected Button fCancelButton
- The "cancel" button.
fHelpButtonStr
protected String fHelpButtonStr
- The string in the "help" button.
fHelpButton
protected Button fHelpButton
- The "help" button.
fHelpText
protected TextArea fHelpText
- The TextArea component used to display the help.
fLoadBeanJarStr
protected String fLoadBeanJarStr
- The string in the "load bean jar" button.
fLoadDipJarStr
protected String fLoadDipJarStr
- The string in the "load dip jar" button.
fFileDialogDirectory
protected String fFileDialogDirectory
- The string containing the directory name of a jar
being loaded.
fAggregate
protected Checkbox fAggregate
- The checkbox to determine if the new morphed class
should be implemented using aggregation.
fAggregateLabel
protected String fAggregateLabel
- The label on the
fAggregate
checkbox.
fExtend
protected Checkbox fExtend
- The checkbox to determine if the new morphed class
should implement DippableExtended.
fBeanInfo
protected Checkbox fBeanInfo
- The checkbox to determine if a BeanInfo should
be created.
fOverrideParent
protected Checkbox fOverrideParent
- The checkbox to determine if all the methods in
the parent class should be overridden.
fDipsSpecifyOverrides
protected Checkbox fDipsSpecifyOverrides
- The checkbox to determine if the dips specify
what methods are overridden.
fFinal
protected Checkbox fFinal
- The checkbox to determine if the new
morphed class should be a final class.
fFinalLabel
protected Label fFinalLabel
- The label on the
fFinal
checkbox.
fFinalList
protected List fFinalList
- The list of method names to be considered
as final methods.
fFinalStr
protected String fFinalStr
- The string put into the
fFinalList
,
indicating there are no methods in the list.
fAdditionalList
protected List fAdditionalList
- The list on the advanced customization panel,
that shows the additional API pairs.
fAdditionalLabel
protected Label fAdditionalLabel
- The label on the
fAdditionalList
.
fAdditionalClasses
protected String fAdditionalClasses[]
- The array of additional API class names.
fAdditionalInterfaces
protected String fAdditionalInterfaces[]
- The array of additional API interface names.
fUseInherit
protected boolean fUseInherit
- A flag to indicate if inheritance is to
be used in creating the morphed class.
fAdditionalDialog
protected MorphAdditionalAPIDialog fAdditionalDialog
- The dialog presented to the user to add
or edit an additional API pair.
fMF
protected MessageFormatter fMF
- The MessageFormatter for a MorphDialog.
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.
constructAWTDialog
protected void constructAWTDialog()
- Constructs the AWT elements in a MorphDialog.
doLayout
public void doLayout()
- Prompts the layout manager to lay out this component.
- Overrides:
- doLayout in class Container
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
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.
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.
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
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
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.
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
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
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.
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
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
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.
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.
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.
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.
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.
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
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
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.
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.
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.
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.
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.
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
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
getButtonsPanel
protected Panel getButtonsPanel()
- Gets the main buttons panel. This panel contains the "Morph Class",
"Close", and "Help" buttons.
- Returns:
- a panel with buttons.
getDoDisplay
public boolean getDoDisplay()
- Determines whether the MorphDialog instance is visible.
- Returns:
-
true
if the MorphDialog instance is displayed
to the user; false
otherwise.
cleanup
public synchronized void cleanup()
- Performs any cleanup needed so the
MorphDialog can terminate.
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.
addMorphViewListener
public void addMorphViewListener(MorphViewListener listener)
- Adds a MorphViewListener to the listener list.
- Parameters:
- listener - The MorphViewListener to be added.
removeMorphViewListener
public void removeMorphViewListener(MorphViewListener listener)
- Removes a MorphViewListener from the listener list.
- Parameters:
- listener - The MorphViewListener to be removed
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
setErrorMessage
public void setErrorMessage(String msg)
- Displays an error message.
- Parameters:
- msg - The error message to be displayed to the user.
setStatusMessage
public void setStatusMessage(String msg)
- Displays a status, or informational, message.
- Parameters:
- msg - The status message to be displayed to the user.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
actionPerformed
public void actionPerformed(ActionEvent e)
- Manages action events on the MorphDialog.
- Parameters:
- e - The action event performed.
itemStateChanged
public void itemStateChanged(ItemEvent e)
- Manages item events on the MorphDialog.
- Parameters:
- e - The item event performed.
displayHelp
protected void displayHelp()
- Displays help for the user.
setHelpText
protected void setHelpText(int tab)
- Sets the help text for the specified tab number.
- Parameters:
- tab - The number of the tab
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.
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.
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.
createWaitDialog
protected void createWaitDialog()
- Creates a dialog with a message in it. This dialog is used to
tell the user what is going on.
destroyWaitDialog
protected void destroyWaitDialog()
- Destroys the dialog which was telling the user what was happening.
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.
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.
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.
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.
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.
getFrame
protected Frame getFrame()
- Gets the frame this dialog is connected to.
- Returns:
- The frame this dialog is connected to.
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