Submenu
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
eventListeners | EventListeners | readonly | A collection of event listeners. |
events | Events | readonly | A collection of events. |
index | number | readonly | The index of the Submenu within its containing object. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
menuElements | MenuElements | readonly | A collection of menu elements. |
menuItems | MenuItems | readonly | A collection of menu items. |
menuSeparators | MenuSeparators | readonly | A collection of menu separators. |
name | string | readonly | The name of the Submenu. |
parent | MenuSubmenu | readonly | The parent of the Submenu (a Menu or Submenu). |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
submenus | Submenus | readonly | A collection of submenus. |
title | string | readonly | The name of the Submenu for display in the user interface. The title includes any ampersand characters (&), which are used to tell the Windows OS to underline the following character in the name for use with the Alt key to navigate to a menu item. Double ampersands are used to display an actual ampersand character in the name. The Mac OS ignores and removes the extra ampersand characters. |
Class
Property | Type | Access | Description |
---|---|---|---|
BEFORE_DISPLAY | string | readonly | Dispatched before the Submenu is displayed. This event does not bubble. This event is not cancelable. (default: beforeDisplay) |
Methods
Instances
EventListener addEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Adds an event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The event type. |
handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
Array of Submenu getElements ()
Resolves the object specifier, creating an array of object references.
void remove ()
Deletes the Submenu.
bool removeEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Removes the event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The registered event type. |
handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
string toSource ()
Generates a string which, if executed, will return the Submenu.
Element of
MenuElement.parent
MenuItem.parent
MenuSeparator.parent
Submenu.parent
Used in:
Submenu Submenus.nextItem (obj: Submenu)
Submenu Submenus.previousItem (obj: Submenu)
Return
Array of Submenu Submenu.getElements ()
Submenu Submenus.[] (index: number)
Submenu Submenus.add (title: string[, at: LocationOptions=LocationOptions.AT_END][, reference: MenuElement][, withProperties: Object])
Submenu Submenus.anyItem ()
Array of Submenu Submenus.everyItem ()
Submenu Submenus.firstItem ()
Submenu Submenus.item (index: varies)
Submenu Submenus.itemByName (name: string)
Array of Submenu Submenus.itemByRange (from: varies, to: varies)
Submenu Submenus.lastItem ()
Submenu Submenus.middleItem ()
Submenu Submenus.nextItem (obj: Submenu)
Submenu Submenus.previousItem (obj: Submenu)
Jongware, 28-Apr-2012 v3.0.3h | Contents :: Index |