javax.print.event

Class PrintServiceAttributeEvent

public class PrintServiceAttributeEvent extends PrintEvent

PrintServiceAttributeEvents are generated by a PrintService to inform registered listeners that its associated attributes have changed.
Constructor Summary
PrintServiceAttributeEvent(PrintService source, PrintServiceAttributeSet attributes)
Constructs a PrintServiceAttributeEvent object.
Method Summary
PrintServiceAttributeSetgetAttributes()
Returns the changed attributes this event reports.
PrintServicegetPrintService()
Returns the print service that generated this event.

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

getAttributes

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

Returns: The changed attributes.

getPrintService

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

Returns: The print service.