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
-
fAdditionalAPINbr
- The number of this additional API pair.
-
fAdditionalBeanChoice
- The choice component where the user picks a
class to be used with the interface as additional
API in the new dippable class.
-
fAdditionalInterfaceChoice
- The choice component where the user picks an
interface to be used as additional
API in the new dippable class.
-
fAdditionalInterfaceListener
- The listener that manages changes in the
fAdditionalBeanChoice
.
-
fAdditionalPanel
- The main panel with the Additional API elements.
-
fCancelButtonStr
- The string in the "Cancel" button.
-
fDeleteButtonStr
- The string in the "Delete" button.
-
fInterfaceStr
- The string put into the
fAdditionalInterfaceChoice
,
indicating there are no interfaces in the list.
-
fMF
- The MessageFormatter for a MorphDialog.
-
fMorphDialog
- The MorphDialog instance using this
MorphAdditionalAPIDialog.
-
fOKButtonStr
- The string in the "OK" button.
-
MorphAdditionalAPIDialog(Frame, MorphDialog, int)
- Constructs an initially invisible MorphAdditionalAPIDialog instance.
-
actionPerformed(ActionEvent)
- Manages action events on the MorphAdditionalAPIDialog.
-
addToListOfAdditionalInterfaces(String)
- Adds an interface name to the list of interfaces to be considered
as part of an additional API.
-
constrain(Container, Component, int, int, int, int, int, int, double, double, int, int, int, int)
- Positions the component in the container.
-
constructAdditionalAPIDialog()
- Constructs the AWT elements in a MorphAdditionalAPIDialog.
-
getAdditionalPanel()
- Gets the main panel with the Additional API elements.
-
getButtonsPanel()
- Gets the main buttons panel.
-
getClassName()
- Gets the name of the class to be used as additional API in the morphing
process.
-
removeAllElementsFromListOfAdditionalInterfaces()
- Removes all the interface name(s) from the list of interfaces
to be considered for additional API.
-
selectClass(String)
- Selects a class name from the list of classes to be considered for
additional API.
-
selectInterface(String)
- Selects an interface name from the list of interfaces to be considered for
additional API.
fMF
protected MessageFormatter fMF
- The MessageFormatter for a MorphDialog.
fAdditionalPanel
protected Panel fAdditionalPanel
- The main panel with the Additional API elements.
fAdditionalAPINbr
protected int fAdditionalAPINbr
- The number of this additional API pair. There
can be multiple pairs, this number just indicates
which pair this is.
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.
fAdditionalInterfaceChoice
protected Choice fAdditionalInterfaceChoice
- The choice component where the user picks an
interface to be used as additional
API in the new dippable class.
fMorphDialog
protected MorphDialog fMorphDialog
- The MorphDialog instance using this
MorphAdditionalAPIDialog. This class commumicates
with the MorphDialog instance.
fInterfaceStr
protected String fInterfaceStr
- The string put into the
fAdditionalInterfaceChoice
,
indicating there are no interfaces in the list.
fAdditionalInterfaceListener
protected ItemListener fAdditionalInterfaceListener
- The listener that manages changes in the
fAdditionalBeanChoice
.
fOKButtonStr
protected String fOKButtonStr
- The string in the "OK" button.
fDeleteButtonStr
protected String fDeleteButtonStr
- The string in the "Delete" button.
fCancelButtonStr
protected String fCancelButtonStr
- The string in the "Cancel" button.
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.
constructAdditionalAPIDialog
protected void constructAdditionalAPIDialog()
- Constructs the AWT elements in a MorphAdditionalAPIDialog.
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.
getButtonsPanel
protected Panel getButtonsPanel()
- Gets the main buttons panel. This panel is at the bottom of
the GUI.
- Returns:
- a panel with buttons.
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
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.
actionPerformed
public void actionPerformed(ActionEvent e)
- Manages action events on the MorphAdditionalAPIDialog.
- Parameters:
- e - The action event performed.
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.
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.
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.
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