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

PrintJobAttributeEvent

public class PrintJobAttributeEvent extends 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.

Fields Summary
private static final long
serialVersionUID
private PrintJobAttributeSet
attributes
Constructors Summary
public PrintJobAttributeEvent(DocPrintJob source, PrintJobAttributeSet attributes)
Constructs a PrintJobAttributeEvent 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.PrintJobAttributeSetgetAttributes()
Determine the printing attributes that changed and their new values.

return
Attributes containing the new values for the print job attributes that changed. The returned set may not be modifiable.


	return attributes;

    
public javax.print.DocPrintJobgetPrintJob()
Determine the Print Job to which this print job event pertains.

return
Print Job object.

	

    	return (DocPrintJob) getSource();