All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.desktop.CommandProcessor
java.lang.Object
|
+----COM.ibm.desktop.CommandProcessor
- public class CommandProcessor
- extends Object
- implements ICommandProcessor
CommandProcessor provides simple command logging and unlimited undo/redo
support.
Copyright (c) Taligent, Inc. 1996 - 1997.
Copyright (c) IBM Corporation 1996 - 1997.
All Rights Reserved.
-
CommandProcessor()
-
-
addAndDo(Command)
- Add the command to the command log and perform the command.
-
getRedoCommand()
- Get next command to redo.
-
getUndoCommand()
- Get next command to undo.
-
redo()
- Redo the previous command.
-
reset()
- Reset the command processor and clear the command log.
-
undo()
- Undo the previous command.
CommandProcessor
public CommandProcessor()
addAndDo
public synchronized void addAndDo(Command cmd)
- Add the command to the command log and perform the command.
undo
public synchronized void undo()
- Undo the previous command.
redo
public synchronized void redo()
- Redo the previous command.
getUndoCommand
public synchronized Command getUndoCommand()
- Get next command to undo.
getRedoCommand
public synchronized Command getRedoCommand()
- Get next command to redo.
reset
public synchronized void reset()
- Reset the command processor and clear the command log.
All Packages Class Hierarchy This Package Previous Next Index