All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.webrunner.bab.SaveAction

java.lang.Object
   |
   +----com.sun.java.swing.AbstractAction
           |
           +----com.ibm.webrunner.bab.BAction
                   |
                   +----com.ibm.webrunner.bab.SaveAction

public class SaveAction
extends BAction
implements Serializable
This saves the application model (if set on the BABApp) into a file with extension as specified with BABApp. This implementation saves the document if it already exists, or else (if new document) brings up a FileChooser for the user to select a directory and file to save.

If SaveHandler is set then it is called to perform the actual writing to the file.

Modification(s) History :
09/21/98 - created

Version:
0.1
See Also:
SaveActionHandler, BAction

Constructor Index

 o SaveAction()
Default constructor

Method Index

 o actionPerformed(ActionEvent)
 o getSaveActionHandler()
Returns SaveActionHandler
 o setSaveActionHandler(SaveActionHandler)
Set Save Action Handler

Constructors

 o SaveAction
 public SaveAction()
Default constructor

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent e)
Overrides:
actionPerformed in class BAction
 o setSaveActionHandler
 public void setSaveActionHandler(SaveActionHandler newSaveActionHandler)
Set Save Action Handler

 o getSaveActionHandler
 public SaveActionHandler getSaveActionHandler()
Returns SaveActionHandler


All Packages  Class Hierarchy  This Package  Previous  Next  Index