MenuItems
A collection of menu items.
Instance
Read Only
Number length
The number of objects in the collection.
Methods
MenuItem add( MenuAction associatedMenuAction, LocationOptions at, MenuElement reference, Object withProperties )
Creates a new menu item.
Parameters
Number count()
Displays the number of elements in the MenuItem.
MenuItem item( Mixed index )
Returns the MenuItem with the specified index or name.
Parameters
MenuItem itemByName( String name )
Returns the MenuItem with the specified name.
Parameters
MenuItem itemByID( Number id )
Returns the MenuItem with the specified ID.
Parameters
MenuItem itemByRange( Mixed from, Mixed to )
Returns the MenuItems within the specified range.
Parameters
MenuItem firstItem()
Returns the first MenuItem in the collection.
MenuItem lastItem()
Returns the last MenuItem in the collection.
MenuItem middleItem()
Returns the middle MenuItem in the collection.
MenuItem previousItem( MenuItem obj )
Returns the MenuItem with the index previous to the specified index.
Parameters
MenuItem nextItem( MenuItem obj )
Returns the MenuItem whose index follows the specified MenuItem in the collection.
Parameters
MenuItem anyItem()
Returns any MenuItem in the collection.
MenuItem everyItem()
Returns every MenuItem in the collection.
String toSource()
Generates a string which, if executed, will return the MenuItem.
MenuItem []( Number index )
Returns the MenuItem with the specified index.