javax.print.event
public class PrintJobAttributeEvent extends PrintEvent
PrintJobAttributeEvent
s are generated by a
PrintService
to inform registered listeners that attributes
associated with a DocPrintJob
instance have changed.source
Constructor and Description |
---|
PrintJobAttributeEvent(DocPrintJob source,
PrintJobAttributeSet attributes)
Constructs a
PrintJobAttributeEvent object. |
Modifier and Type | Method and Description |
---|---|
PrintJobAttributeSet |
getAttributes()
Returns the attributes that changed and their new values.
|
DocPrintJob |
getPrintJob()
Returns the print job generating this event.
|
toString
getSource
public PrintJobAttributeEvent(DocPrintJob source, PrintJobAttributeSet attributes)
PrintJobAttributeEvent
object.source
- the source of this eventattributes
- the attribute changes being reportedpublic DocPrintJob getPrintJob()
public PrintJobAttributeSet getAttributes()