javax.print.event

Class PrintJobAdapter

public abstract class PrintJobAdapter extends Object implements PrintJobListener

Adapter class for implementing {@link javax.print.event.PrintJobListener} classes. The methods in this class do nothing by default. Subclasses may only implement the methods for the {@link javax.print.event.PrintJobEvent}s they are interested in.
Constructor Summary
PrintJobAdapter()
Constructs a PrintJobAdapter object.
Method Summary
voidprintDataTransferCompleted(PrintJobEvent event)
Called to notify the client that all data has been successfully transferred to the print service.
voidprintJobCanceled(PrintJobEvent event)
Called to notify the client that a print job was canceled.
voidprintJobCompleted(PrintJobEvent event)
Called to notify the client that a print job was successfully completed.
voidprintJobFailed(PrintJobEvent event)
Called to notify the client that a print job failed to complete successfully.
voidprintJobNoMoreEvents(PrintJobEvent event)
Called to notify the client that no more job events will be send.
voidprintJobRequiresAttention(PrintJobEvent event)
Called to notify the client that a problem occured during printing.

Constructor Detail

PrintJobAdapter

public PrintJobAdapter()
Constructs a PrintJobAdapter object.

Method Detail

printDataTransferCompleted

public void printDataTransferCompleted(PrintJobEvent event)
Called to notify the client that all data has been successfully transferred to the print service.

The default implementation does nothing.

Parameters: event the event.

printJobCanceled

public void printJobCanceled(PrintJobEvent event)
Called to notify the client that a print job was canceled.

The default implementation does nothing.

Parameters: event the event.

printJobCompleted

public void printJobCompleted(PrintJobEvent event)
Called to notify the client that a print job was successfully completed.

The default implementation does nothing.

Parameters: event the event.

printJobFailed

public void printJobFailed(PrintJobEvent event)
Called to notify the client that a print job failed to complete successfully.

The default implementation does nothing.

Parameters: event the event.

printJobNoMoreEvents

public void printJobNoMoreEvents(PrintJobEvent event)
Called to notify the client that no more job events will be send.

The default implementation does nothing.

Parameters: event the event.

printJobRequiresAttention

public void printJobRequiresAttention(PrintJobEvent event)
Called to notify the client 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).

The default implementation does nothing.

Parameters: event the event.