|
Webnote | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--History
A class that maintains the undo/redo stacks.
Defined in webnote.js
| Field Summary | |
int |
maxSize
The number of items to keep in the undo stack. |
Array |
redoStack
|
Array |
undoStack
|
| Constructor Summary | |
History
()
|
|
| Method Summary | |
void
|
add(<function> funcPtr)
Add an event to the undo stack. |
void
|
redo()
Redo the last undo action. |
void
|
undo()
Undo the last action and move an item from the undo stack to the redo stack. |
void
|
updateTitles()
Update the tool tips on the undo and redo icons. |
| Field Detail |
int maxSize
Array redoStack
Array undoStack
| Constructor Detail |
History()
| Method Detail |
void add(<function> funcPtr)
funcPtr - a closure that when called will undo the last action
void redo()
void undo()
void updateTitles()
|
Webnote | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||