This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


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

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 {@link PrintJobEvent} listener and override the methods for the events of interest. Unlike the {@link java.awt.event.ComponentListener 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

          
 
Method Summary
 void

          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

          Called to notify the client that the job was canceled by user or program.
 void

          Called to notify the client that the job completed successfully.
 void

          Called to notify the client that the job failed to complete successfully and will have to be resubmitted.
 void

          Called to notify the client that no more events will be delivered.
 void

          Called to notify the client that some possibly user rectifiable problem occurs (eg printer out of paper).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintJobAdapter

public PrintJobAdapter()
Method Detail

printDataTransferCompleted

public void printDataTransferCompleted(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.

Parameters:
pje - the event being notified

printJobCanceled

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

Parameters:
pje - the event being notified

printJobCompleted

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

Parameters:
pje - the event being notified

printJobFailed

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

Parameters:
pje - the event being notified

printJobNoMoreEvents

public void printJobNoMoreEvents(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.

Parameters:
pje - the event being notified

printJobRequiresAttention

public void printJobRequiresAttention(PrintJobEvent pje)
Called to notify the client that some possibly user rectifiable problem occurs (eg printer out of paper).

Parameters:
pje - the event being notified


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.