javax.print.event
public class PrintJobEvent extends PrintEvent
PrintJobEvents are generated by a print job during
print job processing to inform registered listeners about the state
of processing.
| Field Summary | |
|---|---|
| static int | DATA_TRANSFER_COMPLETE Indicates that the data transfer to the print service has completed. |
| static int | JOB_CANCELED Indicates that the print job was canceled. |
| static int | JOB_COMPLETE Indicates that the print job was completed (=printed). |
| static int | JOB_FAILED Indicates that the print job failed to complete. |
| static int | NO_MORE_EVENTS Indicates that no more job events will be send. |
| static int | REQUIRES_ATTENTION
Indicates a situation where human intervention might be needed.
|
| Constructor Summary | |
|---|---|
| PrintJobEvent(DocPrintJob source, int reason)
Constructs a PrintJobEvent object.
| |
| Method Summary | |
|---|---|
| int | getPrintEventType()
Returns the reason for this event.
|
| DocPrintJob | getPrintJob()
Returns the print job that generated this event.
|
PrintJobEvent object.
Parameters: source the source generating this event reason the reason for this event
Returns: The reason.
Returns: The print job.