PrintEvent

A print event

Methods:

getElements, preventDefault, stopPropagation, toSource, toSpecifier

Objects:

Boolean, Date, DocumentPrintUiOptions, EventPhases, Number, Object, String

Hierarchy:

Superclass: Event

Class: PrintEvent

Property Listing

Property

Type

Access

Description

bubbles

Boolean

readonly

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

cancelable

Boolean

readonly

If true, the default behavior of the event on its target can be canceled.

currentTarget

Object

readonly

The current propagation target of the event.

defaultPrevented

Boolean

readonly

If true, the default behavior of the event on its target has been canceled.

documentPrintUiOption

Array of DocumentPrintUiOptions

DocumentPrintUiOptions.SUPPRESS_FILE_SAVE_DIALOG

DocumentPrintUiOptions.SUPPRESS_PRINT_DIALOG

DocumentPrintUiOptions.SUPPRESS_PRINT_PROGRESS

DocumentPrintUiOptions.SUPPRESS_PRINT_WARNINGS

read/write

UI options for print document

eventPhase

EventPhases

EventPhases.AT_TARGET

EventPhases.BUBBLING_PHASE

EventPhases.DONE

EventPhases.NOT_DISPATCHING

readonly

The current propagation phase of the event.

eventType

String

readonly

The name of the event.

id

Number

readonly

The unique ID of the PrintEvent.

index

Number

readonly

The index of the PrintEvent within its containing object.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

parent

Document

readonly

The parent of the PrintEvent (a Document).

propagationStopped

Boolean

readonly

If true, propagation of the event beyond the current target has been stopped.

properties

Object

read/write

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

target

Object

readonly

The target of the event.

timeStamp

Date

readonly

The time the event was initialized.

Constants/Events

Name

Type

Access

Description

AFTER_PRINT

String

readonly

Dispatched after a PrintEvent is printed. This event bubbles. This event is not cancelable.

BEFORE_PRINT

String

readonly

Dispatched before a PrintEvent is printed. This event bubbles. This event is cancelable.

Method Listing

PrintEvent getElements ()

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

undefined preventDefault ()

Cancels the default behavior of the event on its target.

undefined 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.

Object of

MutationEvent.parent

Return

PrintEvent.getElements()