|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.ri.common.UndoCaretaker
public class UndoCaretaker
Undo caretaker implementation for the Viewer RI. Currently only annotation can be manipulate but this class can easily handle any class that implements the Memento interfce.
| Constructor Summary | |
|---|---|
UndoCaretaker()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UndoCaretaker()
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||