|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.UndoStack
public class UndoStack
This class maintains a stack of UndoRecords for a window. It also automatically records the redo records generated when they are executed.
Constructor Summary | |
---|---|
UndoStack()
|
Method Summary | |
---|---|
void |
addRecord(UndoRecord record)
Add an UndoRecord to the stack. |
boolean |
canRedo()
Determine whether there are any redo records available, so that a Redo command could be executed. |
boolean |
canUndo()
Determine whether there are any undo records available, so that an Undo command could be executed. |
void |
executeRedo()
Execute the redo record at the top of the stack. |
void |
executeUndo()
Execute the undo record at the top of the stack. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UndoStack()
Method Detail |
---|
public boolean canUndo()
public boolean canRedo()
public void addRecord(UndoRecord record)
public void executeUndo()
public void executeRedo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |