javax.print.attribute.standard
Class MediaTray

java.lang.Object
  extended by javax.print.attribute.EnumSyntax
      extended by javax.print.attribute.standard.Media
          extended by javax.print.attribute.standard.MediaTray
All Implemented Interfaces:
Serializable, Cloneable, Attribute, DocAttribute, PrintJobAttribute, PrintRequestAttribute

public class MediaTray
extends Media

MediaTray is a subclass of the Media printing attribute and provides selection of media to be used by the means of the input tray of the printer. The class pre-defines commonly available types of input trays in printers. This media type enumeration may be used in alternative to MediaSizeName/MediaName.

IPP Compatibility: MediaTray is not an IPP 1.1 attribute on its own. It provides parts of the media attribute type values.

See Also:
Serialized Form

Field Summary
static MediaTray BOTTOM
          Bottom tray
static MediaTray ENVELOPE
          Envelope tray
static MediaTray LARGE_CAPACITY
          Large capacity tray
static MediaTray MAIN
          Main tray
static MediaTray MANUAL
          Manual-feed tray
static MediaTray MIDDLE
          Middle tray
static MediaTray SIDE
          Side tray
static MediaTray TOP
          Top tray
 
Constructor Summary
protected MediaTray(int i)
          Creates a MediaTray object.
 
Method Summary
protected  EnumSyntax[] getEnumValueTable()
          Returns a table with the enumeration values for this object.
protected  String[] getStringTable()
          Returns a table with the enumeration values represented as strings for this object.
 
Methods inherited from class javax.print.attribute.standard.Media
equals, getCategory, getName
 
Methods inherited from class javax.print.attribute.EnumSyntax
clone, getOffset, getValue, hashCode, readResolve, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TOP

public static final MediaTray TOP
Top tray


MIDDLE

public static final MediaTray MIDDLE
Middle tray


BOTTOM

public static final MediaTray BOTTOM
Bottom tray


ENVELOPE

public static final MediaTray ENVELOPE
Envelope tray


MANUAL

public static final MediaTray MANUAL
Manual-feed tray


LARGE_CAPACITY

public static final MediaTray LARGE_CAPACITY
Large capacity tray


MAIN

public static final MediaTray MAIN
Main tray


SIDE

public static final MediaTray SIDE
Side tray

Constructor Detail

MediaTray

protected MediaTray(int i)
Creates a MediaTray object.

Parameters:
i - the enum value.
Method Detail

getStringTable

protected String[] getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Overrides:
getStringTable in class EnumSyntax
Returns:
The enumeration values as strings.

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
Returns a table with the enumeration values for this object.

Overrides:
getEnumValueTable in class EnumSyntax
Returns:
The enumeration values.