PrintJobListener
public abstract class PrintJobAdapter extends Object implements PrintJobListener
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.Modifier | Constructor | Description |
---|---|---|
protected |
Constructor for subclasses to call. |
Modifier and Type | Method | Description |
---|---|---|
void |
printDataTransferCompleted |
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 |
Called to notify the client that the job was canceled by user or program. |
void |
printJobCompleted |
Called to notify the client that the job completed successfully. |
void |
printJobFailed |
Called to notify the client that the job failed to complete successfully and will have to be resubmitted. |
void |
printJobNoMoreEvents |
Called to notify the client that no more events will be delivered. |
void |
printJobRequiresAttention |
Called to notify the client that some possibly user rectifiable problem occurs (eg printer out of paper). |
protected PrintJobAdapter()
public void printDataTransferCompleted(PrintJobEvent pje)
printDataTransferCompleted
in interface PrintJobListener
pje
- the event being notifiedpublic void printJobCompleted(PrintJobEvent pje)
printJobCompleted
in interface PrintJobListener
pje
- the event being notifiedpublic void printJobFailed(PrintJobEvent pje)
printJobFailed
in interface PrintJobListener
pje
- the event being notifiedpublic void printJobCanceled(PrintJobEvent pje)
printJobCanceled
in interface PrintJobListener
pje
- the event being notifiedpublic void printJobNoMoreEvents(PrintJobEvent pje)
printJobNoMoreEvents
in interface PrintJobListener
pje
- the event being notifiedpublic void printJobRequiresAttention(PrintJobEvent pje)
printJobRequiresAttention
in interface PrintJobListener
pje
- the event being notified
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/print/event/PrintJobAdapter.html