javax.print.attribute
Interface Attribute
- All Superinterfaces:
- Serializable
- All Known Subinterfaces:
- DocAttribute, PrintJobAttribute, PrintRequestAttribute, PrintServiceAttribute, SupportedValuesAttribute
- All Known Implementing Classes:
- 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, 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
Interface Attribute is the base interface implemented by any and every
printing attribute class to indicate that the class represents a
printing attribute. All printing attributes are serializable.
Method Summary |
Class |
getCategory()
Get the printing attribute class which is to be used as the "category"
for this printing attribute value when it is added to an attribute set. |
String |
getName()
Get the name of the category of which this attribute value is an
instance. |
getCategory
public Class getCategory()
- Get the printing attribute class which is to be used as the "category"
for this printing attribute value when it is added to an attribute set.
- Returns:
- Printing attribute class (category), an instance of class
java.lang.Class
.
getName
public String getName()
- Get the name of the category of which this attribute value is an
instance.
Note: This method is intended to provide a default, nonlocalized
string for the attribute's category. If two attribute objects return the
same category from the getCategory()
method, they should
return the same name from the getName()
method.
- Returns:
- Attribute category name.
Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.