|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.gadgets.UndoStack
public class UndoStack
Handles an undo/redo stack.
| Constructor Summary | |
|---|---|
UndoStack()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UndoStack()
| Method Detail |
|---|
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||