com.partnersoft.v3x.gadgets
Class UndoStack

java.lang.Object
  extended by com.partnersoft.v3x.gadgets.UndoStack

public class UndoStack
extends java.lang.Object

Handles an undo/redo stack.


Constructor Summary
UndoStack()
           
 
Method Summary
 void execute(UndoableCommand command)
          Executes the new command, and clears the current redo stack.
 int getRedoStackSize()
           
 int getUndoStackSize()
           
 UndoableCommand nextUndo()
           
 UndoableCommand redo()
           
 UndoableCommand undo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UndoStack

public UndoStack()
Method Detail

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()