|
1 /* |
|
2 * Copyright 2009 Sun Microsystems, Inc. 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. Sun designates this |
|
8 * particular file as subject to the "Classpath" exception as provided |
|
9 * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 * CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 * have any questions. |
|
24 */ |
|
25 |
|
26 package pkg1; |
|
27 |
|
28 import java.io.IOException; |
|
29 import java.io.Serializable; |
|
30 |
|
31 /** |
|
32 * A class comment for testing. |
|
33 * |
|
34 * @author Bhavesh Patel |
|
35 * @see C2 |
|
36 * @since JDK1.0 |
|
37 */ |
|
38 |
|
39 public class C1 implements Serializable { |
|
40 |
|
41 /** |
|
42 * This field indicates whether the C1 is undecorated. |
|
43 * |
|
44 * @see #setUndecorated(boolean) |
|
45 * @since 1.4 |
|
46 * @serial |
|
47 * @deprecated As of JDK version 1.5, replaced by |
|
48 * {@link C1#setUndecorated(boolean) setUndecorated(boolean)}. |
|
49 */ |
|
50 @Deprecated |
|
51 public boolean undecorated = false; |
|
52 |
|
53 private String title; |
|
54 |
|
55 /** |
|
56 * This enum specifies the possible modal exclusion types. |
|
57 * |
|
58 * @since 1.6 |
|
59 */ |
|
60 public static enum ModalExclusionType { |
|
61 /** |
|
62 * No modal exclusion. |
|
63 */ |
|
64 NO_EXCLUDE, |
|
65 /** |
|
66 * <code>APPLICATION_EXCLUDE</code> indicates that a top-level window |
|
67 * won't be blocked by any application-modal dialogs. Also, it isn't |
|
68 * blocked by document-modal dialogs from outside of its child hierarchy. |
|
69 */ |
|
70 APPLICATION_EXCLUDE |
|
71 }; |
|
72 |
|
73 /** |
|
74 * Constructor. |
|
75 * |
|
76 * @param title the title |
|
77 * @param test boolean value |
|
78 * @exception IllegalArgumentException if the <code>owner</code>'s |
|
79 * <code>GraphicsConfiguration</code> is not from a screen device |
|
80 * @exception HeadlessException |
|
81 */ |
|
82 public C1(String title, boolean test) { |
|
83 |
|
84 } |
|
85 |
|
86 public C1(String title) { |
|
87 |
|
88 } |
|
89 |
|
90 /** |
|
91 * Method comments. |
|
92 * @param undecorated <code>true</code> if no decorations are |
|
93 * to be enabled; |
|
94 * <code>false</code> if decorations are to be enabled. |
|
95 * @see #readObject() |
|
96 * @since 1.4 |
|
97 */ |
|
98 public void setUndecorated(boolean undecorated) { |
|
99 /* Make sure we don't run in the middle of peer creation.*/ |
|
100 } |
|
101 |
|
102 /** |
|
103 * @see #setUndecorated(boolean) |
|
104 */ |
|
105 public void readObject() throws IOException { |
|
106 |
|
107 } |
|
108 } |