com.partnersoft.v3x.gadgets
Class UndoStack
java.lang.Object
com.partnersoft.v3x.gadgets.UndoStack
public class UndoStack
- extends java.lang.Object
Handles an undo/redo stack.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UndoStack
public UndoStack()
execute
public void execute(UndoableCommand command)
- Executes the new command, and clears the current redo stack.
undo
public UndoableCommand undo()
redo
public UndoableCommand redo()
nextUndo
public UndoableCommand nextUndo()
getUndoStackSize
public int getUndoStackSize()
getRedoStackSize
public int getRedoStackSize()