javax.print.event
Class PrintServiceAttributeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.print.event.PrintEvent
          extended by javax.print.event.PrintServiceAttributeEvent
All Implemented Interfaces:
Serializable

public class PrintServiceAttributeEvent
extends PrintEvent

PrintServiceAttributeEvents are generated by a PrintService to inform registered listeners that its associated attributes have changed.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PrintServiceAttributeEvent(PrintService source, PrintServiceAttributeSet attributes)
          Constructs a PrintServiceAttributeEvent object.
 
Method Summary
 PrintServiceAttributeSet getAttributes()
          Returns the changed attributes this event reports.
 PrintService getPrintService()
          Returns the print service that generated this event.
 
Methods inherited from class javax.print.event.PrintEvent
toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrintServiceAttributeEvent

public PrintServiceAttributeEvent(PrintService source,
                                  PrintServiceAttributeSet attributes)
Constructs a PrintServiceAttributeEvent object.

Parameters:
source - the source of this event
attributes - the attribute changes being reported
Method Detail

getPrintService

public PrintService getPrintService()
Returns the print service that generated this event.

Returns:
The print service.

getAttributes

public PrintServiceAttributeSet getAttributes()
Returns the changed attributes this event reports.

Returns:
The changed attributes.