public class UndoStack
extends java.lang.Object
Copyright 2002-2012 Partner Software, Inc.
| Constructor and Description |
|---|
UndoStack() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
execute(UndoableCommand command)
Executes the new command, and clears the current redo stack.
|
ChangeGadget |
getChangeGadget() |
int |
getRedoStackSize() |
boolean |
getSavingDisabled() |
int |
getUndoStackSize() |
UndoableCommand |
nextUndo() |
UndoableCommand |
redo() |
java.util.ArrayList |
removeCommandsSince(UndoableCommand command)
This removes the commands executed since the given UndoableCommand on the
stack, without undoing them.
|
void |
setSavingDisabled(boolean tizit)
This disables pushing the commands onto the stack during
execute/undo/redo all that happens is an execute.
|
UndoableCommand |
undo() |
public void execute(UndoableCommand command)
public UndoableCommand undo()
public UndoableCommand redo()
public UndoableCommand nextUndo()
public int getUndoStackSize()
public int getRedoStackSize()
public ChangeGadget getChangeGadget()
public void clear()
public void setSavingDisabled(boolean tizit)
public boolean getSavingDisabled()
public java.util.ArrayList removeCommandsSince(UndoableCommand command)