EventListener

An event listener.

Methods:

getElements, remove, toSource, toSpecifier

Objects:

Boolean, File, Number, Object, String,

Property Listing

Property

Type

Access

Description

captures

Boolean

readonly

If true, the event supports the capturing phase of propagation.

eventType

String

readonly

The name of the event.

handler

File

JavaScriptFunction

readonly

The handler to invoke when the event occurs. Can return: File or JavaScript Function.

id

Number

readonly

The unique ID of the EventListener.

index

Number

readonly

The index of the EventListener within its containing object.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

parent

Application

Menu

MenuAction

ScriptMenuAction

Document

Submenu

readonly

The parent of the EventListener (a Document, Application, MenuAction, ScriptMenuAction, Menu or Submenu).

properties

Object

read/write

A property that allows setting of several properties at the same time.

Method Listing

EventListener getElements ()

Resolves the object specifier, creating an array of object references.

undefined remove ()

Deletes the EventListener.

String toSource ()

Generates a string which, if executed, will return the EventListener.

String toSpecifier ()

Retrieves the object specifier.

Return

Application.addEventListener()

Document.addEventListener()

MenuAction.addEventListener()

ScriptMenuAction.addEventListener()

Menu.addEventListener()

Submenu.addEventListener()

EventListeners.add()

EventListener.getElements()

EventListeners.anyItem()

EventListeners.everyItem()

EventListeners.nextItem()

EventListeners.previousItem()

EventListeners.itemByID()

EventListeners.item()

EventListeners.[]()

EventListeners.itemByName()

EventListeners.itemByRange()

EventListeners.firstItem()

EventListeners.lastItem()

EventListeners.middleItem()