APIdia Launch Partner
Top Description Constructors Methods
javax.print.event

public abstract Class PrintJobAdapter

extends Object
implements PrintJobListener
Class Inheritance
All Implemented Interfaces
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 listener and override the methods for the events of interest. Unlike the ComponentListener interface, this abstract interface provides empty methods so that you only need to define the methods you need, rather than all of the methods.

Constructor Summary

AccessConstructor and Description
protected
PrintJobAdapter()

Constructor for subclasses to call.

Method Summary

Modifier and TypeMethod and Description
public void
printDataTransferCompleted(PrintJobEvent
the event being notified
pje
)

Implements javax.print.event.PrintJobListener.printDataTransferCompleted.

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.

public void
printJobCanceled(PrintJobEvent
the event being notified
pje
)

Implements javax.print.event.PrintJobListener.printJobCanceled.

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

public void
printJobCompleted(PrintJobEvent
the event being notified
pje
)

Implements javax.print.event.PrintJobListener.printJobCompleted.

Called to notify the client that the job completed successfully.

public void
printJobFailed(PrintJobEvent
the event being notified
pje
)

Implements javax.print.event.PrintJobListener.printJobFailed.

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

public void
printJobNoMoreEvents(PrintJobEvent
the event being notified
pje
)

Implements javax.print.event.PrintJobListener.printJobNoMoreEvents.

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

public void
printJobRequiresAttention(PrintJobEvent
the event being notified
pje
)

Implements javax.print.event.PrintJobListener.printJobRequiresAttention.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PrintJobAdapterback to summary
protected PrintJobAdapter()

Constructor for subclasses to call.

Method Detail

printDataTransferCompletedback to summary
public void printDataTransferCompleted(PrintJobEvent pje)

Implements javax.print.event.PrintJobListener.printDataTransferCompleted.

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:PrintJobEvent

the event being notified

printJobCanceledback to summary
public void printJobCanceled(PrintJobEvent pje)

Implements javax.print.event.PrintJobListener.printJobCanceled.

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

Parameters
pje:PrintJobEvent

the event being notified

printJobCompletedback to summary
public void printJobCompleted(PrintJobEvent pje)

Implements javax.print.event.PrintJobListener.printJobCompleted.

Called to notify the client that the job completed successfully.

Parameters
pje:PrintJobEvent

the event being notified

printJobFailedback to summary
public void printJobFailed(PrintJobEvent pje)

Implements javax.print.event.PrintJobListener.printJobFailed.

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

Parameters
pje:PrintJobEvent

the event being notified

printJobNoMoreEventsback to summary
public void printJobNoMoreEvents(PrintJobEvent pje)

Implements javax.print.event.PrintJobListener.printJobNoMoreEvents.

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:PrintJobEvent

the event being notified

printJobRequiresAttentionback to summary
public void printJobRequiresAttention(PrintJobEvent pje)

Implements javax.print.event.PrintJobListener.printJobRequiresAttention.

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

Parameters
pje:PrintJobEvent

the event being notified