接口的使用
javax.print.attribute.PrintJobAttributeSet
使用 PrintJobAttributeSet 的包
包
描述
为 Java 打印服务 API 提供主要类和接口。
提供描述 Java Print Service 属性类型以及如何将它们收集到属性集中的类和接口。
包
javax.print.event 包含事件类和监听器接口。
-
PrintJobAttributeSet 在 javax.print 中的用法
javax.print 中返回 PrintJobAttributeSet 的方法javax.print 中的方法,参数类型为 PrintJobAttributeSet修饰符和类型方法描述voidDocPrintJob.addPrintJobAttributeListener(PrintJobAttributeListener listener, PrintJobAttributeSet attributes) 为指定属性的更改注册监听。 -
PrintJobAttributeSet 在 javax.print.attribute 中的用法
修饰符和类型类描述class修饰符和类型方法描述static PrintJobAttributeSetAttributeSetUtilities.synchronizedView(PrintJobAttributeSet attributeSet) 创建给定打印作业属性集的同步视图。static PrintJobAttributeSetAttributeSetUtilities.unmodifiableView(PrintJobAttributeSet attributeSet) 创建给定打印作业属性集的不可修改视图。javax.print.attribute 中的方法,参数类型为 PrintJobAttributeSet修饰符和类型方法描述static PrintJobAttributeSetAttributeSetUtilities.synchronizedView(PrintJobAttributeSet attributeSet) 创建给定打印作业属性集的同步视图。static PrintJobAttributeSetAttributeSetUtilities.unmodifiableView(PrintJobAttributeSet attributeSet) 创建给定打印作业属性集的不可修改视图。javax.print.attribute 中的构造函数,参数类型为 PrintJobAttributeSet修饰符构造方法描述HashPrintJobAttributeSet(PrintJobAttributeSet attributes) 构造一个新的属性集,最初使用给定集中的值填充,其中属性集的成员仅限于PrintJobAttribute接口。 -
PrintJobAttributeSet 在 javax.print.event 中的用法
javax.print.event 中的构造函数,参数类型为 PrintJobAttributeSet修饰符构造方法描述PrintJobAttributeEvent(DocPrintJob source, PrintJobAttributeSet attributes) 构造一个PrintJobAttributeEvent对象。