javax.print.event
Class PrintJobAdapter

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.print.event.PrintJobAdapter
All Implemented Interfaces:
PrintJobListener sample code for javax.print.event.PrintJobListener definition code for javax.print.event.PrintJobListener

public abstract class PrintJobAdapter
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements PrintJobListener sample code for javax.print.event.PrintJobListener definition code for javax.print.event.PrintJobListener

An abstract adapter class for receiving print job events. The methods in this class are empty. This class exists as a convenience for creating listener objects. Extend this class to create a PrintJobEvent sample code for javax.print.event.PrintJobEvent definition code for javax.print.event.PrintJobEvent listener and override the methods for the events of interest. Unlike the ComponentListener sample code for java.awt.event.ComponentListener definition code for java.awt.event.ComponentListener interface, this abstract interface provides null methods so that you only need to define the methods you need, rather than all of the methods.


Constructor Summary
PrintJobAdapter sample code for javax.print.event.PrintJobAdapter.PrintJobAdapter() definition code for javax.print.event.PrintJobAdapter.PrintJobAdapter() ()
           
 
Method Summary
 void printDataTransferCompleted sample code for javax.print.event.PrintJobAdapter.printDataTransferCompleted(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobAdapter.printDataTransferCompleted(javax.print.event.PrintJobEvent) (PrintJobEvent sample code for javax.print.event.PrintJobEvent definition code for 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 sample code for javax.print.event.PrintJobAdapter.printJobCanceled(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobAdapter.printJobCanceled(javax.print.event.PrintJobEvent) (PrintJobEvent sample code for javax.print.event.PrintJobEvent definition code for javax.print.event.PrintJobEvent  pje)
          Called to notify the client that the job was canceled by user or program.
 void printJobCompleted sample code for javax.print.event.PrintJobAdapter.printJobCompleted(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobAdapter.printJobCompleted(javax.print.event.PrintJobEvent) (PrintJobEvent sample code for javax.print.event.PrintJobEvent definition code for javax.print.event.PrintJobEvent  pje)
          Called to notify the client that the job completed successfully.
 void printJobFailed sample code for javax.print.event.PrintJobAdapter.printJobFailed(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobAdapter.printJobFailed(javax.print.event.PrintJobEvent) (PrintJobEvent sample code for javax.print.event.PrintJobEvent definition code for 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 sample code for javax.print.event.PrintJobAdapter.printJobNoMoreEvents(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobAdapter.printJobNoMoreEvents(javax.print.event.PrintJobEvent) (PrintJobEvent sample code for javax.print.event.PrintJobEvent definition code for javax.print.event.PrintJobEvent  pje)
          Called to notify the client that no more events will be delivered.
 void printJobRequiresAttention sample code for javax.print.event.PrintJobAdapter.printJobRequiresAttention(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobAdapter.printJobRequiresAttention(javax.print.event.PrintJobEvent) (PrintJobEvent sample code for javax.print.event.PrintJobEvent definition code for javax.print.event.PrintJobEvent  pje)
          Called to notify the client that some possibly user rectifiable problem occurs (eg printer out of paper).
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

PrintJobAdapter sample code for javax.print.event.PrintJobAdapter() definition code for javax.print.event.PrintJobAdapter()

public PrintJobAdapter()
Method Detail

printDataTransferCompleted sample code for javax.print.event.PrintJobAdapter.printDataTransferCompleted(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobAdapter.printDataTransferCompleted(javax.print.event.PrintJobEvent)

public void printDataTransferCompleted(PrintJobEvent sample code for javax.print.event.PrintJobEvent definition code for 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.

Specified by:
printDataTransferCompleted sample code for javax.print.event.PrintJobListener.printDataTransferCompleted(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobListener.printDataTransferCompleted(javax.print.event.PrintJobEvent) in interface PrintJobListener sample code for javax.print.event.PrintJobListener definition code for javax.print.event.PrintJobListener
Parameters:
pje - the event being notified

printJobCompleted sample code for javax.print.event.PrintJobAdapter.printJobCompleted(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobAdapter.printJobCompleted(javax.print.event.PrintJobEvent)

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

Specified by:
printJobCompleted sample code for javax.print.event.PrintJobListener.printJobCompleted(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobListener.printJobCompleted(javax.print.event.PrintJobEvent) in interface PrintJobListener sample code for javax.print.event.PrintJobListener definition code for javax.print.event.PrintJobListener
Parameters:
pje - the event being notified

printJobFailed sample code for javax.print.event.PrintJobAdapter.printJobFailed(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobAdapter.printJobFailed(javax.print.event.PrintJobEvent)

public void printJobFailed(PrintJobEvent sample code for javax.print.event.PrintJobEvent definition code for 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 sample code for javax.print.event.PrintJobListener.printJobFailed(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobListener.printJobFailed(javax.print.event.PrintJobEvent) in interface PrintJobListener sample code for javax.print.event.PrintJobListener definition code for javax.print.event.PrintJobListener
Parameters:
pje - the event being notified

printJobCanceled sample code for javax.print.event.PrintJobAdapter.printJobCanceled(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobAdapter.printJobCanceled(javax.print.event.PrintJobEvent)

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

Specified by:
printJobCanceled sample code for javax.print.event.PrintJobListener.printJobCanceled(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobListener.printJobCanceled(javax.print.event.PrintJobEvent) in interface PrintJobListener sample code for javax.print.event.PrintJobListener definition code for javax.print.event.PrintJobListener
Parameters:
pje - the event being notified

printJobNoMoreEvents sample code for javax.print.event.PrintJobAdapter.printJobNoMoreEvents(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobAdapter.printJobNoMoreEvents(javax.print.event.PrintJobEvent)

public void printJobNoMoreEvents(PrintJobEvent sample code for javax.print.event.PrintJobEvent definition code for 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 sample code for javax.print.event.PrintJobListener.printJobNoMoreEvents(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobListener.printJobNoMoreEvents(javax.print.event.PrintJobEvent) in interface PrintJobListener sample code for javax.print.event.PrintJobListener definition code for javax.print.event.PrintJobListener
Parameters:
pje - the event being notified

printJobRequiresAttention sample code for javax.print.event.PrintJobAdapter.printJobRequiresAttention(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobAdapter.printJobRequiresAttention(javax.print.event.PrintJobEvent)

public void printJobRequiresAttention(PrintJobEvent sample code for javax.print.event.PrintJobEvent definition code for javax.print.event.PrintJobEvent  pje)
Called to notify the client that some possibly user rectifiable problem occurs (eg printer out of paper).

Specified by:
printJobRequiresAttention sample code for javax.print.event.PrintJobListener.printJobRequiresAttention(javax.print.event.PrintJobEvent) definition code for javax.print.event.PrintJobListener.printJobRequiresAttention(javax.print.event.PrintJobEvent) in interface PrintJobListener sample code for javax.print.event.PrintJobListener definition code for javax.print.event.PrintJobListener
Parameters:
pje - the event being notified