Object +--mx.controls.menuclasses.MenuDataProvider
addTreeNode
, addTreeNodeAt
, attributes
, childNodes
, getTreeNodeAt
, mixinProps
, mixins
, parentNode
, removeTreeNode
, removeTreeNodeAt
__proto__
, constructor
, prototype
static mixinProps:Array
static mixins:MenuDataProvider
attributes:Object
parentNode:Object
childNodes:Array
addTreeNode:Function
addTreeNodeAt:Function
getTreeNodeAt:Function
removeTreeNode:Function
removeTreeNodeAt:Function
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
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
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