Serializable
public class PrintJobEvent extends PrintEvent
PrintJobEvent
encapsulates common events a print job
reports to let a listener know of progress in the processing of the
DocPrintJob
.Modifier and Type | Field | Description |
---|---|---|
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.
|
source
Constructor | Description |
---|---|
PrintJobEvent(DocPrintJob source,
int reason) |
Constructs a
PrintJobEvent object. |
Modifier and Type | Method | Description |
---|---|---|
int |
getPrintEventType() |
Gets the reason for this event.
|
DocPrintJob |
getPrintJob() |
Determines the
DocPrintJob to which this print job
event pertains. |
getSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toString
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
public PrintJobEvent(DocPrintJob source, int reason)
PrintJobEvent
object.source
- a DocPrintJob
objectreason
- an int specifying the reason.IllegalArgumentException
- if source
is
null
.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
. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps