Module java.desktop

Interface Attribute

所有超级接口:
Serializable
所有已知子接口:
DocAttribute, PrintJobAttribute, PrintRequestAttribute, PrintServiceAttribute, SupportedValuesAttribute
所有已知实现类:
Chromaticity, ColorSupported, Compression, Copies, CopiesSupported, DateTimeAtCompleted, DateTimeAtCreation, DateTimeAtProcessing, Destination, DialogOwner, DialogTypeSelection, 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是由任何打印属性类实现的基本接口,表示该类代表一个打印属性。所有打印属性都是可序列化的。
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends Attribute>
    获取用作将此打印属性值添加到属性集时的“类别”的打印属性类。
    获取此属性值所属类别的名称。
  • Method Details

    • getCategory

      Class<? extends Attribute> getCategory()
      获取用作将此打印属性值添加到属性集时的“类别”的打印属性类。
      返回:
      打印属性类(类别),java.lang.Class类的实例
    • getName

      String getName()
      获取此属性值所属类别的名称。

      注意: 此方法旨在为属性的类别提供默认的非本地化字符串。如果两个属性对象从getCategory()方法返回相同的类别,则它们应该从getName()方法返回相同的名称。

      返回:
      属性类别名称