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

getNamedItem()

Retrieves the frame with the given name.

4.6 or later

item()

Returns the frame at the given index in the map.

4.6 or later

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus