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