javax.print.event

Interface PrintJobListener

public interface PrintJobListener

Listener interface to receive processing events from a print job. Implementations of this interface can be registered with a {@link javax.print.DocPrintJob} instance.

See Also:

Method Summary
voidprintDataTransferCompleted(PrintJobEvent event)
Notifies the listener that all data has been successfully transferred to the print service.
voidprintJobCanceled(PrintJobEvent event)
Notifies the listener that a print job got canceled.
voidprintJobCompleted(PrintJobEvent event)
Notifies the listener that a print job has completed.
voidprintJobFailed(PrintJobEvent event)
Notifies the listener that a print job has failed to complete.
voidprintJobNoMoreEvents(PrintJobEvent event)
Notifies the listener that no more events will be delivered.
voidprintJobRequiresAttention(PrintJobEvent event)
Notifies the listener that a problem occured during printing.

Method Detail

printDataTransferCompleted

public void printDataTransferCompleted(PrintJobEvent event)
Notifies the listener that all data has been successfully transferred to the print service.

Parameters: event the event

printJobCanceled

public void printJobCanceled(PrintJobEvent event)
Notifies the listener that a print job got canceled.

Parameters: event the event

printJobCompleted

public void printJobCompleted(PrintJobEvent event)
Notifies the listener that a print job has completed.

Parameters: event the event

printJobFailed

public void printJobFailed(PrintJobEvent event)
Notifies the listener that a print job has failed to complete.

Parameters: event the event.

printJobNoMoreEvents

public void printJobNoMoreEvents(PrintJobEvent event)
Notifies the listener that no more events will be delivered.

Parameters: event the event

printJobRequiresAttention

public void printJobRequiresAttention(PrintJobEvent event)
Notifies the listener that a problem occured during printing. This event signals problems a user might be able to fix (e.g. out of paper or paper jam).

Parameters: event the event