All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.tools.dip.MorphAdditionalAPIDialog

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

public class MorphAdditionalAPIDialog
extends Dialog
implements ActionListener
The MorphAdditionalAPIDialog class provides a view that asks the user for information necessary to edit or update an additional API pair. An additional API pair is an interface and a corresponding bean that can be added to a new dippable bean. The dippable bean will implement the interface and use the corresponding bean for the implementation. For more information, see additionalAPIs parameter in DippableGenerator.

The MorphAdditionalAPIDialog is used by, and uses, a MorphDialog.

See Also:
MorphDialog

Variable Index

 o fAdditionalAPINbr
The number of this additional API pair.
 o fAdditionalBeanChoice
The choice component where the user picks a class to be used with the interface as additional API in the new dippable class.
 o fAdditionalInterfaceChoice
The choice component where the user picks an interface to be used as additional API in the new dippable class.
 o fAdditionalInterfaceListener
The listener that manages changes in the fAdditionalBeanChoice.
 o fAdditionalPanel
The main panel with the Additional API elements.
 o fCancelButtonStr
The string in the "Cancel" button.
 o fDeleteButtonStr
The string in the "Delete" button.
 o fInterfaceStr
The string put into the fAdditionalInterfaceChoice, indicating there are no interfaces in the list.
 o fMF
The MessageFormatter for a MorphDialog.
 o fMorphDialog
The MorphDialog instance using this MorphAdditionalAPIDialog.
 o fOKButtonStr
The string in the "OK" button.

Constructor Index

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

Method Index

 o actionPerformed(ActionEvent)
Manages action events on the MorphAdditionalAPIDialog.
 o addToListOfAdditionalInterfaces(String)
Adds an interface name to the list of interfaces to be considered as part of an additional API.
 o constrain(Container, Component, int, int, int, int, int, int, double, double, int, int, int, int)
Positions the component in the container.
 o constructAdditionalAPIDialog()
Constructs the AWT elements in a MorphAdditionalAPIDialog.
 o getAdditionalPanel()
Gets the main panel with the Additional API elements.
 o getButtonsPanel()
Gets the main buttons panel.
 o getClassName()
Gets the name of the class to be used as additional API in the morphing process.
 o removeAllElementsFromListOfAdditionalInterfaces()
Removes all the interface name(s) from the list of interfaces to be considered for additional API.
 o selectClass(String)
Selects a class name from the list of classes to be considered for additional API.
 o selectInterface(String)
Selects an interface name from the list of interfaces to be considered for additional API.

Variables

 o fMF
 protected MessageFormatter fMF
The MessageFormatter for a MorphDialog.

 o fAdditionalPanel
 protected Panel fAdditionalPanel
The main panel with the Additional API elements.

 o fAdditionalAPINbr
 protected int fAdditionalAPINbr
The number of this additional API pair. There can be multiple pairs, this number just indicates which pair this is.

 o fAdditionalBeanChoice
 protected Choice fAdditionalBeanChoice
The choice component where the user picks a class to be used with the interface as additional API in the new dippable class.

 o fAdditionalInterfaceChoice
 protected Choice fAdditionalInterfaceChoice
The choice component where the user picks an interface to be used as additional API in the new dippable class.

 o fMorphDialog
 protected MorphDialog fMorphDialog
The MorphDialog instance using this MorphAdditionalAPIDialog. This class commumicates with the MorphDialog instance.

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

 o fAdditionalInterfaceListener
 protected ItemListener fAdditionalInterfaceListener
The listener that manages changes in the fAdditionalBeanChoice.

 o fOKButtonStr
 protected String fOKButtonStr
The string in the "OK" button.

 o fDeleteButtonStr
 protected String fDeleteButtonStr
The string in the "Delete" button.

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

Constructors

 o MorphAdditionalAPIDialog
 public MorphAdditionalAPIDialog(Frame frame,
                                 MorphDialog md,
                                 int additionalAPINbr)
Constructs an initially invisible MorphAdditionalAPIDialog instance.

Parameters:
frame - The parent frame of the dialog.
md - The MorphDialog to interface with.
additionalAPINbr - The number of the additional API pair this dialog is allowing the user to edit.

Methods

 o constructAdditionalAPIDialog
 protected void constructAdditionalAPIDialog()
Constructs the AWT elements in a MorphAdditionalAPIDialog.

 o getAdditionalPanel
 protected Panel getAdditionalPanel()
Gets the main panel with the Additional API elements. This panel is at the top of the GUI.

Returns:
a panel with Additional API elements.
 o getButtonsPanel
 protected Panel getButtonsPanel()
Gets the main buttons panel. This panel is at the bottom of the GUI.

Returns:
a panel with buttons.
 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 MorphAdditionalAPIDialog use java.awt.GridBagLayout, a powerful but complicated 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 getClassName
 public String getClassName()
Gets the name of the class to be used as additional API in the morphing process.

Returns:
The package qualified class name to be used as additional API in the morphing process.
 o actionPerformed
 public void actionPerformed(ActionEvent e)
Manages action events on the MorphAdditionalAPIDialog.

Parameters:
e - The action event performed.
 o selectClass
 protected void selectClass(String className)
Selects a class name from the list of classes to be considered for additional API. This method pre-selects a class name for the user. The user has the option of changing this selection.

Parameters:
className - A package qualified class name.
 o selectInterface
 protected void selectInterface(String InterfaceName)
Selects an interface name from the list of interfaces to be considered for additional API. This method pre-selects an interface name for the user. The user has the option of changing this selection.

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

 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.

All Packages  Class Hierarchy  This Package  Previous  Next  Index