JavaTM 2 Platform
Standard Ed. 6

介面 javax.print.attribute.PrintServiceAttributeSet
的使用

使用 PrintServiceAttributeSet 的軟體套件
javax.print 為 JavaTM Print Service API 提供了主要類別和介面。 
javax.print.attribute 提供了描述 JavaTM Print Service 屬性的型別以及如何分類別這些屬性的類別和介面。 
javax.print.event 包 javax.print.event 套件含事件類別和偵聽器介面。 
 

javax.print 中 PrintServiceAttributeSet 的使用
 

返回 PrintServiceAttributeSet 的 javax.print 中的方法
 PrintServiceAttributeSet PrintService.getAttributes()
          獲得此 PrintService 的印表機描述屬性集,這些屬性給出了此 PrintService 的狀態。
 

javax.print.attribute 中 PrintServiceAttributeSet 的使用
 

實作 PrintServiceAttributeSet 的 javax.print.attribute 中的類別
 class HashPrintServiceAttributeSet
          類別 HashPrintServiceAttributeSet 提供從類別 HashAttributeSet 繼承其實作的屬性集,並強制執行介面 PrintServiceAttributeSet 的語義限制。
 

返回 PrintServiceAttributeSet 的 javax.print.attribute 中的方法
static PrintServiceAttributeSet AttributeSetUtilities.synchronizedView(PrintServiceAttributeSet attributeSet)
          創建一個給定列印服務屬性集的同步視圖。
static PrintServiceAttributeSet AttributeSetUtilities.unmodifiableView(PrintServiceAttributeSet attributeSet)
          創建一個給定列印服務屬性集的不可修改的視圖。
 

參數型別為 PrintServiceAttributeSet 的 javax.print.attribute 中的方法
static PrintServiceAttributeSet AttributeSetUtilities.synchronizedView(PrintServiceAttributeSet attributeSet)
          創建一個給定列印服務屬性集的同步視圖。
static PrintServiceAttributeSet AttributeSetUtilities.unmodifiableView(PrintServiceAttributeSet attributeSet)
          創建一個給定列印服務屬性集的不可修改的視圖。
 

參數型別為 PrintServiceAttributeSet 的 javax.print.attribute 中的建構子
HashPrintServiceAttributeSet(PrintServiceAttributeSet attributes)
          建構一個最初使用給定集合中的值填充的新屬性集,其中該屬性集的成員限於 PrintServiceAttribute 介面。
 

javax.print.event 中 PrintServiceAttributeSet 的使用
 

返回 PrintServiceAttributeSet 的 javax.print.event 中的方法
 PrintServiceAttributeSet PrintServiceAttributeEvent.getAttributes()
          確定已經更改的列印服務屬性及其新值。
 

參數型別為 PrintServiceAttributeSet 的 javax.print.event 中的建構子
PrintServiceAttributeEvent(PrintService source, PrintServiceAttributeSet attributes)
          建構一個 PrintServiceAttributeEvent 物件。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。