Object +--mx.controls.menuclasses.MenuDataProvider
addTreeNode, addTreeNodeAt, attributes, childNodes, getTreeNodeAt, mixinProps, mixins, parentNode, removeTreeNode, removeTreeNodeAt__proto__, constructor, prototypestatic mixinProps:Arraystatic mixins:MenuDataProviderattributes:ObjectparentNode:ObjectchildNodes:ArrayaddTreeNode:FunctionaddTreeNodeAt:FunctiongetTreeNodeAt:FunctionremoveTreeNode:FunctionremoveTreeNodeAt:Functionfunction addMenuItem(arg:Object):ObjectAdd 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
argmay 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):ObjectInsert an item into this item's submenu. If the index is invalid, then this call will be ignored.
- Parameters
indexthe index where the item should be inserted argmay 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):ObjectRemove an item from this item's submenu.
- Parameters
indexthe index of the item to be removed @returns a reference to the XMLNode that was removed