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