public class UndoCaretaker
extends java.lang.Object
| Constructor and Description |
|---|
UndoCaretaker() |
| Modifier and Type | Method and Description |
|---|---|
void |
addState(org.icepdf.core.Memento previousState,
org.icepdf.core.Memento newState)
Adds the give states to the history list.
|
boolean |
isRedo()
Gets the status of the redo command.
|
boolean |
isUndo()
Gets the status of the undo command.
|
void |
redo()
Redo the last state change.
|
void |
undo()
Undo the last state change.
|
public void undo()
public boolean isUndo()
public void redo()
public boolean isRedo()
public void addState(org.icepdf.core.Memento previousState,
org.icepdf.core.Memento newState)
previousState - previous statenewState - new state.