JavaTM 2 Platform
Standard Ed. 6

javax.print.event
类 PrintServiceAttributeEvent

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

public class PrintServiceAttributeEvent
extends PrintEvent

类 PrintServiceAttributeEvent 封装 Print Service 实例报告的事件,以便让客户端知道打印服务状态的更改。

另请参见:
序列化表格

字段摘要
 
从类 java.util.EventObject 继承的字段
source
 
构造方法摘要
PrintServiceAttributeEvent(PrintService source, PrintServiceAttributeSet attributes)
          构造一个 PrintServiceAttributeEvent 对象。
 
方法摘要
 PrintServiceAttributeSet getAttributes()
          确定已经更改的打印服务属性及其新值。
 PrintService getPrintService()
          返回打印服务。
 
从类 javax.print.event.PrintEvent 继承的方法
toString
 
从类 java.util.EventObject 继承的方法
getSource
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

PrintServiceAttributeEvent

public PrintServiceAttributeEvent(PrintService source,
                                  PrintServiceAttributeSet attributes)
构造一个 PrintServiceAttributeEvent 对象。

参数:
source - 生成此事件的打印作业
attributes - 要报告的属性更改
抛出:
IllegalArgumentException - 如果 sourcenull
方法详细信息

getPrintService

public PrintService getPrintService()
返回打印服务。

返回:
Print Service 对象。

getAttributes

public PrintServiceAttributeSet getAttributes()
确定已经更改的打印服务属性及其新值。

返回:
属性,包含已经更改的服务属性的新值。返回的集合是不可修改的。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策