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.
 


Constructor Index

 o CommandProcessor()

Method Index

 o addAndDo(Command)
Add the command to the command log and perform the command.
 o getRedoCommand()
Get next command to redo.
 o getUndoCommand()
Get next command to undo.
 o redo()
Redo the previous command.
 o reset()
Reset the command processor and clear the command log.
 o undo()
Undo the previous command.

Constructors

 o CommandProcessor
 public CommandProcessor()

Methods

 o addAndDo
 public synchronized void addAndDo(Command cmd)
Add the command to the command log and perform the command.

 o undo
 public synchronized void undo()
Undo the previous command.

 o redo
 public synchronized void redo()
Redo the previous command.

 o getUndoCommand
 public synchronized Command getUndoCommand()
Get next command to undo.

 o getRedoCommand
 public synchronized Command getRedoCommand()
Get next command to redo.

 o reset
 public synchronized void reset()
Reset the command processor and clear the command log.


All Packages  Class Hierarchy  This Package  Previous  Next  Index