APIdia Launch Partner
Top Description Fields Constructors Methods
javax.print.attribute.standard

public Class JobSheets

extends EnumSyntax
implements PrintRequestAttribute, PrintJobAttribute
Class Inheritance
All Implemented Interfaces
javax.print.attribute.PrintJobAttribute, javax.print.attribute.Attribute, java.io.Serializable, javax.print.attribute.PrintRequestAttribute
Imports
java.io.Serial, javax.print.attribute.Attribute, .EnumSyntax, .PrintJobAttribute, .PrintRequestAttribute

Class JobSheets is a printing attribute class, an enumeration, that determines which job start and end sheets, if any, must be printed with a job. Class JobSheets declares keywords for standard job sheets values. Implementation- or site-defined names for a job sheets attribute may also be created by defining a subclass of class JobSheets.

The effect of a JobSheets attribute on multidoc print jobs (jobs with multiple documents) may be affected by the MultipleDocumentHandling job attribute, depending on the meaning of the particular JobSheets value.

IPP Compatibility: The category name returned by getName() is the IPP attribute name. The enumeration's integer value is the IPP enum value. The toString() method returns the IPP string representation of the attribute value. For a subclass, the attribute value must be localized to give the IPP name and natural language values.

Author
Alan Kaminsky

Field Summary

Modifier and TypeField and Description
private static final JobSheets[]
myEnumValueTable

The enumeration value table for class JobSheets.

private static final String[]
myStringTable

The string table for class JobSheets.

public static final JobSheets
NONE

No job sheets are printed.

private static final long
serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.
public static final JobSheets
STANDARD

One or more site specific standard job sheets are printed.

Constructor Summary

AccessConstructor and Description
protected
JobSheets(int
Integer value
value
)

Construct a new job sheets enumeration value with the given integer value.

Method Summary

Modifier and TypeMethod and Description
public final Class<? extends Attribute>

Returns:

printing attribute class (category), an instance of class java.lang.Class
getCategory
()

Implements javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value.

protected EnumSyntax[]
getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class JobSheets.

public final String

Returns:

attribute category name
getName
()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

protected String[]
getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class JobSheets.

Inherited from javax.print.attribute.EnumSyntax:
clonegetOffsetgetValuehashCodereadResolvetoString

Field Detail

myEnumValueTableback to summary
private static final JobSheets[] myEnumValueTable

The enumeration value table for class JobSheets.

myStringTableback to summary
private static final String[] myStringTable

The string table for class JobSheets.

NONEback to summary
public static final JobSheets NONE

No job sheets are printed.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial
STANDARDback to summary
public static final JobSheets STANDARD

One or more site specific standard job sheets are printed. e.g. a single start sheet is printed, or both start and end sheets are printed.

Constructor Detail

JobSheetsback to summary
protected JobSheets(int value)

Construct a new job sheets enumeration value with the given integer value.

Parameters
value:int

Integer value

Method Detail

getCategoryback to summary
public final Class<? extends Attribute> getCategory()

Implements javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value.

For class JobSheets and any vendor-defined subclasses, the category is class JobSheets itself.

Returns:Class<? extends Attribute>

printing attribute class (category), an instance of class java.lang.Class

Annotations
@Override
getEnumValueTableback to summary
protected EnumSyntax[] getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class JobSheets.

Annotations
@Override
getNameback to summary
public final String getName()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

For class JobSheets and any vendor-defined subclasses, the category name is "job-sheets".

Returns:String

attribute category name

Annotations
@Override
getStringTableback to summary
protected String[] getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class JobSheets.

Annotations
@Override