The Gravey 2.0 Framework and AIM RIA

Class MVCMap

Object
   |
   +--GrvObject
         |
         +--MVCMap

class MVCMap
extends GrvObject


This class encapsulates a Map of object/key pairs and implements the MVCCollection interface
Version: 2.0

Author: Bruce Wallace (PolyGlotInc.com)
See:

Defined in grvMVC.js


Constructor Summary
MVCMap ()
           
 
Method Summary
 void addItem(k,o)
           add given object and associate with given key
 Map clone()
           return a (deep) clone of "this" object.
 void delItem( k )
           delete item associated with given key
 String dump()
           debug method to return this list as a string
 Object first()
           return the first object in this map or null if empty
 Object firstKey()
           return the first key in this map or null if empty
 int getCount( )
           return how many items are in map
 Object getItem( k )
           return item associated with given key
 String getItemStr( k )
           return item as string associated with given key
 Object getMemento()
           return a memento of the current state of "this"
 void iterate( <Function> f )
           iterate thru items in map calling specified function
 void konstructor( <String> optName )
          
 Object next( k )
           Return the object that comes AFTER the given key or, if no key specified, return the first object.
 Object nextKey( k )
           Return the key that comes after the given key.
 void reset( )
           reset map to empty
 void setMemento(<Object> m)
           update "this" based on the given memento
 
Methods inherited from class GrvObject
souper
 

Constructor Detail

MVCMap

MVCMap()

Method Detail

addItem

void addItem(k,o)

clone

Map clone()

delItem

void delItem( k )

dump

String dump()

first

Object first()

firstKey

Object firstKey()

getCount

int getCount( )

getItem

Object getItem( k )

getItemStr

String getItemStr( k )

getMemento

Object getMemento()

iterate

void iterate( <Function> f )

konstructor

void konstructor( <String> optName )

next

Object next( k )

nextKey

Object nextKey( k )

reset

void reset( )

setMemento

void setMemento(<Object> m)

The Gravey 2.0 Framework and AIM RIA

Documentation generated by JSDoc on Sat Dec 8 21:51:03 2007