13842
|
1 |
/*
|
|
2 |
* Copyright (c) 2012, 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
|
32337
|
7 |
* published by the Free Software Foundation.
|
13842
|
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 |
package pkg1;
|
|
24 |
|
|
25 |
import java.io.IOException;
|
|
26 |
import java.io.Serializable;
|
|
27 |
|
|
28 |
/**
|
|
29 |
* A class comment for testing.
|
|
30 |
*
|
|
31 |
* @author Bhavesh Patel
|
|
32 |
* @since JDK1.0
|
|
33 |
*/
|
|
34 |
public class C1 implements Serializable {
|
|
35 |
|
|
36 |
/**
|
|
37 |
* This field indicates whether the C1 is undecorated.
|
|
38 |
*
|
|
39 |
* @see #setUndecorated(boolean)
|
|
40 |
* @since 1.4
|
|
41 |
* @serial
|
|
42 |
* @deprecated As of JDK version 1.5, replaced by
|
|
43 |
* {@link C1#setUndecorated(boolean) setUndecorated(boolean)}.
|
|
44 |
*/
|
|
45 |
@Deprecated
|
|
46 |
public boolean undecorated = false;
|
|
47 |
|
|
48 |
/**
|
|
49 |
* This enum specifies the possible modal exclusion types.
|
|
50 |
*
|
|
51 |
* @since 1.6
|
|
52 |
*/
|
|
53 |
public static enum ModalExclusionType {
|
|
54 |
|
|
55 |
/**
|
|
56 |
* No modal exclusion.
|
|
57 |
*/
|
|
58 |
NO_EXCLUDE,
|
|
59 |
/**
|
|
60 |
* <code>APPLICATION_EXCLUDE</code> indicates that a top-level window
|
|
61 |
* won't be blocked by any application-modal dialogs. Also, it isn't
|
|
62 |
* blocked by document-modal dialogs from outside of its child hierarchy.
|
|
63 |
*/
|
|
64 |
APPLICATION_EXCLUDE
|
|
65 |
};
|
|
66 |
|
|
67 |
/**
|
|
68 |
* Constructor.
|
|
69 |
*
|
|
70 |
* @param title the title
|
|
71 |
* @param test boolean value
|
|
72 |
* @exception IllegalArgumentException if the <code>owner</code>'s
|
|
73 |
* <code>GraphicsConfiguration</code> is not from a screen device
|
|
74 |
* @exception HeadlessException
|
|
75 |
*/
|
|
76 |
public C1(String title, boolean test) {
|
|
77 |
}
|
|
78 |
|
|
79 |
public C1(String title) {
|
|
80 |
}
|
|
81 |
|
|
82 |
/**
|
|
83 |
* Method comments.
|
|
84 |
* @param undecorated <code>true</code> if no decorations are
|
|
85 |
* to be enabled;
|
|
86 |
* <code>false</code> if decorations are to be enabled.
|
|
87 |
* @see #readObject()
|
|
88 |
* @since 1.4
|
|
89 |
*/
|
|
90 |
public void setUndecorated(boolean undecorated) {
|
|
91 |
/* Make sure we don't run in the middle of peer creation.*/
|
|
92 |
}
|
|
93 |
|
|
94 |
/**
|
|
95 |
* @see #setUndecorated(boolean)
|
|
96 |
*/
|
|
97 |
public void readObject() throws IOException {
|
|
98 |
}
|
|
99 |
}
|