public class PrintJobEvent extends PrintEvent
PrintJobEvent
打印作业的报道让听众知道在
DocPrintJob
处理进展。
Modifier and Type | Field and Description |
---|---|
static int |
DATA_TRANSFER_COMPLETE
该工作不一定是打印出来的,但数据已成功地从客户端传输到打印服务。
|
static int |
JOB_CANCELED
这项工作是由
PrintService 取消。
|
static int |
JOB_COMPLETE
完全打印的文档。
|
static int |
JOB_FAILED
打印服务报告,无法完成作业。
|
static int |
NO_MORE_EVENTS
并不是所有的打印服务都可以提供有趣的事件,甚至是当一个工作完成时。
|
static int |
REQUIRES_ATTENTION
打印服务表明,一个可能的瞬态问题可能需要外部干预前的打印服务可以继续。
|
source
Constructor and Description |
---|
PrintJobEvent(DocPrintJob source, int reason)
构建了一个
PrintJobEvent 对象。
|
Modifier and Type | Method and Description |
---|---|
int |
getPrintEventType()
获取此事件的原因。
|
DocPrintJob |
getPrintJob()
决定
DocPrintJob ,本刊工作事件与。
|
toString
getSource
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
对象。
source
-
DocPrintJob
对象
reason
指定原因int。
null
source
IllegalArgumentException
。
public int getPrintEventType()
public DocPrintJob getPrintJob()
DocPrintJob
,本刊工作事件与。
PrintJobEvent
的
DocPrintJob
对象。
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, 2014, Oracle and/or its affiliates. All rights reserved.