Class mx.controls.menuclasses.MenuDataProvider

Object
   +--mx.controls.menuclasses.MenuDataProvider

Field Index

addTreeNode, addTreeNodeAt, attributes, childNodes, getTreeNodeAt, mixinProps, mixins, parentNode, removeTreeNode, removeTreeNodeAt
Inherited from Object
__proto__, constructor, prototype

Method Index

new MenuDataProvider()

addMenuItem(), addMenuItemAt(), getMenuItemAt(), indexOf(), Initialize(), removeMenuItem(), removeMenuItemAt()
Inherited from Object
addProperty(), hasOwnProperty(), isPropertyEnumerable(), isPrototypeOf(), registerClass(), toLocaleString(), toString(), unwatch(), valueOf(), watch()

Constructor Detail

MenuDataProvider

function MenuDataProvider()

Field Detail

mixinProps

static mixinProps:Array

mixins

static mixins:MenuDataProvider

attributes

attributes:Object

parentNode

parentNode:Object

childNodes

childNodes:Array

addTreeNode

addTreeNode:Function

addTreeNodeAt

addTreeNodeAt:Function

getTreeNodeAt

getTreeNodeAt:Function

removeTreeNode

removeTreeNode:Function

removeTreeNodeAt

removeTreeNodeAt:Function

Method Detail

Initialize

static function Initialize(obj:
Object):Boolean

addMenuItem

function addMenuItem(arg:
Object):Object
Add an item to this item's submenu. If this is the first item added, then the necessary structures will be created to support a submenu.
Parameters
arg may be either (1) an Object (whose properties will be copied into the resulting XMLNode's attributes), (2) an XMLNode (used directly), or (3) an XML instance whose firstChild will be cloned and used. @returns an XMLNode carrying a representation of the menu item's state

addMenuItemAt

function addMenuItemAt(index:
Number, arg:Object):Object
Insert an item into this item's submenu. If the index is invalid, then this call will be ignored.
Parameters
index the index where the item should be inserted
arg may be either (1) an Object (whose properties will be copied into the resulting XMLNode's attributes), (2) an XMLNode (used directly), or (3) an XML instance whose firstChild will be cloned and used. @returns an XMLNode carrying a representation of the menu item's state

removeMenuItem

function removeMenuItem(Void):
Object
Remove this item from it's parent.

removeMenuItemAt

function removeMenuItemAt(index:
Number):Object
Remove an item from this item's submenu.
Parameters
index the index of the item to be removed @returns a reference to the XMLNode that was removed

getMenuItemAt

function getMenuItemAt(index:
Number):Object
Retrieve a menu item from this menu
Parameters
index the index of the item to be retrieved @returns a reference to the XMLNode that was removed

indexOf

function indexOf(item:
Object):Number
Return the index of the given item within this item's submenu. If the target item does not belong to this item's submenu, then return undefined.
Parameters
item the target item @returns the index of the given item, or undefined