|
The Gravy Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--OObject
|
+--Observer
|
+--Model
|
+--ListModel
|
+--DequeModel
|
+--UndoRedoModel
This class encapsulates the data model for the
Command Dequeue which supports deep undo and redo.
NOTE: This logic invokes the "synchronized" version
of the Command API.
Author: Bruce Wallace (PolyGlotInc.com)
Defined in mvc.js
Version: 1.0
| Constructor Summary | |
UndoRedoModel
()
|
|
| Method Summary | |
String
|
cmdDesc(i)
iff command index is defined, return command description |
String
|
hasReDo()
iff there is another redo-able command return its description |
String
|
hasUnDo()
iff there is another undo-able command return its description |
void
|
konstructor()
|
void
|
newDo(c)
Add a new command object to the top of the "stack" and "do" it. |
void
|
reDo( )
"unpop the top" command object and "redo" it. |
void
|
unDo( )
"pop the top" command object and "undo" it. |
| Methods inherited from class DequeModel |
_reset, addFirst, addLast, delFirst, delLast, enqueue, dequeue, push, pop, top, upIndex, _up, downIndex, _down, _cutback
|
| Methods inherited from class ListModel |
dump, _pop, _push, getCount, getItem, getItemStr, addItem, reset, iterate, addBefore
|
| Methods inherited from class Model |
dumpSubscribers, toString, dirty, clean, neverChanged, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, addObserver, delObserver, notifyObservers
|
| Methods inherited from class Observer |
update, subscribe
|
| Constructor Detail |
UndoRedoModel()
| Method Detail |
String cmdDesc(i)
String hasReDo()
String hasUnDo()
void konstructor()
optName - optional name of this instance
void newDo(c)
void reDo( )
void unDo( )
|
The Gravy Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||