|
The Gravey 2.5 Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--GrvObject
|
+--MVCMap
This class encapsulates a Map of object/key pairs
and implements the MVCCollection interface
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:
| 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, souper_, isInstanceOf
|
| Constructor Detail |
MVCMap()
| Method Detail |
void addItem(k,o)
Map clone()
void delItem( k )
String dump()
Object first()
Object firstKey()
int getCount( )
Object getItem( k )
String getItemStr( k )
Object getMemento()
void iterate( <Function> f )
f - function that takes key and object as params and returns true if the iteration should be stopped before all items in map are processed.
void konstructor( <String> optName )
optName - optional name of this instance
Object next( k )
Object nextKey( k )
void reset( )
void setMemento(<Object> m)
m - the memento
|
The Gravey 2.5 Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||