java.lang.Object
java.util.EventObject
javax.print.event.PrintEvent
javax.print.event.PrintJobAttributeEvent
- 所有已实现的接口:
Serializable
类
PrintJobAttributeEvent
封装了一个事件 PrintService
报告,让客户端知道 PrintJob
的一个或多个打印属性已更改。
- 参见:
-
字段摘要
在类 java.util.EventObject 中声明的字段
source
-
构造方法总结
构造方法构造方法描述PrintJobAttributeEvent
(DocPrintJob source, PrintJobAttributeSet attributes) 构造一个PrintJobAttributeEvent
对象。 -
方法总结
修饰符和类型方法描述确定更改的打印属性及其新值。确定此打印作业事件所属的PrintJob
。在类 javax.print.event.PrintEvent 中声明的方法
toString
在类 java.util.EventObject 中声明的方法
getSource
-
构造方法详细信息
-
PrintJobAttributeEvent
构造一个PrintJobAttributeEvent
对象。- 参数:
source
- 生成此事件的打印作业attributes
- 报告的属性更改- 抛出:
IllegalArgumentException
- 如果source
是null
-
-
方法详情
-
getPrintJob
确定此打印作业事件所属的PrintJob
。- 返回:
PrintJob
对象
-
getAttributes
确定更改的打印属性及其新值。- 返回:
- 包含更改的打印作业属性的新值的属性。返回的集合可能不可修改。
-