All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.tools.dataFormatWizard.SchemaSaveDialog

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

public class SchemaSaveDialog
extends Dialog
implements ActionListener
The SchemaSaveDialog class provides a dialog that asks the user whether to save the current file schema, leave it unsaved, or cancel the action that prompted this dialog.


Variable Index

 o dialogCancel
Indicates that the action which prompted this dialog should be canceled, and the current file schema should remain unchanged.
 o dialogNoSave
Indicates that the current file schema should not be saved.
 o dialogSave
Indicates that the current file schema should be saved.

Constructor Index

 o SchemaSaveDialog(Frame)
Constructs an initially invisible SchemaSaveDialog instance.

Method Index

 o actionPerformed(ActionEvent)
Handles an action event generated when the user clicks one of the dialog buttons.
 o isCancelWanted()
Reports whether the action that prompted this dialog should be canceled.
 o isSaveWanted()
Reports whether the schema should be saved.
 o setVisible(boolean)
Shows or hides this component, depending on the boolean flag.

Variables

 o dialogSave
 public static final int dialogSave
Indicates that the current file schema should be saved.

 o dialogNoSave
 public static final int dialogNoSave
Indicates that the current file schema should not be saved.

 o dialogCancel
 public static final int dialogCancel
Indicates that the action which prompted this dialog should be canceled, and the current file schema should remain unchanged.

Constructors

 o SchemaSaveDialog
 public SchemaSaveDialog(Frame parent)
Constructs an initially invisible SchemaSaveDialog instance.

Parameters:
parent - The owner of the dialog.

Methods

 o isCancelWanted
 public boolean isCancelWanted()
Reports whether the action that prompted this dialog should be canceled.

Returns:
true if the action that triggered this dialog should be canceled; false otherwise.
 o isSaveWanted
 public boolean isSaveWanted()
Reports whether the schema should be saved.

Returns:
true if the schema should be saved; false otherwise.
 o setVisible
 public void setVisible(boolean visible)
Shows or hides this component, depending on the boolean flag.

Parameters:
visible - true to show this component; false to hide this component.
Overrides:
setVisible in class Component
 o actionPerformed
 public void actionPerformed(ActionEvent e)
Handles an action event generated when the user clicks one of the dialog buttons.

Parameters:
e - The action event.

All Packages  Class Hierarchy  This Package  Previous  Next  Index