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

public Class MediaTray

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

Class MediaTray is a subclass of Media. Class MediaTray is a printing attribute class, an enumeration, that specifies the media tray or bin for the job. This attribute can be used instead of specifying MediaSize or MediaName.

Class MediaTray declares keywords for standard media kind values. Implementation- or site-defined names for a media kind attribute may also be created by defining a subclass of class MediaTray.

IPP Compatibility: MediaTray is a representation class for values of the IPP "media" attribute which name paper trays.

Field Summary

Modifier and TypeField and Description
public static final MediaTray
BOTTOM

The bottom input tray in the printer.

public static final MediaTray
ENVELOPE

The envelope input tray in the printer.

public static final MediaTray
LARGE_CAPACITY

The large capacity input tray in the printer.

public static final MediaTray
MAIN

The main input tray in the printer.

public static final MediaTray
MANUAL

The manual feed input tray in the printer.

public static final MediaTray
MIDDLE

The middle input tray in the printer.

private static final MediaTray[]
myEnumValueTable

The enumeration value table for class MediaTray.

private static final String[]
myStringTable

The string table for class MediaTray.

private static final long
serialVersionUID

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

Use serialVersionUID from JDK 1.4 for interoperability.
public static final MediaTray
SIDE

The side input tray.

public static final MediaTray
TOP

The top input tray in the printer.

Constructor Summary

AccessConstructor and Description
protected
MediaTray(int
Integer value
value
)

Construct a new media tray enumeration value with the given integer value.

Method Summary

Modifier and TypeMethod and Description
protected EnumSyntax[]
getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class MediaTray.

protected String[]
getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class MediaTray.

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

Field Detail

BOTTOMback to summary
public static final MediaTray BOTTOM

The bottom input tray in the printer.

ENVELOPEback to summary
public static final MediaTray ENVELOPE

The envelope input tray in the printer.

LARGE_CAPACITYback to summary
public static final MediaTray LARGE_CAPACITY

The large capacity input tray in the printer.

MAINback to summary
public static final MediaTray MAIN

The main input tray in the printer.

MANUALback to summary
public static final MediaTray MANUAL

The manual feed input tray in the printer.

MIDDLEback to summary
public static final MediaTray MIDDLE

The middle input tray in the printer.

myEnumValueTableback to summary
private static final MediaTray[] myEnumValueTable

The enumeration value table for class MediaTray.

myStringTableback to summary
private static final String[] myStringTable

The string table for class MediaTray.

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
SIDEback to summary
public static final MediaTray SIDE

The side input tray.

TOPback to summary
public static final MediaTray TOP

The top input tray in the printer.

Constructor Detail

MediaTrayback to summary
protected MediaTray(int value)

Construct a new media tray 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.

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

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class MediaTray.

Annotations
@Override