javax.print.event
Class PrintJobAdapter

java.lang.Object
  extended by javax.print.event.PrintJobAdapter
All Implemented Interfaces:
PrintJobListener

public abstract class PrintJobAdapter
extends Object
implements PrintJobListener

Adapter class for implementing PrintJobListener classes. The methods in this class do nothing by default. Subclasses may only implement the methods for the PrintJobEvents they are interested in.


Constructor Summary
PrintJobAdapter()
          Constructs a PrintJobAdapter object.
 
Method Summary
 void printDataTransferCompleted(PrintJobEvent event)
          Called to notify the client that all data has been successfully transferred to the print service.
 void printJobCanceled(PrintJobEvent event)
          Called to notify the client that a print job was canceled.
 void printJobCompleted(PrintJobEvent event)
          Called to notify the client that a print job was successfully completed.
 void printJobFailed(PrintJobEvent event)
          Called to notify the client that a print job failed to complete successfully.
 void printJobNoMoreEvents(PrintJobEvent event)
          Called to notify the client that no more job events will be send.
 void printJobRequiresAttention(PrintJobEvent event)
          Called to notify the client that a problem occured during printing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Specified by:
printDataTransferCompleted in interface PrintJobListener
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.

Specified by:
printJobCanceled in interface PrintJobListener
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.

Specified by:
printJobCompleted in interface PrintJobListener
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.

Specified by:
printJobFailed in interface PrintJobListener
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.

Specified by:
printJobNoMoreEvents in interface PrintJobListener
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.

Specified by:
printJobRequiresAttention in interface PrintJobListener
Parameters:
event - the event.