1 7 package javax.print.attribute.standard; 8 9 import java.util.Locale ; 10 11 import javax.print.attribute.Attribute ; 12 import javax.print.attribute.EnumSyntax ; 13 14 15 30 public class MediaTray extends Media implements Attribute { 31 32 private static final long serialVersionUID = -982503611095214703L; 33 34 37 public static final MediaTray TOP = new MediaTray (0); 38 39 42 public static final MediaTray MIDDLE = new MediaTray (1); 43 44 47 public static final MediaTray BOTTOM = new MediaTray (2); 48 49 52 public static final MediaTray ENVELOPE = new MediaTray (3); 53 54 57 public static final MediaTray MANUAL = new MediaTray (4); 58 59 62 public static final MediaTray LARGE_CAPACITY = new MediaTray (5); 63 64 67 public static final MediaTray MAIN = new MediaTray (6); 68 69 72 public static final MediaTray SIDE = new MediaTray (7); 73 74 80 protected MediaTray(int value) { 81 super (value); 82 } 83 84 private static final String [] myStringTable ={ 85 "top", 86 "middle", 87 "bottom", 88 "envelope", 89 "manual", 90 "large-capacity", 91 "main", 92 "side" 93 }; 94 95 private static final MediaTray [] myEnumValueTable = { 96 TOP, 97 MIDDLE, 98 BOTTOM, 99 ENVELOPE, 100 MANUAL, 101 LARGE_CAPACITY, 102 MAIN, 103 SIDE 104 }; 105 106 109 protected String [] getStringTable() 110 { 111 return (String [])myStringTable.clone(); 112 } 113 114 117 protected EnumSyntax [] getEnumValueTable() { 118 return (EnumSyntax [])myEnumValueTable.clone(); 119 } 120 121 122 } 123 | Popular Tags |