JavaTM 2 Platform
Standard Ed. 6

javax.print.attribute
介面 Attribute

所有父級介面:
Serializable
所有已知子介面:
DocAttribute, PrintJobAttribute, PrintRequestAttribute, PrintServiceAttribute, SupportedValuesAttribute
所有已知實作類別:
Chromaticity, ColorSupported, Compression, Copies, CopiesSupported, DateTimeAtCompleted, DateTimeAtCreation, DateTimeAtProcessing, Destination, DocumentName, Fidelity, Finishings, JobHoldUntil, JobImpressions, JobImpressionsCompleted, JobImpressionsSupported, JobKOctets, JobKOctetsProcessed, JobKOctetsSupported, JobMediaSheets, JobMediaSheetsCompleted, JobMediaSheetsSupported, JobMessageFromOperator, JobName, JobOriginatingUserName, JobPriority, JobPrioritySupported, JobSheets, JobState, JobStateReason, JobStateReasons, Media, MediaName, MediaPrintableArea, MediaSize, MediaSizeName, MediaTray, MultipleDocumentHandling, NumberOfDocuments, NumberOfInterveningJobs, NumberUp, NumberUpSupported, OrientationRequested, OutputDeviceAssigned, PageRanges, PagesPerMinute, PagesPerMinuteColor, PDLOverrideSupported, PresentationDirection, PrinterInfo, PrinterIsAcceptingJobs, PrinterLocation, PrinterMakeAndModel, PrinterMessageFromOperator, PrinterMoreInfo, PrinterMoreInfoManufacturer, PrinterName, PrinterResolution, PrinterState, PrinterStateReason, PrinterStateReasons, PrinterURI, PrintQuality, QueuedJobCount, ReferenceUriSchemesSupported, RequestingUserName, Severity, SheetCollate, Sides

public interface Attribute
extends Serializable

介面 Attribute 是由任何一個列印屬性類別實作的基本介面,用於指示該類別表示某一列印屬性。所有列印屬性都是可序列化的。


方法摘要
 Class<? extends Attribute> getCategory()
          將此列印屬性值添加到屬性集時,為它獲取用作“類別別”的列印屬性類別。
 String getName()
          獲取類別別的名稱,此屬性值是該類別別的一個實例。
 

方法詳細資訊

getCategory

Class<? extends Attribute> getCategory()
將此列印屬性值添加到屬性集時,為它獲取用作“類別別”的列印屬性類別。

返回:
列印屬性類別(類別別),是類別 java.lang.Class 的一個實例。

getName

String getName()
獲取類別別的名稱,此屬性值是該類別別的一個實例。

註: 此方法用於為屬性的類別別提供預設的非本地化字元串。如果兩個屬性物件從 getCategory() 方法返回相同的類別別,則它們應從 getName() 方法返回相同的名稱。

返回:
屬性類別別名稱。

JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

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