Adds an event listener.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| String | readonly | The menu action area. | |
| Boolean | readonly | If true, the menu item associated with the menu action is checked. | |
| Boolean | readonly | If true, the MenuAction is enabled. | |
| EventListeners |
readonly | A collection of event listeners. | |
| Events |
readonly | A collection of events. | |
| Number | readonly | The unique ID of the MenuAction. | |
| Number | readonly | The index of the MenuAction within its containing object. | |
| Boolean | readonly | Returns true if the object specifier resolves to valid objects. | |
| String | read/write | A property that can be set to any string. | |
| String | readonly | The name of the MenuAction. | |
| Application | readonly | The parent of the MenuAction (a Application). | |
| Object | read/write | A property that allows setting of several properties at the same time. | |
| String | readonly | The name of the MenuAction 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. |
Events
| Name | Description |
|---|---|
| Dispatched after the MenuAction is invoked. This event does not bubble. This event is not cancelable. | |
| Dispatched before the MenuAction is invoked. This event does not bubble. This event is cancelable. |
Methods
→ String
Gets the label value associated with the specified key.
→ MenuAction[]
Resolves the object specifier, creating an array of object references.
→ void
Sets the label to the value associated with the specified key.
→ void
Invoke the action.
→ Boolean
Removes the event listener.
→ String
Generates a string which, if executed, will return the MenuAction.
→ String
Retrieves the object specifier.
Object of 4
Properties elsewhere that hold a MenuAction.
Parameter of 4
Method parameters that accept a MenuAction.
Return 13
Methods that return a MenuAction.