< prev index next >
src/java.desktop/share/classes/javax/print/event/PrintJobEvent.java
Print this page
*** 27,37 ****
import javax.print.DocPrintJob;
/**
*
! * Class <code>PrintJobEvent</code> encapsulates common events a print job
* reports to let a listener know of progress in the processing of the
* {@link DocPrintJob}.
*
*/
--- 27,37 ----
import javax.print.DocPrintJob;
/**
*
! * Class {@code PrintJobEvent} encapsulates common events a print job
* reports to let a listener know of progress in the processing of the
* {@link DocPrintJob}.
*
*/
*** 84,99 ****
* free data resources.
*/
public static final int DATA_TRANSFER_COMPLETE = 106;
/**
! * Constructs a <code>PrintJobEvent</code> object.
*
! * @param source a <code>DocPrintJob</code> object
* @param reason an int specifying the reason.
! * @throws IllegalArgumentException if <code>source</code> is
! * <code>null</code>.
*/
public PrintJobEvent( DocPrintJob source, int reason) {
super(source);
--- 84,99 ----
* free data resources.
*/
public static final int DATA_TRANSFER_COMPLETE = 106;
/**
! * Constructs a {@code PrintJobEvent} object.
*
! * @param source a {@code DocPrintJob} object
* @param reason an int specifying the reason.
! * @throws IllegalArgumentException if {@code source} is
! * {@code null}.
*/
public PrintJobEvent( DocPrintJob source, int reason) {
super(source);
*** 107,122 ****
public int getPrintEventType() {
return reason;
}
/**
! * Determines the <code>DocPrintJob</code> to which this print job
* event pertains.
*
! * @return the <code>DocPrintJob</code> object that represents the
* print job that reports the events encapsulated by this
! * <code>PrintJobEvent</code>.
*
*/
public DocPrintJob getPrintJob() {
return (DocPrintJob) getSource();
}
--- 107,122 ----
public int getPrintEventType() {
return reason;
}
/**
! * Determines the {@code DocPrintJob} to which this print job
* event pertains.
*
! * @return the {@code DocPrintJob} object that represents the
* print job that reports the events encapsulated by this
! * {@code PrintJobEvent}.
*
*/
public DocPrintJob getPrintJob() {
return (DocPrintJob) getSource();
}
< prev index next >