Window
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
activePage | Page | r/w | The front-most page. |
activeSpread | MasterSpreadSpread | r/w | The front-most spread. Can return: Spread or MasterSpread. |
bounds | Array of number | r/w | The bounds of the window (specified in pixels) in the form [top, left, bottom, right]. |
eventListeners | EventListeners EventListener | readonly | A collection of event listeners. |
events | Events Event | readonly | A collection of events. |
index | number | readonly | The index of the Window within its containing object. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
name | string | readonly | The name of the Window. |
parent | Document | readonly | The parent of the Window (a Document). |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
screenMode | ScreenModeOptions: ScreenModeOptions.PREVIEW_OFF ScreenModeOptions.PREVIEW_TO_PAGE |
r/w | The screen mode for layout view. |
selection | Array of Object | r/w | The selected object(s). Can also accept: Object or NothingEnum enumerator. |
viewTab | ViewTabs: ViewTabs.LAYOUT_VIEW ViewTabs.GALLEY_VIEW ViewTabs.STORY_VIEW |
r/w | The view in which to display the document. |
zoomPercentage | number (range: 5 - 4000) | r/w | The size (as a percentage) to which to enlarge or reduce the view of the document. (Range: 5 to 4000) |
Class
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) |
void bringToFront ()
Brings the object to the front.
void close ()
Closes the Window.
Array
of Window getElements ()
Resolves the object specifier, creating an array of object references.
void maximize ()
Maximizes the window.
void minimize ()
Minimizes the window.
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) |
void restore ()
Restores the window.
void select (selectableItems:
varies[, existingSelection:
SelectionOptions=SelectionOptions.REPLACE_WITH])
Selects the specified object(s).
Parameter | Type | Description |
---|---|---|
selectableItems |
Array
of Objects NothingEnum Object SelectAll | The objects to select. Can accept: Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator. |
existingSelection | SelectionOptions: SelectionOptions.ADD_TO SelectionOptions.REMOVE_FROM SelectionOptions.REPLACE_WITH | 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.
void zoom (given:
ZoomOptions)
Magnifies or reduces the window to the specified display size.
Parameter | Type | Description |
---|---|---|
given | ZoomOptions: ZoomOptions.ZOOM_IN ZoomOptions.ZOOM_OUT ZoomOptions.FIT_SPREAD ZoomOptions.FIT_PAGE ZoomOptions.SHOW_PASTEBOARD ZoomOptions.ACTUAL_SIZE | The display size. |
Element of
Application.activeWindow
Used in:
Window Windows.nextItem (obj: Window)
Window Windows.previousItem (obj: Window)
Return
Array of Window Window.getElements ()
Window Windows.[] (index: number)
Window Windows.add ([withProperties: Object])
Window Windows.anyItem ()
Array of Window Windows.everyItem ()
Window Windows.firstItem ()
Window Windows.item (index: varies)
Window Windows.itemByName (name: string)
Array of Window Windows.itemByRange (from: varies, to: varies)
Window Windows.lastItem ()
Window Windows.middleItem ()
Window Windows.nextItem (obj: Window)
Window Windows.previousItem (obj: Window)
Jongware, 29-Apr-2012 v3.0.3i | Contents :: Index |