Window
A window.
Go to Property Listing | Method Listing
Methods:
addEventListener, bringToFront, close, getElements, maximize, minimize, removeEventListener, restore, select, toSource, toSpecifier
Objects:
Boolean, EventListeners, Events, NothingEnum, Number, Object, PageItem, String
Hierarchy:
Class: Window
Subclasses: LayoutWindow | StoryWindow
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
read/write |
The bounds of the window (specified in pixels) in the form [top, left, bottom, right]. |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
The index of the Window within its containing object. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
readonly |
The name of the Window. |
||
readonly |
The parent of the Window (a Document). |
||
read/write |
A property that allows setting of several properties at the same time. |
||
read/write |
The selected object(s). Can also accept: Object or NothingEnum enumerator. |
||
read/write |
The key object of the selection. Can also accept: NothingEnum enumerator. |
Constants/Events
Name |
Type |
Access |
Description |
---|---|---|---|
readonly |
Dispatched after the Window becomes active. This event bubbles. This event is not cancelable. |
||
readonly |
Dispatched when the value of a property changes on this Window. This event bubbles. This event is not cancelable. |
||
readonly |
Dispatched when a Window is closing. Since the close has been committed, it can no longer be canceled. This event bubbles. This event is not cancelable. |
||
readonly |
Dispatched after a Window is opened. This event bubbles. This event is not cancelable. |
||
readonly |
Dispatched after an attribute on the active selection changes. This event bubbles. This event is not cancelable. |
||
readonly |
Dispatched after the active selection changes. This event bubbles. This event is not cancelable. |
||
readonly |
Dispatched before a Window is closed. This event bubbles. This event is cancelable. |
||
readonly |
Dispatched before the Window becomes inactive. This event bubbles. This event is not cancelable. |
Method Listing
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined bringToFront ()
Brings the object to the front.
undefined close ()
Closes the Window.
Window getElements ()
Resolves the object specifier, creating an array of object references.
undefined maximize ()
Maximizes the window.
undefined minimize ()
Minimizes the window.
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined restore ()
Restores the window.
undefined select (selectableItems:Array of Varies Objects NothingEnum Object SelectAll, [existingSelection:SelectionOptions=SelectionOptions])
Selects the specified object(s).
Parameter |
Type |
Description |
---|---|---|
selectableItems |
Array of Objects |
The objects to select. Can accept: Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator. |
existingSelection |
The selection status of the Window in relation to previously selected objects. (Optional) (default: SelectionOptions.REPLACE_WITH) |
String toSource ()
Generates a string which, if executed, will return the Window.
String toSpecifier ()
Retrieves the object specifier.
Object of
Application.activeWindow
Event.parent
EventListener.parent
MutationEvent.parent