All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.webrunner.bab.BCommand

java.lang.Object
   |
   +----com.sun.java.swing.undo.AbstractUndoableEdit
           |
           +----com.ibm.webrunner.bab.BCommand

public class BCommand
extends AbstractUndoableEdit
implements Serializable
BCommand is a Selection aware swing's AbstractUndoableEdit. (TODO: yet to implement selection awareness). It implements getPresentationName from AbstractUndoableEdit to return the presentation name from the associated action. This class must be extended and the method doCommand() must be implemented that actually performs the command. Also relevant methods from AbstractUndoableEdit must be implemented if this is an undoable command.

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

Version:
0.1
See Also:
BAction, AbstractUndoableEdit

Constructor Index

 o BCommand()
No arg constructor

Method Index

 o canDo()
Can this command be executed now ? Default implementation returns true.
 o doCommand()
Do the command.
 o getPresentationName()
Return the presentation name.

Constructors

 o BCommand
 public BCommand()
No arg constructor

Methods

 o getPresentationName
 public String getPresentationName()
Return the presentation name. The default implementation returns the presentation name as the name of the associated action that executes this command.

Overrides:
getPresentationName in class AbstractUndoableEdit
 o canDo
 public boolean canDo()
Can this command be executed now ? Default implementation returns true.

 o doCommand
 public void doCommand()
Do the command. Default implementation does nothing. This must be implemented by applications to perform an actual action.


All Packages  Class Hierarchy  This Package  Previous  Next  Index