PrintJobEvent encapsulates common events a print job reports to
let a listener know of progress in the processing of the DocPrintJob.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DATA_TRANSFER_COMPLETE
The job is not necessarily printed yet, but the data has been transferred successfully from the client to the print service. |
| public static final int | JOB_CANCELED
The job was canceled by the
|
| public static final int | JOB_COMPLETE
The document is completely printed. |
| public static final int | JOB_FAILED
The print service reports that the job cannot be completed. |
| public static final int | NO_MORE_EVENTS
Not all print services may be capable of delivering interesting events, or even telling when a job is complete. |
| private int | |
| public static final int | REQUIRES_ATTENTION
The print service indicates that a - possibly transient - problem may require external intervention before the print service can continue. |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.4 for interoperability.
|
| Access | Constructor and Description |
|---|---|
| public | PrintJobEvent(DocPrintJob
a source, int DocPrintJob objectan int specifying the reason reason)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public DocPrintJob | Returns: theDocPrintJob object that represents the print job that
reports the events encapsulated by this PrintJobEventDetermines the |
| DATA_TRANSFER_COMPLETE | back to summary |
|---|---|
| public static final int DATA_TRANSFER_COMPLETE The job is not necessarily printed yet, but the data has been transferred successfully from the client to the print service. The client may free data resources. | |
| JOB_CANCELED | back to summary |
|---|---|
| public static final int JOB_CANCELED The job was canceled by the
| |
| JOB_COMPLETE | back to summary |
|---|---|
| public static final int JOB_COMPLETE The document is completely printed. | |
| JOB_FAILED | back to summary |
|---|---|
| public static final int JOB_FAILED The print service reports that the job cannot be completed. The application must resubmit the job. | |
| NO_MORE_EVENTS | back to summary |
|---|---|
| public static final int NO_MORE_EVENTS Not all print services may be capable of delivering interesting events,
or even telling when a job is complete. This message indicates the print
job has no further information or communication with the print service.
This message should always be delivered if a terminal event
(completed/failed/canceled) is not delivered. For example, if messages
such as | |
| reason | back to summary |
|---|---|
| private int reason | |
| REQUIRES_ATTENTION | back to summary |
|---|---|
| public static final int REQUIRES_ATTENTION The print service indicates that a - possibly transient - problem may require external intervention before the print service can continue. One example of an event that can generate this message is when the printer runs out of paper. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. Use serialVersionUID from JDK 1.4 for interoperability. | |
| PrintJobEvent | back to summary |
|---|---|
| public PrintJobEvent(DocPrintJob source, int reason) Constructs a
| |
| getPrintEventType | back to summary |
|---|---|
| public int getPrintEventType() Gets the reason for this event.
| |
| getPrintJob | back to summary |
|---|---|
| public DocPrintJob getPrintJob() Determines the
| |