FileDocCategorySizeDatePackage
PrintServiceAttributeEvent.javaAPI DocJava SE 5 API1803Fri Aug 26 14:57:46 BST 2005javax.print.event

PrintServiceAttributeEvent

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

Fields Summary
private static final long
serialVersionUID
private PrintServiceAttributeSet
attributes
Constructors Summary
public PrintServiceAttributeEvent(PrintService source, PrintServiceAttributeSet attributes)
Constructs a PrintServiceAttributeEvent object.

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


                                           
      
                                        

        super(source);
        this.attributes = AttributeSetUtilities.unmodifiableView(attributes);
    
Methods Summary
public javax.print.attribute.PrintServiceAttributeSetgetAttributes()
Determine the printing service attributes that changed and their new values.

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


	return attributes;
    
public javax.print.PrintServicegetPrintService()
Returns the print service.

return
Print Service object.

 
    	return (PrintService) getSource();