The Gravy Framework

Class UndoRedoModel

Object
   |
   +--OObject
         |
         +--Observer
               |
               +--Model
                     |
                     +--ListModel
                           |
                           +--DequeModel
                                 |
                                 +--UndoRedoModel

class UndoRedoModel
extends DequeModel


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

UndoRedoModel()

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 Gravy Framework

Documentation generated by JSDoc on Fri Mar 17 06:40:21 2006