public abstract class PrintJobAdapter extends Objectimplements PrintJobListener
PrintJobEvent listener and override the methods for the events of interest. Unlike the
ComponentListener interface, this abstract interface provides null methods so that you only need to define the methods you need, rather than all of the methods.
| Constructor and Description |
|---|
PrintJobAdapter()
|
| Modifier and Type | Method and Description |
|---|---|
void |
printDataTransferCompleted(PrintJobEvent
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.
|
void |
printJobCanceled(PrintJobEvent
Called to notify the client that the job was canceled by user or program.
|
void |
printJobCompleted(PrintJobEvent
Called to notify the client that the job completed successfully.
|
void |
printJobFailed(PrintJobEvent
Called to notify the client that the job failed to complete successfully and will have to be resubmitted.
|
void |
printJobNoMoreEvents(PrintJobEvent
Called to notify the client that no more events will be delivered.
|
void |
printJobRequiresAttention(PrintJobEvent
Called to notify the client that some possibly user rectifiable problem occurs (eg printer out of paper).
|
public void printDataTransferCompleted(PrintJobEventpje)
printDataTransferCompleted in interface
PrintJobListener
pje - the event being notified
public void printJobCompleted(PrintJobEventpje)
printJobCompleted in interface
PrintJobListener
pje - the event being notified
public void printJobFailed(PrintJobEventpje)
printJobFailed in interface
PrintJobListener
pje - the event being notified
public void printJobCanceled(PrintJobEventpje)
printJobCanceled in interface
PrintJobListener
pje - the event being notified
public void printJobNoMoreEvents(PrintJobEventpje)
printJobNoMoreEvents in interface
PrintJobListener
pje - the event being notified
public void printJobRequiresAttention(PrintJobEventpje)
printJobRequiresAttention in interface
PrintJobListener
pje - the event being notified