|
MapQuest Advantage TileMap Toolkit Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--MQTKObjectCollection
Base class used for any collection holding MQObjects.
Defined in utils.js
| Constructor Summary | |
MQTKObjectCollection
(max)
MQTKObjectCollection constructor. |
|
| Method Summary | |
int
|
add(<Object> obj)
Adds an object to the collection. |
boolean
|
contains(<Object> item)
Function to test if object is in collection. |
Object
|
getAt(<int> iIndex)
Returns an object at the specified index. |
Object
|
getById(<string> strId)
Returns an object with the specified ID. |
int
|
getSize()
Returns the size of the collection. |
Object
|
remove(<int> iIndex)
Removes an object at specified index. |
void
|
removeAll()
Remove all elements from collection. |
void
|
removeItem(<Object> item)
Remove an item by it's pointer. |
| Constructor Detail |
MQTKObjectCollection(max)
| Method Detail |
int add(<Object> obj)
obj - the object to be added
boolean contains(<Object> item)
item - object to test.
Object getAt(<int> iIndex)
iIndex - index of the item to retrieve.
Object getById(<string> strId)
strId - ID of the item to retrieve.
int getSize()
Object remove(<int> iIndex)
iIndex - index of item to be removed.
void removeAll()
void removeItem(<Object> item)
item - pointer to the item to remove.
|
MapQuest Advantage TileMap Toolkit Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||