Java™ Platform
Standard Ed. 8

Uses of Interface
javax.print.attribute.Attribute

  • Packages that use Attribute 
    Package Description
    javax.print
    Provides the principal classes and interfaces for the JavaTM Print Service API.
    javax.print.attribute
    Provides classes and interfaces that describe the types of JavaTM Print Service attributes and how they can be collected into attribute sets.
    javax.print.attribute.standard
    Package javax.print.attribute.standard contains classes for specific printing attributes.
    • Uses of Attribute in javax.print

      Methods in javax.print that return Attribute 
      Modifier and Type Method and Description
      Attribute[] AttributeException.getUnsupportedValues()
      Returns the array of printing attributes for which the Print Service instance supports the attribute but does not support that particular value of the attribute, or null if there are no such attribute values.
      Methods in javax.print with parameters of type Attribute 
      Modifier and Type Method and Description
      boolean PrintService.isAttributeValueSupported(Attribute attrval, DocFlavor flavor, AttributeSet attributes)
      Determines whether a client can specify the given printing attribute value when setting up a job for this Print Service.
      Method parameters in javax.print with type arguments of type Attribute 
      Modifier and Type Method and Description
      Object PrintService.getDefaultAttributeValue(Class<? extends Attribute> category)
      Determines this print service's default printing attribute value in the given category.
      Object PrintService.getSupportedAttributeValues(Class<? extends Attribute> category, DocFlavor flavor, AttributeSet attributes)
      Determines the printing attribute values a client can specify in the given category when setting up a job for this print service.
      boolean PrintService.isAttributeCategorySupported(Class<? extends Attribute> category)
      Determines whether a client can specify the given printing attribute category when setting up a job for this print service.
    • Uses of Attribute in javax.print.attribute

      Subinterfaces of Attribute in javax.print.attribute 
      Modifier and Type Interface and Description
      interface  DocAttribute
      Interface DocAttribute is a tagging interface which a printing attribute class implements to indicate the attribute denotes a setting for a doc.
      interface  PrintJobAttribute
      PrintJobAttribute is a tagging interface which a printing attribute class implements to indicate the attribute describes the status of a Print Job or some other characteristic of a Print Job.
      interface  PrintRequestAttribute
      Interface PrintRequestAttribute is a tagging interface which a printing attribute class implements to indicate the attribute denotes a requested setting for a print job.
      interface  PrintServiceAttribute
      Interface PrintServiceAttribute is a tagging interface which a printing attribute class implements to indicate the attribute describes the status of a Print Service or some other characteristic of a Print Service.
      interface  SupportedValuesAttribute
      Interface SupportedValuesAttribute is a tagging interface which a printing attribute class implements to indicate the attribute describes the supported values for another attribute.
      Methods in javax.print.attribute that return Attribute 
      Modifier and Type Method and Description
      Attribute HashAttributeSet.get(Class<?> category)
      Returns the attribute value which this attribute set contains in the given attribute category.
      Attribute AttributeSet.get(Class<?> category)
      Returns the attribute value which this attribute set contains in the given attribute category.
      Attribute[] HashAttributeSet.toArray() 
      Attribute[] AttributeSet.toArray()
      Returns an array of the attributes contained in this set.
      static Attribute AttributeSetUtilities.verifyAttributeValue(Object object, Class<?> interfaceName)
      Verify that the given object is an instance of the given interface, which is assumed to be interface Attribute or a subinterface thereof.
      Methods in javax.print.attribute that return types with arguments of type Attribute 
      Modifier and Type Method and Description
      Class<? extends Attribute> Attribute.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.
      Methods in javax.print.attribute with parameters of type Attribute 
      Modifier and Type Method and Description
      boolean HashAttributeSet.add(Attribute attribute)
      Adds the specified attribute to this attribute set if it is not already present, first removing any existing in the same attribute category as the specified attribute value.
      boolean DocAttributeSet.add(Attribute attribute)
      Adds the specified attribute value to this attribute set if it is not already present, first removing any existing value in the same attribute category as the specified attribute value (optional operation).
      boolean PrintJobAttributeSet.add(Attribute attribute)
      Adds the specified attribute value to this attribute set if it is not already present, first removing any existing value in the same attribute category as the specified attribute value (optional operation).
      boolean PrintServiceAttributeSet.add(Attribute attribute)
      Adds the specified attribute value to this attribute set if it is not already present, first removing any existing value in the same attribute category as the specified attribute value (optional operation).
      boolean AttributeSet.add(Attribute attribute)
      Adds the specified attribute to this attribute set if it is not already present, first removing any existing value in the same attribute category as the specified attribute value.
      boolean PrintRequestAttributeSet.add(Attribute attribute)
      Adds the specified attribute value to this attribute set if it is not already present, first removing any existing value in the same attribute category as the specified attribute value (optional operation).
      boolean HashAttributeSet.containsValue(Attribute attribute)
      Returns true if this attribute set contains the given attribute.
      boolean AttributeSet.containsValue(Attribute attribute)
      Returns true if this attribute set contains the given attribute value.
      boolean HashAttributeSet.remove(Attribute attribute)
      Removes the specified attribute from this attribute set if present.
      boolean AttributeSet.remove(Attribute attribute)
      Removes the specified attribute from this attribute set if present.
      static void AttributeSetUtilities.verifyCategoryForValue(Class<?> category, Attribute attribute)
      Verify that the given attribute category object is equal to the category of the given attribute value object.
      Constructors in javax.print.attribute with parameters of type Attribute 
      Constructor and Description
      HashAttributeSet(Attribute attribute)
      Construct a new attribute set, initially populated with the given attribute.
      HashAttributeSet(Attribute[] attributes)
      Construct a new attribute set, initially populated with the values from the given array.
      HashAttributeSet(Attribute[] attributes, Class<?> interfaceName)
      Construct a new attribute set, where the members of the attribute set are restricted to the given interface.
      HashAttributeSet(Attribute attribute, Class<?> interfaceName)
      Construct a new attribute set, initially populated with the given attribute, where the members of the attribute set are restricted to the given interface.
    • Uses of Attribute in javax.print.attribute.standard

      Methods in javax.print.attribute.standard that return types with arguments of type Attribute 
      Modifier and Type Method and Description
      Class<? extends Attribute> JobMediaSheetsSupported.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterURI.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterState.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PagesPerMinute.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterName.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobImpressionsCompleted.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> ReferenceUriSchemesSupported.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobPrioritySupported.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> DateTimeAtProcessing.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> Fidelity.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> Chromaticity.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterMessageFromOperator.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> MultipleDocumentHandling.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> NumberUpSupported.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> NumberOfDocuments.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterIsAcceptingJobs.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> Severity.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterStateReason.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterStateReasons.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrintQuality.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterLocation.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> DocumentName.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> SheetCollate.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> Finishings.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> CopiesSupported.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobKOctetsProcessed.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobKOctetsSupported.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobKOctets.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobPriority.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobMessageFromOperator.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobOriginatingUserName.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobHoldUntil.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterMakeAndModel.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> DateTimeAtCompleted.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> QueuedJobCount.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterInfo.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobMediaSheets.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PagesPerMinuteColor.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterMoreInfoManufacturer.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> Destination.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> Compression.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> ColorSupported.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> OutputDeviceAssigned.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobImpressions.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> RequestingUserName.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PDLOverrideSupported.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobImpressionsSupported.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> NumberOfInterveningJobs.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobStateReason.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobStateReasons.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobSheets.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterResolution.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PresentationDirection.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PrinterMoreInfo.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> DateTimeAtCreation.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobName.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobState.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> JobMediaSheetsCompleted.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> NumberUp.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> Sides.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> MediaPrintableArea.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> PageRanges.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> Copies.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> OrientationRequested.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> MediaSize.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
      Class<? extends Attribute> Media.getCategory()
      Get the printing attribute class which is to be used as the "category" for this printing attribute value.
Java™ Platform
Standard Ed. 8

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部