C1.java revision 3233:b5d08bc0d224
1/*
2 * Copyright (c) 2009, 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.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24package pkg1;
25
26import java.io.IOException;
27import java.io.Serializable;
28
29/**
30 * A class comment for testing.
31 *
32 * @author      Bhavesh Patel
33 * @see C2
34 * @since       JDK1.0
35 */
36
37public class C1 implements Serializable {
38
39    /**
40     * This field indicates whether the C1 is undecorated.
41     *
42     * @see #setUndecorated(boolean)
43     * @since 1.4
44     * @serial
45     * @deprecated As of JDK version 1.5, replaced by
46     * {@link C1#setUndecorated(boolean) setUndecorated(boolean)}.
47     */
48     @Deprecated
49    public boolean undecorated = false;
50
51    private String title;
52
53    /**
54     * This enum specifies the possible modal exclusion types.
55     *
56     * @since 1.6
57     */
58    public static enum ModalExclusionType {
59        /**
60         * No modal exclusion.
61         */
62        NO_EXCLUDE,
63        /**
64         * <code>APPLICATION_EXCLUDE</code> indicates that a top-level window
65         * won't be blocked by any application-modal dialogs. Also, it isn't
66         * blocked by document-modal dialogs from outside of its child hierarchy.
67         */
68        APPLICATION_EXCLUDE
69    };
70
71    /**
72     * Constructor.
73     *
74     * @param title the title
75     * @param test boolean value
76     * @exception IllegalArgumentException if the <code>owner</code>'s
77     *     <code>GraphicsConfiguration</code> is not from a screen device
78     * @exception HeadlessException
79     */
80     public C1(String title, boolean test) {
81
82     }
83
84     public C1(String title) {
85
86     }
87
88    /**
89     * Method comments.
90     * @param  undecorated <code>true</code> if no decorations are
91     *         to be enabled;
92     *         <code>false</code> if decorations are to be enabled.
93     * @see    #readObject()
94     * @since 1.4
95     */
96    public void setUndecorated(boolean undecorated) {
97        /* Make sure we don't run in the middle of peer creation.*/
98    }
99
100    /**
101     * @see #setUndecorated(boolean)
102     */
103    public void readObject() throws IOException {
104
105    }
106}
107