NamedFrameMap
Availability |
BlackBerry Device Software version 4.6 or later |
The NamedFrameMap object represents collections of frames that can be accessed by name.
You can access an individual frame within a collection by its index position using NamedFrameMap.item() , by its name or id attribute using NamedFrameMap.getNamedItem() , or you can index the object directly. For example, if you create an instance of a NamedFrameMap object called myNamedFrameMap, then specifying
myNamedFrameMap.item(2)
myNamedFrameMap.getNamedItem(“item”)
is equivalent to specifying
myNamedFrameMap[2]
myNamedFrameMap[“item”]
Properties
Property name |
Type |
Description |
Status |
Availability |
---|---|---|---|---|
length |
unsigned long |
Returns the number of nodes in the map. |
read only |
4.6 or later |
Methods
Method name |
Description |
Availability |
---|---|---|
Retrieves the frame with the given name. |
4.6 or later |
|
Returns the frame at the given index in the map. |
4.6 or later |
Last modified: 2013-08-14