A collection of event listeners.
Methods
EventListeneradd (eventType:
string, handler:
any[, captures:
bool=false ][, withProperties:
Object])
Creates a new EventListener.
| Parameter | Type | Description |
|---|---|---|
| eventType | string | The event type. |
| handler | File JavaScript Function |
The event handler. Can accept: File or JavaScript Function. |
| captures | bool | If true, the handler is called only in the capturing phase of event propagation. If false, the handler is called in the bubbling phase if this EventListener is an ancestor of the target, or in the at-target phase if this EventListener is itself the target of the event. (Optional) (default: false ) |
| withProperties | Object | Initial values for properties of the new EventListener (Optional) |
EventListeneranyItem ()
Returns any EventListener in the collection.
number count ()
Displays the number of elements in the EventListener.
Array of EventListenereveryItem ()
Returns every EventListener in the collection.
EventListenerfirstItem ()
Returns the first EventListener in the collection.
EventListeneritem (index:
any)
Returns the EventListener with the specified index or name.
| Parameter | Type | Description |
|---|---|---|
| index | Long Integer String |
The index or name. Can accept: Long Integer or String. |
EventListeneritemByName (name:
string)
Returns the EventListener with the specified name.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name. |
Array of EventListeneritemByRange (from:
any, to:
any)
Returns the EventListeners within the specified range.
| Parameter | Type | Description |
|---|---|---|
| from | EventListener Long Integer String |
The EventListener, index, or name at the beginning of the range. Can accept: EventListener, Long Integer or String. |
| to | EventListener Long Integer String |
The EventListener, index, or name at the end of the range. Can accept: EventListener, Long Integer or String. |
EventListenerlastItem ()
Returns the last EventListener in the collection.
EventListenermiddleItem ()
Returns the middle EventListener in the collection.
EventListenernextItem (obj:
EventListener)
Returns the EventListener whose index follows the specified EventListener in the collection.
| Parameter | Type | Description |
|---|---|---|
| obj | EventListener | The EventListener whose index comes before the desired EventListener. |
EventListenerpreviousItem (obj:
EventListener)
Returns the EventListener with the index previous to the specified index.
| Parameter | Type | Description |
|---|---|---|
| obj | EventListener | The index of the EventListener that follows the desired EventListener. |
string toSource ()
Generates a string which, if executed, will return the EventListener.
Element of:
Application.eventListeners
Document.eventListeners
Menu.eventListeners
MenuAction.eventListeners
ScriptMenuAction.eventListeners
Submenu.eventListeners