| 接口 | 描述 | 
|---|---|
| PrintJobAttributeListener |  
          此接口的实现附加到 DocPrintJob以监视与打印作业相关联的属性更改的状态。 | 
| PrintJobListener |  
          此监听器接口的实现应附加到 DocPrintJob以监视打印机作业的状态。 | 
| PrintServiceAttributeListener |  
          此监听器接口的实现被附加到 PrintService以监视打印服务的状态。 | 
| 类 | 描述 | 
|---|---|
| PrintEvent | 
           PrintEvent类是所有Print Service API事件的超类。 
          | 
| PrintJobAdapter | 
           用于接收打印作业事件的抽象适配器类。 
          | 
| PrintJobAttributeEvent | 
           PrintJobAttributeEvent类封装PrintService报告的事件,让客户端知道PrintJob的一个或多个打印属性已更改。 
          | 
| PrintJobEvent | PrintJobEvent类PrintJobEvent了打印作业报告的常见事件,让听众知道处理DocPrintJob的进度 。 | 
| PrintServiceAttributeEvent | 
           PrintServiceAttributeEvent类封装了Print Service实例报告的事件,让客户端了解打印服务状态的变化。 
          | 
它们可用于监控打印服务(例如在线和离线的打印机)以及特定打印作业的进度。
请注意:在javax.print API中,方法的空参考参数是不正确的,除非在方法中明确记录为具有有意义的解释。 使用相反的是错误的编码,可能会立即或稍后导致运行时异常。 IllegalArgumentException和NullPointerException是这种情况的典型和可接受的运行时间异常的示例。
 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.