The Gravey Framework and RATS RIA

Class MVCUndoRedoModel

Object
   |
   +--GrvObject
         |
         +--MVCObserver
               |
               +--MVCModel
                     |
                     +--MVCListModel
                           |
                           +--MVCDequeModel
                                 |
                                 +--MVCUndoRedoModel

class MVCUndoRedoModel
extends MVCDequeModel


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, reset, getCount, getItem, getItemStr, addItem, delItem, iterate, addBefore, getMemento, setMemento
   
Methods inherited from class MVCModel
dumpSubscribers, toString, dirty, clean, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, addObserver, delObserver, notifyObservers
   
Methods inherited from class MVCObserver
update, subscribe
   
Methods inherited from class GrvObject
souper
 

Constructor Detail

MVCUndoRedoModel

MVCUndoRedoModel()

Method Detail

cmdDesc

String cmdDesc(i)

hasReDo

String hasReDo()

hasUnDo

String hasUnDo()

konstructor

void konstructor()

newDo

void newDo(c)

reDo

void reDo( )

unDo

void unDo( )

The Gravey Framework and RATS RIA

Documentation generated by JSDoc on Sat Dec 8 21:52:02 2007