|
The Gravey 2.0 Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--GrvObject
|
+--MVCObserver
|
+--MVCModel
|
+--MVCListModel
|
+--MVCDequeModel
|
+--MVCUndoRedoModel
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 MVCCommand API.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
Defined in grvMVC.js
| Constructor Summary | |
MVCUndoRedoModel
()
|
|
| 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 MVCDequeModel |
_reset, addFirst, addLast, delFirst, delLast, enqueue, dequeue, push, pop, top, upIndex, _up, downIndex, _down, _cutback
|
| Methods inherited from class MVCListModel |
clone, dump, hash, _pop, _push, _del, getCount, getItem, getItemStr, addItem, delItem, reset, iterate, addBefore, getMemento, setMemento
|
| Methods inherited from class MVCModel |
dumpSubscribers, toString, dirty, clean, neverChanged, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, reloaded, addObserver, delObserver, notifyObservers
|
| Methods inherited from class MVCObserver |
update, subscribe
|
| Methods inherited from class GrvObject |
souper, souper_, isInstanceOf
|
| Constructor Detail |
MVCUndoRedoModel()
| 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 Gravey 2.0 Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||