public class

PrintJobAttributeEvent

extends PrintEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ javax.print.event.PrintEvent
       ↳ javax.print.event.PrintJobAttributeEvent

Class Overview

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

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
PrintJobAttributeEvent(DocPrintJob source, PrintJobAttributeSet attributes)
Constructs a PrintJobAttributeEvent object.
Public Methods
PrintJobAttributeSet getAttributes()
Determine the printing attributes that changed and their new values.
DocPrintJob getPrintJob()
Determine the Print Job to which this print job event pertains.
[Expand]
Inherited Methods
From class javax.print.event.PrintEvent
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public PrintJobAttributeEvent (DocPrintJob source, PrintJobAttributeSet attributes)

Constructs a PrintJobAttributeEvent object.

Parameters
source the print job generating this event
attributes the attribute changes being reported
Throws
IllegalArgumentException if source is null.

Public Methods

public PrintJobAttributeSet getAttributes ()

Determine the printing attributes that changed and their new values.

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

public DocPrintJob getPrintJob ()

Determine the Print Job to which this print job event pertains.

Returns
  • Print Job object.