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

public final Class DialogTypeSelection

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

Class DialogTypeSelection is a printing attribute class, an enumeration, that indicates the user dialog type to be used for specifying printing options. If NATIVE is specified, then where available, a native platform dialog is displayed. If COMMON is specified, a cross-platform print dialog is displayed.

This option to specify a native dialog for use with an IPP attribute set provides a standard way to reflect back of the setting and option changes made by a user to the calling application, and integrates the native dialog into the Java printing APIs. But note that some options and settings in a native dialog may not necessarily map to IPP attributes as they may be non-standard platform, or even printer specific options.

IPP Compatibility: This is not an IPP attribute.

Since
1.7

Field Summary

Modifier and TypeField and Description
public static final DialogTypeSelection
COMMON

The cross-platform print dialog should be used.

private static final DialogTypeSelection[]
myEnumValueTable

The enumeration value table for class DialogTypeSelection.

private static final String[]
myStringTable

The string table for class DialogTypeSelection.

public static final DialogTypeSelection
NATIVE

The native platform print dialog should be used.

private static final long
serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.

Constructor Summary

AccessConstructor and Description
protected
DialogTypeSelection(int
Integer value
value
)

Constructs a new dialog type selection 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.

Gets 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 DialogTypeSelection.

public final String

Returns:

attribute category name
getName
()

Implements javax.print.attribute.Attribute.getName.

Gets 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 DialogTypeSelection.

Inherited from javax.print.attribute.EnumSyntax:
clonegetOffsetgetValuehashCodereadResolvetoString

Field Detail

COMMONback to summary
public static final DialogTypeSelection COMMON

The cross-platform print dialog should be used.

myEnumValueTableback to summary
private static final DialogTypeSelection[] myEnumValueTable

The enumeration value table for class DialogTypeSelection.

myStringTableback to summary
private static final String[] myStringTable

The string table for class DialogTypeSelection.

NATIVEback to summary
public static final DialogTypeSelection NATIVE

The native platform print dialog should be used.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.

Annotations
@Serial

Constructor Detail

DialogTypeSelectionback to summary
protected DialogTypeSelection(int value)

Constructs a new dialog type selection 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.

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

For class DialogTypeSelection the category is class DialogTypeSelection 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 DialogTypeSelection.

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

Implements javax.print.attribute.Attribute.getName.

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

For class DialogTypeSelection the category name is "dialog-type-selection".

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 DialogTypeSelection.

Annotations
@Override