org.fopps.printing
Class DefaultPrintJobListener

java.lang.Object
  |
  +--org.fopps.printing.DefaultPrintJobListener
All Implemented Interfaces:
javax.print.event.PrintJobListener

public class DefaultPrintJobListener
extends java.lang.Object
implements javax.print.event.PrintJobListener

DefaultPrintJobListener provides a simple print job listener.

Author:
Oliver Wieland

Constructor Summary
DefaultPrintJobListener()
           
 
Method Summary
 void printDataTransferCompleted(javax.print.event.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(javax.print.event.PrintJobEvent pje)
          Called to notify the client that the job was canceled by a user or a program.
 void printJobCompleted(javax.print.event.PrintJobEvent pje)
          Called to notify the client that the job completed successfully.
 void printJobFailed(javax.print.event.PrintJobEvent pje)
          Called to notify the client that the job failed to complete successfully and will have to be resubmitted.
 void printJobNoMoreEvents(javax.print.event.PrintJobEvent pje)
          Called to notify the client that no more events will be delivered.
 void printJobRequiresAttention(javax.print.event.PrintJobEvent pje)
          Called to notify the client that an error has occurred that the user might be able to fix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPrintJobListener

public DefaultPrintJobListener()
Method Detail

printDataTransferCompleted

public void printDataTransferCompleted(javax.print.event.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. If this event is not received the client should wait for a terminal event (completed/canceled/failed) before freeing the resources.

Specified by:
printDataTransferCompleted in interface javax.print.event.PrintJobListener
Parameters:
pje - the job generating this event

printJobCompleted

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

Specified by:
printJobCompleted in interface javax.print.event.PrintJobListener
Parameters:
pje - the job generating this event

printJobFailed

public void printJobFailed(javax.print.event.PrintJobEvent pje)
Called to notify the client that the job failed to complete successfully and will have to be resubmitted.

Specified by:
printJobFailed in interface javax.print.event.PrintJobListener
Parameters:
pje - the job generating this event

printJobCanceled

public void printJobCanceled(javax.print.event.PrintJobEvent pje)
Called to notify the client that the job was canceled by a user or a program.

Specified by:
printJobCanceled in interface javax.print.event.PrintJobListener
Parameters:
pje - the job generating this event

printJobNoMoreEvents

public void printJobNoMoreEvents(javax.print.event.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 interface javax.print.event.PrintJobListener
Parameters:
pje - the job generating this event

printJobRequiresAttention

public void printJobRequiresAttention(javax.print.event.PrintJobEvent pje)
Called to notify the client that an error has occurred that the user might be able to fix. One example of an error that can generate this event is when the printer runs out of paper.

Specified by:
printJobRequiresAttention in interface javax.print.event.PrintJobListener
Parameters:
pje - the job generating this event


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.