javax.print.event
Class PrintJobAttributeEvent

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject 
      extended by javax.print.event.PrintEvent sample code for javax.print.event.PrintEvent definition code for javax.print.event.PrintEvent 
          extended by javax.print.event.PrintJobAttributeEvent
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class PrintJobAttributeEvent
extends PrintEvent sample code for javax.print.event.PrintEvent definition code for javax.print.event.PrintEvent

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
source sample code for java.util.EventObject.source definition code for java.util.EventObject.source
 
Constructor Summary
PrintJobAttributeEvent sample code for javax.print.event.PrintJobAttributeEvent.PrintJobAttributeEvent(javax.print.DocPrintJob, javax.print.attribute.PrintJobAttributeSet) definition code for javax.print.event.PrintJobAttributeEvent.PrintJobAttributeEvent(javax.print.DocPrintJob, javax.print.attribute.PrintJobAttributeSet) (DocPrintJob sample code for javax.print.DocPrintJob definition code for javax.print.DocPrintJob  source, PrintJobAttributeSet sample code for javax.print.attribute.PrintJobAttributeSet definition code for javax.print.attribute.PrintJobAttributeSet  attributes)
          Constructs a PrintJobAttributeEvent object.
 
Method Summary
 PrintJobAttributeSet sample code for javax.print.attribute.PrintJobAttributeSet definition code for javax.print.attribute.PrintJobAttributeSet getAttributes sample code for javax.print.event.PrintJobAttributeEvent.getAttributes() definition code for javax.print.event.PrintJobAttributeEvent.getAttributes() ()
          Determine the printing attributes that changed and their new values.
 DocPrintJob sample code for javax.print.DocPrintJob definition code for javax.print.DocPrintJob getPrintJob sample code for javax.print.event.PrintJobAttributeEvent.getPrintJob() definition code for javax.print.event.PrintJobAttributeEvent.getPrintJob() ()
          Determine the Print Job to which this print job event pertains.
 
Methods inherited from class javax.print.event.PrintEvent sample code for javax.print.event.PrintEvent definition code for javax.print.event.PrintEvent
toString sample code for javax.print.event.PrintEvent.toString() definition code for javax.print.event.PrintEvent.toString()
 
Methods inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
getSource sample code for java.util.EventObject.getSource() definition code for java.util.EventObject.getSource()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

PrintJobAttributeEvent sample code for javax.print.event.PrintJobAttributeEvent(javax.print.DocPrintJob, javax.print.attribute.PrintJobAttributeSet) definition code for javax.print.event.PrintJobAttributeEvent(javax.print.DocPrintJob, javax.print.attribute.PrintJobAttributeSet)

public PrintJobAttributeEvent(DocPrintJob sample code for javax.print.DocPrintJob definition code for javax.print.DocPrintJob  source,
                              PrintJobAttributeSet sample code for javax.print.attribute.PrintJobAttributeSet definition code for javax.print.attribute.PrintJobAttributeSet  attributes)
Constructs a PrintJobAttributeEvent object.

Parameters:
source - the print job generating this event
attributes - the attribute changes being reported
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if source is null.
Method Detail

getPrintJob sample code for javax.print.event.PrintJobAttributeEvent.getPrintJob() definition code for javax.print.event.PrintJobAttributeEvent.getPrintJob()

public DocPrintJob sample code for javax.print.DocPrintJob definition code for javax.print.DocPrintJob  getPrintJob()
Determine the Print Job to which this print job event pertains.

Returns:
Print Job object.

getAttributes sample code for javax.print.event.PrintJobAttributeEvent.getAttributes() definition code for javax.print.event.PrintJobAttributeEvent.getAttributes()

public PrintJobAttributeSet sample code for javax.print.attribute.PrintJobAttributeSet definition code for javax.print.attribute.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.