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.
-
dialogCancel
- Indicates that the action which prompted this dialog should be
canceled, and the current file schema should remain unchanged.
-
dialogNoSave
- Indicates that the current file schema should not be saved.
-
dialogSave
- Indicates that the current file schema should be saved.
-
SchemaSaveDialog(Frame)
- Constructs an initially invisible SchemaSaveDialog instance.
-
actionPerformed(ActionEvent)
- Handles an action event generated when the user clicks one of
the dialog buttons.
-
isCancelWanted()
- Reports whether the action that prompted this dialog should be
canceled.
-
isSaveWanted()
- Reports whether the schema should be saved.
-
setVisible(boolean)
- Shows or hides this component, depending on the boolean flag.
dialogSave
public static final int dialogSave
- Indicates that the current file schema should be saved.
dialogNoSave
public static final int dialogNoSave
- Indicates that the current file schema should not be saved.
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.
SchemaSaveDialog
public SchemaSaveDialog(Frame parent)
- Constructs an initially invisible SchemaSaveDialog instance.
- Parameters:
- parent - The owner of the dialog.
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.
isSaveWanted
public boolean isSaveWanted()
- Reports whether the schema should be saved.
- Returns:
- true if the schema should be saved;
false otherwise.
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
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