javax.print.event
Class PrintJobAttributeEvent
java.lang.Object
java.util.EventObject
javax.print.event.PrintEvent
javax.print.event.PrintJobAttributeEvent
- All Implemented Interfaces:
- Serializable
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.
- See Also:
- Serialized Form
PrintJobAttributeEvent
public PrintJobAttributeEvent(DocPrintJob source,
PrintJobAttributeSet attributes)
- Constructs a
PrintJobAttributeEvent
object.
- Parameters:
source
- the source of this eventattributes
- the attribute changes being reported
getPrintJob
public DocPrintJob getPrintJob()
- Returns the print job generating this event.
- Returns:
- The print job.
getAttributes
public PrintJobAttributeSet getAttributes()
- Returns the attributes that changed and their new values.
- Returns:
- The changed attributes.