javax.print.event
Class PrintServiceAttributeEvent

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.PrintServiceAttributeEvent
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

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

Class PrintServiceAttributeEvent encapsulates an event a Print Service instance reports to let the client know of changes in the print service state.

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
PrintServiceAttributeEvent sample code for javax.print.event.PrintServiceAttributeEvent.PrintServiceAttributeEvent(javax.print.PrintService, javax.print.attribute.PrintServiceAttributeSet) definition code for javax.print.event.PrintServiceAttributeEvent.PrintServiceAttributeEvent(javax.print.PrintService, javax.print.attribute.PrintServiceAttributeSet) (PrintService sample code for javax.print.PrintService definition code for javax.print.PrintService  source, PrintServiceAttributeSet sample code for javax.print.attribute.PrintServiceAttributeSet definition code for javax.print.attribute.PrintServiceAttributeSet  attributes)
          Constructs a PrintServiceAttributeEvent object.
 
Method Summary
 PrintServiceAttributeSet sample code for javax.print.attribute.PrintServiceAttributeSet definition code for javax.print.attribute.PrintServiceAttributeSet getAttributes sample code for javax.print.event.PrintServiceAttributeEvent.getAttributes() definition code for javax.print.event.PrintServiceAttributeEvent.getAttributes() ()
          Determine the printing service attributes that changed and their new values.
 PrintService sample code for javax.print.PrintService definition code for javax.print.PrintService getPrintService sample code for javax.print.event.PrintServiceAttributeEvent.getPrintService() definition code for javax.print.event.PrintServiceAttributeEvent.getPrintService() ()
          Returns the print service.
 
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

PrintServiceAttributeEvent sample code for javax.print.event.PrintServiceAttributeEvent(javax.print.PrintService, javax.print.attribute.PrintServiceAttributeSet) definition code for javax.print.event.PrintServiceAttributeEvent(javax.print.PrintService, javax.print.attribute.PrintServiceAttributeSet)

public PrintServiceAttributeEvent(PrintService sample code for javax.print.PrintService definition code for javax.print.PrintService  source,
                                  PrintServiceAttributeSet sample code for javax.print.attribute.PrintServiceAttributeSet definition code for javax.print.attribute.PrintServiceAttributeSet  attributes)
Constructs a PrintServiceAttributeEvent 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

getPrintService sample code for javax.print.event.PrintServiceAttributeEvent.getPrintService() definition code for javax.print.event.PrintServiceAttributeEvent.getPrintService()

public PrintService sample code for javax.print.PrintService definition code for javax.print.PrintService  getPrintService()
Returns the print service.

Returns:
Print Service object.

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

public PrintServiceAttributeSet sample code for javax.print.attribute.PrintServiceAttributeSet definition code for javax.print.attribute.PrintServiceAttributeSet  getAttributes()
Determine the printing service attributes that changed and their new values.

Returns:
Attributes containing the new values for the service attributes that changed. The returned set may be unmodifiable.