32 import javax.print.attribute.PrintJobAttribute;
33
34 /**
35 * Class JobSheets is a printing attribute class, an enumeration, that
36 * determines which job start and end sheets, if any, must be printed with a
37 * job. Class JobSheets declares keywords for standard job sheets values.
38 * Implementation- or site-defined names for a job sheets attribute may also be
39 * created by defining a subclass of class JobSheets.
40 * <P>
41 * The effect of a JobSheets attribute on multidoc print jobs (jobs with
42 * multiple documents) may be affected by the {@link MultipleDocumentHandling
43 * MultipleDocumentHandling} job attribute, depending on the meaning of the
44 * particular JobSheets value.
45 * <P>
46 * <B>IPP Compatibility:</B> The category name returned by
47 * <CODE>getName()</CODE> is the IPP attribute name. The
48 * enumeration's integer value is the IPP enum value. The
49 * <code>toString()</code> method returns the IPP string representation of
50 * the attribute value. For a subclass, the attribute value must be
51 * localized to give the IPP name and natural language values.
52 * <P>
53 *
54 * @author Alan Kaminsky
55 */
56 public class JobSheets extends EnumSyntax
57 implements PrintRequestAttribute, PrintJobAttribute {
58
59 private static final long serialVersionUID = -4735258056132519759L;
60
61 /**
62 * No job sheets are printed.
63 */
64 public static final JobSheets NONE = new JobSheets(0);
65
66 /**
67 * One or more site specific standard job sheets are printed. e.g. a
68 * single start sheet is printed, or both start and end sheets are
69 * printed.
70 */
71 public static final JobSheets STANDARD = new JobSheets(1);
72
|
32 import javax.print.attribute.PrintJobAttribute;
33
34 /**
35 * Class JobSheets is a printing attribute class, an enumeration, that
36 * determines which job start and end sheets, if any, must be printed with a
37 * job. Class JobSheets declares keywords for standard job sheets values.
38 * Implementation- or site-defined names for a job sheets attribute may also be
39 * created by defining a subclass of class JobSheets.
40 * <P>
41 * The effect of a JobSheets attribute on multidoc print jobs (jobs with
42 * multiple documents) may be affected by the {@link MultipleDocumentHandling
43 * MultipleDocumentHandling} job attribute, depending on the meaning of the
44 * particular JobSheets value.
45 * <P>
46 * <B>IPP Compatibility:</B> The category name returned by
47 * <CODE>getName()</CODE> is the IPP attribute name. The
48 * enumeration's integer value is the IPP enum value. The
49 * <code>toString()</code> method returns the IPP string representation of
50 * the attribute value. For a subclass, the attribute value must be
51 * localized to give the IPP name and natural language values.
52 *
53 * @author Alan Kaminsky
54 */
55 public class JobSheets extends EnumSyntax
56 implements PrintRequestAttribute, PrintJobAttribute {
57
58 private static final long serialVersionUID = -4735258056132519759L;
59
60 /**
61 * No job sheets are printed.
62 */
63 public static final JobSheets NONE = new JobSheets(0);
64
65 /**
66 * One or more site specific standard job sheets are printed. e.g. a
67 * single start sheet is printed, or both start and end sheets are
68 * printed.
69 */
70 public static final JobSheets STANDARD = new JobSheets(1);
71
|