javax.print.event
类 PrintJobAttributeEvent
java.lang.Object
   java.util.EventObject
java.util.EventObject
       javax.print.event.PrintEvent
javax.print.event.PrintEvent
           javax.print.event.PrintJobAttributeEvent
javax.print.event.PrintJobAttributeEvent
- 所有已实现的接口: 
- Serializable
- public class PrintJobAttributeEvent 
- extends PrintEvent
类 PrintJobAttributeEvent 封装 PrintService 报告的事件,以便让客户端知道 PrintJob 的一个或多个打印属性已更改。
- 另请参见:
- 序列化表格
 
 
 
 
 
 
 
PrintJobAttributeEvent
public PrintJobAttributeEvent(DocPrintJob source,
                              PrintJobAttributeSet attributes)
- 构造一个 PrintJobAttributeEvent 对象。
 
- 参数:
- source- 生成此事件的打印作业
- attributes- 要报告的属性更改
- 抛出:
- IllegalArgumentException- 如果- source为- null。
 
getPrintJob
public DocPrintJob getPrintJob()
- 确定此打印作业事件适合的 Print Job。
 
- 
- 返回:
- Print Job 对象。
 
getAttributes
public PrintJobAttributeSet getAttributes()
- 确定已经更改的打印属性及其新值。
 
- 
- 返回:
- 属性,包含已经更改的打印作业属性的新值。返回的集合是不可修改的。
 
提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。 版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。