APIdia Launch Partner
Top Description Fields Constructors Methods
javax.print.event

public Class PrintJobAttributeEvent

extends PrintEvent
Class Inheritance
Imports
java.io.Serial, javax.print.DocPrintJob, javax.print.attribute.AttributeSetUtilities, .PrintJobAttributeSet

Class PrintJobAttributeEvent encapsulates an event a PrintService reports to let the client know that one or more printing attributes for a PrintJob have changed.

Field Summary

Modifier and TypeField and Description
private PrintJobAttributeSet
private static final long
serialVersionUID

Hides javax.print.event.PrintEvent.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Constructor Summary

AccessConstructor and Description
public
PrintJobAttributeEvent(DocPrintJob
the print job generating this event
source
,
PrintJobAttributeSet
the attribute changes being reported
attributes
)

Constructs a PrintJobAttributeEvent object.

Method Summary

Modifier and TypeMethod and Description
public PrintJobAttributeSet

Returns:

attributes containing the new values for the print job attributes that changed. The returned set may not be modifiable.
getAttributes
()

Determine the printing attributes that changed and their new values.

public DocPrintJob

Returns:

PrintJob object
getPrintJob
()

Determine the PrintJob to which this print job event pertains.

Inherited from javax.print.event.PrintEvent:
toString

Field Detail

attributesback to summary
private PrintJobAttributeSet attributes
Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.print.event.PrintEvent.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial

Constructor Detail

PrintJobAttributeEventback to summary
public PrintJobAttributeEvent(DocPrintJob source, PrintJobAttributeSet attributes)

Constructs a PrintJobAttributeEvent object.

Parameters
source:DocPrintJob

the print job generating this event

attributes:PrintJobAttributeSet

the attribute changes being reported

Exceptions
IllegalArgumentException:
if source is null

Method Detail

getAttributesback to summary
public PrintJobAttributeSet getAttributes()

Determine the printing attributes that changed and their new values.

Returns:PrintJobAttributeSet

attributes containing the new values for the print job attributes that changed. The returned set may not be modifiable.

getPrintJobback to summary
public DocPrintJob getPrintJob()

Determine the PrintJob to which this print job event pertains.

Returns:DocPrintJob

PrintJob object