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

## Class MVCMapModel

    Object
       |
       +--GrvObject
             |
             +--MVCObserver
                   |
                   +--MVCModel
                         |
                         +--MVCMapModel

class MVCMapModel
extends MVCModel

This class encapsulates a data model for a Map of object/key pairs. Its API is a wrapper for the MVCMap API. This class implements the MVCCollection interface.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
Defined in grvMVC.js

Constructor Summary
`MVCMapModel ()`

Method Summary
`void` | `addItem(k,o)`
`void` | `delItem(k)`
`String` | `dump()` debug method to return this list as a string
`Object` | `getCount( )`
`Object` | `getItem(k )`
`Object` | `getItemStr(k )`
`Object` | `getMemento()` return a memento of the current state of "this"
`void` | `iterate(f)`
`void` | `konstructor( <String> optName )`
`void` | `reset( )`
`void` | `setMemento(<Object> m)` update "this" based on the given memento

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, souper_, isInstanceOf`

Constructor Detail

### MVCMapModel

    MVCMapModel()

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

Method Detail

### addItem

    void addItem(k,o)

### delItem

    void delItem(k)

### dump

    String dump()

debug method to return this list as a string

### getCount

    Object getCount( )

### getItem

    Object getItem(k )

### getItemStr

    Object getItemStr(k )

### getMemento

    Object getMemento()

return a memento of the current state of "this"

### iterate

    void iterate(f)

### konstructor

    void konstructor( <String> optName )

Parameters:

`optName` - optional name of this instance

### reset

    void reset( )

### setMemento

    void setMemento(<Object> m)

update "this" based on the given memento

Parameters:

`m` - the memento

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

Documentation generated by JSDoc on Thu Jan 6 12:47:09 2011