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

public Class MediaName

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

Class MediaName is a subclass of Media, a printing attribute class (an enumeration) that specifies the media for a print job as a name.

This attribute can be used instead of specifying MediaSize or MediaTray.

Class MediaName currently declares a few standard media names. Implementation- or site-defined names for a media name attribute may also be created by defining a subclass of class MediaName.

IPP Compatibility: MediaName is a representation class for values of the IPP "media" attribute which names media.

Field Summary

Modifier and TypeField and Description
public static final MediaName
ISO_A4_TRANSPARENT

A4 transparency.

public static final MediaName
ISO_A4_WHITE

white A4 paper.

private static final MediaName[]
myEnumValueTable

The enumeration value table for class MediaTray.

private static final String[]
myStringTable

The string table for class MediaTray.

public static final MediaName
NA_LETTER_TRANSPARENT

letter transparency.

public static final MediaName
NA_LETTER_WHITE

white letter paper.

private static final long
serialVersionUID

Hides javax.print.attribute.standard.Media.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Constructor Summary

AccessConstructor and Description
protected
MediaName(int
Integer value
value
)

Constructs a new media name enumeration value with the given integer value.

Method Summary

Modifier and TypeMethod and Description
protected EnumSyntax[]

Returns:

the enumeration value table
getEnumValueTable
()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class MediaTray.

protected String[]

Returns:

the string table
getStringTable
()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class MediaTray.

Inherited from javax.print.attribute.standard.Media:
equalsgetCategorygetName

Field Detail

ISO_A4_TRANSPARENTback to summary
public static final MediaName ISO_A4_TRANSPARENT

A4 transparency.

ISO_A4_WHITEback to summary
public static final MediaName ISO_A4_WHITE

white A4 paper.

myEnumValueTableback to summary
private static final MediaName[] myEnumValueTable

The enumeration value table for class MediaTray.

myStringTableback to summary
private static final String[] myStringTable

The string table for class MediaTray.

NA_LETTER_TRANSPARENTback to summary
public static final MediaName NA_LETTER_TRANSPARENT

letter transparency.

NA_LETTER_WHITEback to summary
public static final MediaName NA_LETTER_WHITE

white letter paper.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.print.attribute.standard.Media.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial

Constructor Detail

MediaNameback to summary
protected MediaName(int value)

Constructs a new media name enumeration value with the given integer value.

Parameters
value:int

Integer value

Method Detail

getEnumValueTableback to summary
protected EnumSyntax[] getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class MediaTray.

Returns:EnumSyntax[]

the enumeration value table

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

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class MediaTray.

Returns:String[]

the string table

Annotations
@Override