|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--javax.print.event.PrintEvent | +--javax.print.event.PrintJobEvent
Class PrintJobEvent
encapsulates common events a print job
reports to let a listener know of progress in the processing of the
DocPrintJob
.
Field Summary | |
static int |
DATA_TRANSFER_COMPLETE
The job is not necessarily printed yet, but the data has been transferred successfully from the client to the print service. |
static int |
JOB_CANCELED
The job was canceled by the PrintService . |
static int |
JOB_COMPLETE
The document cis completely printed. |
static int |
JOB_FAILED
The print service reports that the job cannot be completed. |
static int |
NO_MORE_EVENTS
Not all print services may be capable of delivering interesting events, or even telling when a job is complete. |
static int |
REQUIRES_ATTENTION
The print service indicates that a - possibly transient - problem may require external intervention before the print service can continue. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
PrintJobEvent(DocPrintJob source,
int reason)
Constructs a PrintJobEvent object. |
Method Summary | |
int |
getPrintEventType()
Gets the reason for this event. |
DocPrintJob |
getPrintJob()
Determines the DocPrintJob to which this print job
event pertains. |
Methods inherited from class javax.print.event.PrintEvent |
toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int JOB_CANCELED
PrintService
.
public static final int JOB_COMPLETE
public static final int JOB_FAILED
public static final int REQUIRES_ATTENTION
public static final int NO_MORE_EVENTS
public static final int DATA_TRANSFER_COMPLETE
Constructor Detail |
public PrintJobEvent(DocPrintJob source, int reason)
PrintJobEvent
object.
source
- a DocPrintJob
objectreason
- an int specifying the reason.Method Detail |
public int getPrintEventType()
public DocPrintJob getPrintJob()
DocPrintJob
to which this print job
event pertains.
DocPrintJob
object that represents the
print job that reports the events encapsulated by this
PrintJobEvent
.
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.