PrintJobEvent listener and
override the methods for the events of interest. Unlike the
ComponentListener interface, this
abstract interface provides empty methods so that you only need to define the
methods you need, rather than all of the methods.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | printDataTransferCompleted(PrintJobEvent
the event being notified pje)Implements javax. Called to notify the client that data has been successfully transferred to the print service, and the client may free local resources allocated for that data. |
| public void | printJobCanceled(PrintJobEvent
the event being notified pje)Implements javax. Called to notify the client that the job was canceled by user or program. |
| public void | printJobCompleted(PrintJobEvent
the event being notified pje)Implements javax. Called to notify the client that the job completed successfully. |
| public void | printJobFailed(PrintJobEvent
the event being notified pje)Implements javax. Called to notify the client that the job failed to complete successfully and will have to be resubmitted. |
| public void | printJobNoMoreEvents(PrintJobEvent
the event being notified pje)Implements javax. Called to notify the client that no more events will be delivered. |
| public void | printJobRequiresAttention(PrintJobEvent
the event being notified pje)Implements javax. Called to notify the client that some possibly user rectifiable problem occurs (eg printer out of paper). |
| PrintJobAdapter | back to summary |
|---|---|
| protected PrintJobAdapter() Constructor for subclasses to call. | |
| printDataTransferCompleted | back to summary |
|---|---|
| public void printDataTransferCompleted(PrintJobEvent pje) Implements javax. Called to notify the client that data has been successfully transferred to the print service, and the client may free local resources allocated for that data. The client should not assume that the data has been completely printed after receiving this event.
| |
| printJobCanceled | back to summary |
|---|---|
| public void printJobCanceled(PrintJobEvent pje) Implements javax. Called to notify the client that the job was canceled by user or program.
| |
| printJobCompleted | back to summary |
|---|---|
| public void printJobCompleted(PrintJobEvent pje) Implements javax. Called to notify the client that the job completed successfully.
| |
| printJobFailed | back to summary |
|---|---|
| public void printJobFailed(PrintJobEvent pje) Implements javax. Called to notify the client that the job failed to complete successfully and will have to be resubmitted.
| |
| printJobNoMoreEvents | back to summary |
|---|---|
| public void printJobNoMoreEvents(PrintJobEvent pje) Implements javax. Called to notify the client that no more events will be delivered. One cause of this event being generated is if the job has successfully completed, but the printing system is limited in capability and cannot verify this. This event is required to be delivered if none of the other terminal events (completed/failed/canceled) are delivered.
| |
| printJobRequiresAttention | back to summary |
|---|---|
| public void printJobRequiresAttention(PrintJobEvent pje) Implements javax. Called to notify the client that some possibly user rectifiable problem occurs (eg printer out of paper).
| |