< prev index next >

src/java.desktop/share/classes/javax/print/CancelablePrintJob.java

Print this page

        

*** 26,45 **** package javax.print; /** * This interface is used by a printing application to cancel a * print job. This interface extends {@link DocPrintJob}. A ! * <code>DocPrintJob</code> implementation returned from a print * service implements this interface if the print job can be * cancelled. Before trying to cancel * a print job, the client needs to test if the ! * <code>DocPrintJob</code> object returned from the print service * actually implements this interface. Clients should never assume ! * that a <code>DocPrintJob</code> implements this interface. A * print service might support cancellation only for certain types * of print data and representation class names. This means that ! * only some of the <code>DocPrintJob</code> objects returned from * a service will implement this interface. * <p> * Service implementors are encouraged to implement this optional interface * and to deliver a javax.print.event.PrintJobEvent.JOB_CANCELLED event * to any listeners if a job is successfully cancelled with an --- 26,45 ---- package javax.print; /** * This interface is used by a printing application to cancel a * print job. This interface extends {@link DocPrintJob}. A ! * {@code DocPrintJob} implementation returned from a print * service implements this interface if the print job can be * cancelled. Before trying to cancel * a print job, the client needs to test if the ! * {@code DocPrintJob} object returned from the print service * actually implements this interface. Clients should never assume ! * that a {@code DocPrintJob} implements this interface. A * print service might support cancellation only for certain types * of print data and representation class names. This means that ! * only some of the {@code DocPrintJob} objects returned from * a service will implement this interface. * <p> * Service implementors are encouraged to implement this optional interface * and to deliver a javax.print.event.PrintJobEvent.JOB_CANCELLED event * to any listeners if a job is successfully cancelled with an
< prev index next >