javax.print.event
Interface PrintJobListener

All Known Implementing Classes:
PrintJobAdapter

public interface PrintJobListener

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

See Also:
PrintJobAdapter

Method Summary
 void printDataTransferCompleted(PrintJobEvent event)
          Notifies the listener that all data has been successfully transferred to the print service.
 void printJobCanceled(PrintJobEvent event)
          Notifies the listener that a print job got canceled.
 void printJobCompleted(PrintJobEvent event)
          Notifies the listener that a print job has completed.
 void printJobFailed(PrintJobEvent event)
          Notifies the listener that a print job has failed to complete.
 void printJobNoMoreEvents(PrintJobEvent event)
          Notifies the listener that no more events will be delivered.
 void printJobRequiresAttention(PrintJobEvent event)
          Notifies the listener that a problem occured during printing.
 

Method Detail

printDataTransferCompleted

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

Parameters:
event - the event

printJobCanceled

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

Parameters:
event - the event

printJobCompleted

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

Parameters:
event - the event

printJobFailed

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

Parameters:
event - the event.

printJobNoMoreEvents

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

Parameters:
event - the event

printJobRequiresAttention

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