Adobe InDesign CS6 Server (8.0) Object Model JS: PrintEvent

InDesign Server CS6

Class

PrintEvent

 A print event Base Class: Event

QuickLinks

getElements, preventDefault, stopPropagation, toSource, toSpecifier

Hierarchy

Document
Event
PrintEvent
MutationEvent

Properties

PropertyTypeAccessDescription
bubblesbool readonlyIf true, the event supports the bubbling phase of propagation.
cancelablebool readonlyIf true, the default behavior of the event on its target can be canceled.
currentTargetObject readonlyThe current propagation target of the event.
defaultPreventedbool readonlyIf true, the default behavior of the event on its target has been canceled.
eventPhaseEventPhases:
EventPhases.NOT_DISPATCHING
EventPhases.AT_TARGET
EventPhases.BUBBLING_PHASE
EventPhases.DONE
readonlyThe current propagation phase of the event.
eventTypestring readonlyThe name of the event.
idnumber readonlyThe unique ID of the PrintEvent.
indexnumber readonlyThe index of the PrintEvent within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
parentDocument readonlyThe parent of the PrintEvent (a Document).
propagationStoppedbool readonlyIf true, propagation of the event beyond the current target has been stopped.
propertiesObject r/wA property that allows setting of several properties at the same time.
targetObject readonlyThe target of the event.
timeStampDate readonlyThe time the event was initialized.

Class

PropertyTypeAccessDescription
AFTER_PRINTstring readonlyDispatched after a PrintEvent is printed. This event bubbles. This event is not cancelable. (default: afterPrint)
BEFORE_PRINTstring readonlyDispatched before a PrintEvent is printed. This event bubbles. This event is cancelable. (default: beforePrint)

Methods

Instances

Array of PrintEvent getElements ()
Resolves the object specifier, creating an array of object references.

void preventDefault ()
Cancels the default behavior of the event on its target.

void stopPropagation ()
Stops propagation of the event beyond the current target.

string toSource ()
Generates a string which, if executed, will return the PrintEvent.

string toSpecifier ()
Retrieves the object specifier.

Return

Array of PrintEvent PrintEvent.getElements ()

Jongware, 28-Apr-2012 v3.0.3iContents :: Index