1 /*
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
28 import javax.print.attribute.EnumSyntax;
29 import javax.print.attribute.PrintRequestAttribute;
30
31 /**
32 * Class DialogTypeSelection is a printing attribute class, an enumeration,
33 * that indicates the user dialog type to be used for specifying
34 * printing options.
35 * If {@code NATIVE} is specified, then where available, a native
36 * platform dialog is displayed.
37 * If {@code COMMON} is specified, a cross-platform print dialog is displayed.
38 *
39 * This option to specify a native dialog for use with an IPP attribute
40 * set provides a standard way to reflect back of the setting and option
41 * changes made by a user to the calling application, and integrates
42 * the native dialog into the Java printing APIs.
43 * But note that some options and settings in a native dialog may not
44 * necessarily map to IPP attributes as they may be non-standard platform,
45 * or even printer specific options.
46 * <P>
47 * <B>IPP Compatibility:</B> This is not an IPP attribute.
48 * <P>
49 * @since 1.7
50 *
51 */
52 public final class DialogTypeSelection extends EnumSyntax
53 implements PrintRequestAttribute {
54
55 private static final long serialVersionUID = 7518682952133256029L;
56
57 /**
58 *
59 */
60 public static final DialogTypeSelection
61 NATIVE = new DialogTypeSelection(0);
62
63 /**
64 *
65 */
66 public static final DialogTypeSelection
67 COMMON = new DialogTypeSelection(1);
68
|
1 /*
2 * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
28 import javax.print.attribute.EnumSyntax;
29 import javax.print.attribute.PrintRequestAttribute;
30
31 /**
32 * Class DialogTypeSelection is a printing attribute class, an enumeration,
33 * that indicates the user dialog type to be used for specifying
34 * printing options.
35 * If {@code NATIVE} is specified, then where available, a native
36 * platform dialog is displayed.
37 * If {@code COMMON} is specified, a cross-platform print dialog is displayed.
38 *
39 * This option to specify a native dialog for use with an IPP attribute
40 * set provides a standard way to reflect back of the setting and option
41 * changes made by a user to the calling application, and integrates
42 * the native dialog into the Java printing APIs.
43 * But note that some options and settings in a native dialog may not
44 * necessarily map to IPP attributes as they may be non-standard platform,
45 * or even printer specific options.
46 * <P>
47 * <B>IPP Compatibility:</B> This is not an IPP attribute.
48 *
49 * @since 1.7
50 *
51 */
52 public final class DialogTypeSelection extends EnumSyntax
53 implements PrintRequestAttribute {
54
55 private static final long serialVersionUID = 7518682952133256029L;
56
57 /**
58 *
59 */
60 public static final DialogTypeSelection
61 NATIVE = new DialogTypeSelection(0);
62
63 /**
64 *
65 */
66 public static final DialogTypeSelection
67 COMMON = new DialogTypeSelection(1);
68
|