The Gravy Framework

Class Map

Object
   |
   +--OObject
         |
         +--Map

class Map
extends OObject


This class encapsulates a Map of object/key pairs and implements the Collection virtual interface
See:

Author: Bruce Wallace (PolyGlotInc.com)
Defined in mvc.js

Version: 1.0


Constructor Summary
Map ()
           
 
Method Summary
 void addItem(k,o)
           add given object and associate with given key
 void delItem( k )
           delete item associated with given key
 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
 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

Constructor Detail

Map

Map()

Method Detail

addItem

void addItem(k,o)

delItem

void delItem( k )

first

Object first()

firstKey

Object firstKey()

getCount

int getCount( )

getItem

Object getItem( k )

getItemStr

String getItemStr( k )

iterate

void iterate( <Function> f )

konstructor

void konstructor( <String> optName )

next

Object next( k )

nextKey

Object nextKey( k )

reset

void reset( )

The Gravy Framework

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