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
-
BCommand()
- No arg constructor
-
canDo()
- Can this command be executed now ? Default implementation returns true.
-
doCommand()
- Do the command.
-
getPresentationName()
- Return the presentation name.
BCommand
public BCommand()
- No arg constructor
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
canDo
public boolean canDo()
- Can this command be executed now ? Default implementation returns true.
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