模块 java.desktop

类 PrintJobAttributeEvent

java.lang.Object
java.util.EventObject
javax.print.event.PrintEvent
javax.print.event.PrintJobAttributeEvent
所有已实现的接口:
Serializable

public class PrintJobAttributeEvent extends PrintEvent
PrintJobAttributeEvent 封装了一个事件 PrintService 报告,让客户端知道 PrintJob 的一个或多个打印属性已更改。
参见:
  • 构造方法详细信息

    • PrintJobAttributeEvent

      public PrintJobAttributeEvent(DocPrintJob  source, PrintJobAttributeSet  attributes)
      构造一个 PrintJobAttributeEvent 对象。
      参数:
      source - 生成此事件的打印作业
      attributes - 报告的属性更改
      抛出:
      IllegalArgumentException - 如果 sourcenull
  • 方法详情

    • getPrintJob

      public DocPrintJob  getPrintJob()
      确定此打印作业事件所属的 PrintJob
      返回:
      PrintJob 对象
    • getAttributes

      public PrintJobAttributeSet  getAttributes()
      确定更改的打印属性及其新值。
      返回:
      包含更改的打印作业属性的新值的属性。返回的集合可能不可修改。