javax.print.event

Class PrintJobAttributeEvent

public class PrintJobAttributeEvent extends PrintEvent

PrintJobAttributeEvents are generated by a PrintService to inform registered listeners that attributes associated with a {@link javax.print.DocPrintJob} instance have changed.
Constructor Summary
PrintJobAttributeEvent(DocPrintJob source, PrintJobAttributeSet attributes)
Constructs a PrintJobAttributeEvent object.
Method Summary
PrintJobAttributeSetgetAttributes()
Returns the attributes that changed and their new values.
DocPrintJobgetPrintJob()
Returns the print job generating this event.

Constructor Detail

PrintJobAttributeEvent

public PrintJobAttributeEvent(DocPrintJob source, PrintJobAttributeSet attributes)
Constructs a PrintJobAttributeEvent object.

Parameters: source the source of this event attributes the attribute changes being reported

Method Detail

getAttributes

public PrintJobAttributeSet getAttributes()
Returns the attributes that changed and their new values.

Returns: The changed attributes.

getPrintJob

public DocPrintJob getPrintJob()
Returns the print job generating this event.

Returns: The print job.