1 7 8 package javax.print.event; 9 10 import java.util.List ; 11 import javax.print.PrintService ; 12 import javax.print.attribute.AttributeSetUtilities ; 13 import javax.print.attribute.PrintServiceAttributeSet ; 14 15 21 22 public class PrintServiceAttributeEvent extends PrintEvent { 23 24 private static final long serialVersionUID = -7565987018140326600L; 25 26 private PrintServiceAttributeSet attributes; 27 28 36 public PrintServiceAttributeEvent(PrintService source, 37 PrintServiceAttributeSet attributes) { 38 39 super(source); 40 this.attributes = AttributeSetUtilities.unmodifiableView(attributes); 41 } 42 43 44 49 public PrintService getPrintService() { 50 51 return (PrintService ) getSource(); 52 } 53 54 55 62 public PrintServiceAttributeSet getAttributes() { 63 64 return attributes; 65 } 66 67 } 68 | Popular Tags |