1 7 8 package javax.print.event; 9 10 import javax.print.DocPrintJob ; 11 import javax.print.attribute.AttributeSetUtilities ; 12 import javax.print.attribute.PrintJobAttributeSet ; 13 14 19 20 public class PrintJobAttributeEvent extends PrintEvent { 21 22 private static final long serialVersionUID = -6534469883874742101L; 23 24 private PrintJobAttributeSet attributes; 25 26 33 public PrintJobAttributeEvent (DocPrintJob source, 34 PrintJobAttributeSet attributes) { 35 super(source); 36 37 this.attributes = AttributeSetUtilities.unmodifiableView(attributes); 38 } 39 40 41 46 public DocPrintJob getPrintJob() { 47 48 return (DocPrintJob ) getSource(); 49 } 50 51 52 58 public PrintJobAttributeSet getAttributes() { 59 60 return attributes; 61 62 } 63 64 } 65 | Popular Tags |