Overview | File | Class | Tree | Index | Help
| The Gravey Framework and RATS RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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()

Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)

Method Detail

### cmdDesc

    String cmdDesc(i)

iff command index is defined, return command description

### hasReDo

    String hasReDo()

iff there is another redo-able command return its description

### hasUnDo

    String hasUnDo()

iff there is another undo-able command return its description

### konstructor

    void konstructor()

Parameters:

`optName` - optional name of this instance

### newDo

    void newDo(c)

Add a new command object to the top of the "stack" and "do" it.

### reDo

    void reDo( )

"unpop the top" command object and "redo" it.

### unDo

    void unDo( )

"pop the top" command object and "undo" it.

Overview | File | Class | Tree | Index | Help
| The Gravey Framework and RATS RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Jan 6 12:46:18 2011