All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.webrunner.bab.NewAction

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

public class NewAction
extends BAction
implements Serializable
This is called by the when the user performs File->New. The Default implementation, (if NewActionHandler 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 creates a new model if your model has a default constructor. The new empty model set by this Action can be obtained by listening for property change event on your BABApp, for property "model".

If NewActionHandler is set then it is called to perform the application specific New Action. You must clear the data in your existing models and initialize your model to reflect a new default document for your application.

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

Version:
0.1
See Also:
NewActionHandler, BAction

Constructor Index

 o NewAction()
Default constructor

Method Index

 o actionPerformed(ActionEvent)
 o getNewActionHandler()
Returns NewActionHandler
 o setNewActionHandler(NewActionHandler)
Set New Action Handler

Constructors

 o NewAction
 public NewAction()
Default constructor

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent e)
Overrides:
actionPerformed in class BAction
 o setNewActionHandler
 public void setNewActionHandler(NewActionHandler newNewActionHandler)
Set New Action Handler

 o getNewActionHandler
 public NewActionHandler getNewActionHandler()
Returns NewActionHandler


All Packages  Class Hierarchy  This Package  Previous  Next  Index