java.lang.Objectjava.util.EventObject
javax.print.event.PrintEvent
javax.print.event.PrintServiceAttributeEvent
public class PrintServiceAttributeEvent
类 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 |
| 构造方法详细信息 |
|---|
public PrintServiceAttributeEvent(PrintService source, PrintServiceAttributeSet attributes)
source - 生成此事件的打印作业
attributes - 要报告的属性更改
IllegalArgumentException - 如果
source 为
null。
| 方法详细信息 |
|---|
public PrintService getPrintService()
public PrintServiceAttributeSet getAttributes()