The Gravey 2.5 Framework

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

Method Detail

addItem

void addItem(k,o)

delItem

void delItem(k)

dump

String dump()

getCount

Object getCount( )

getItem

Object getItem(k )

getItemStr

Object getItemStr(k )

getMemento

Object getMemento()

iterate

void iterate(f)

konstructor

void konstructor( <String> optName )

reset

void reset( )

setMemento

void setMemento(<Object> m)

The Gravey 2.5 Framework

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