- java.lang.Object
-
- javax.print.event.PrintJobAdapter
-
- All Implemented Interfaces:
- PrintJobListener
public abstract class PrintJobAdapter extends Object implements PrintJobListener
An abstract adapter class for receiving print job events. The methods in this class are empty. This class exists as a convenience for creating listener objects. Extend this class to create aPrintJobEvent
listener and override the methods for the events of interest. Unlike theComponentListener
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 Summary
Constructors Constructor and Description PrintJobAdapter()
-
Method Summary
Methods Modifier and Type Method and Description void
printDataTransferCompleted(PrintJobEvent pje)
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 pje)
Called to notify the client that the job was canceled by user or program.void
printJobCompleted(PrintJobEvent pje)
Called to notify the client that the job completed successfully.void
printJobFailed(PrintJobEvent pje)
Called to notify the client that the job failed to complete successfully and will have to be resubmitted.void
printJobNoMoreEvents(PrintJobEvent pje)
Called to notify the client that no more events will be delivered.void
printJobRequiresAttention(PrintJobEvent pje)
Called to notify the client that some possibly user rectifiable problem occurs (eg printer out of paper).
-
-
-
Method Detail
-
printDataTransferCompleted
public void printDataTransferCompleted(PrintJobEvent pje)
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.- Specified by:
printDataTransferCompleted
in interfacePrintJobListener
- Parameters:
pje
- the event being notified
-
printJobCompleted
public void printJobCompleted(PrintJobEvent pje)
Called to notify the client that the job completed successfully.- Specified by:
printJobCompleted
in interfacePrintJobListener
- Parameters:
pje
- the event being notified
-
printJobFailed
public void printJobFailed(PrintJobEvent pje)
Called to notify the client that the job failed to complete successfully and will have to be resubmitted.- Specified by:
printJobFailed
in interfacePrintJobListener
- Parameters:
pje
- the event being notified
-
printJobCanceled
public void printJobCanceled(PrintJobEvent pje)
Called to notify the client that the job was canceled by user or program.- Specified by:
printJobCanceled
in interfacePrintJobListener
- Parameters:
pje
- the event being notified
-
printJobNoMoreEvents
public void printJobNoMoreEvents(PrintJobEvent pje)
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.- Specified by:
printJobNoMoreEvents
in interfacePrintJobListener
- Parameters:
pje
- the event being notified
-
printJobRequiresAttention
public void printJobRequiresAttention(PrintJobEvent pje)
Called to notify the client that some possibly user rectifiable problem occurs (eg printer out of paper).- Specified by:
printJobRequiresAttention
in interfacePrintJobListener
- Parameters:
pje
- the event being notified
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
21/11/2024 21:29:00 Cette version de la page est en cache (à la date du 21/11/2024 21:29:00) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.Document créé le 30/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/print/event/printjobadapter.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.