All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.webrunner.bab.OpenAction

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

public class OpenAction
extends BAction
implements Serializable
This opens a file containing the application model with file extension as specified with BABApp. The Default implementation, (if OpenActionHandler is not set or null) is it checks to see if the current Model is modified, if so prompts the user to save the modified data. Then it brings up a FileChooser for the user to select a directory and file to open and reads the new model from the chosen file into the BABApp's model. The new model read from the file by this Action can be obtained by listening for property change event on your BABApp, for property "model".

If OpenActionHandler is set then it is called to perform the actual reading from file.

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

Version:
0.1
See Also:
OpenActionHandler, BAction

Constructor Index

 o OpenAction()
Default constructor

Method Index

 o actionPerformed(ActionEvent)
 o getOpenActionHandler()
Returns OpenActionHandler
 o setOpenActionHandler(OpenActionHandler)
Set Open Action Handler

Constructors

 o OpenAction
 public OpenAction()
Default constructor

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent e)
Overrides:
actionPerformed in class BAction
 o setOpenActionHandler
 public void setOpenActionHandler(OpenActionHandler newOpenActionHandler)
Set Open Action Handler

 o getOpenActionHandler
 public OpenActionHandler getOpenActionHandler()
Returns OpenActionHandler


All Packages  Class Hierarchy  This Package  Previous  Next  Index