1 7 8 package javax.print.event; 9 10 import javax.print.DocPrintJob ; 11 12 19 20 public class PrintJobEvent extends PrintEvent { 21 22 private static final long serialVersionUID = -1711656903622072997L; 23 24 private int reason; 25 26 29 public static final int JOB_CANCELED = 101; 30 31 34 public static final int JOB_COMPLETE = 102; 35 36 40 41 public static final int JOB_FAILED = 103; 42 43 49 public static final int REQUIRES_ATTENTION = 104; 50 51 61 public static final int NO_MORE_EVENTS = 105; 62 63 68 public static final int DATA_TRANSFER_COMPLETE = 106; 69 70 78 79 public PrintJobEvent( DocPrintJob source, int reason) { 80 81 super(source); 82 this.reason = reason; 83 } 84 85 89 public int getPrintEventType() { 90 return reason; 91 } 92 93 102 public DocPrintJob getPrintJob() { 103 return (DocPrintJob ) getSource(); 104 } 105 106 107 } 108 | Popular Tags |