bpatel@233: /*
ohair@554: * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
bpatel@233: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
bpatel@233: *
bpatel@233: * This code is free software; you can redistribute it and/or modify it
bpatel@233: * under the terms of the GNU General Public License version 2 only, as
ohair@554: * published by the Free Software Foundation. Oracle designates this
bpatel@233: * particular file as subject to the "Classpath" exception as provided
ohair@554: * by Oracle in the LICENSE file that accompanied this code.
bpatel@233: *
bpatel@233: * This code is distributed in the hope that it will be useful, but WITHOUT
bpatel@233: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
bpatel@233: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
bpatel@233: * version 2 for more details (a copy is included in the LICENSE file that
bpatel@233: * accompanied this code).
bpatel@233: *
bpatel@233: * You should have received a copy of the GNU General Public License version
bpatel@233: * 2 along with this work; if not, write to the Free Software Foundation,
bpatel@233: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
bpatel@233: *
ohair@554: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@554: * or visit www.oracle.com if you need additional information or have any
ohair@554: * questions.
bpatel@233: */
bpatel@233:
bpatel@233: package pkg1;
bpatel@233:
bpatel@233: import java.io.IOException;
bpatel@233: import java.io.Serializable;
bpatel@233:
bpatel@233: /**
bpatel@233: * A class comment for testing.
bpatel@233: *
bpatel@233: * @author Bhavesh Patel
bpatel@233: * @see C2
bpatel@233: * @since JDK1.0
bpatel@233: */
bpatel@233:
bpatel@233: public class C1 implements Serializable {
bpatel@233:
bpatel@233: /**
bpatel@233: * This field indicates whether the C1 is undecorated.
bpatel@233: *
bpatel@233: * @see #setUndecorated(boolean)
bpatel@233: * @since 1.4
bpatel@233: * @serial
bpatel@233: * @deprecated As of JDK version 1.5, replaced by
bpatel@233: * {@link C1#setUndecorated(boolean) setUndecorated(boolean)}.
bpatel@233: */
bpatel@233: @Deprecated
bpatel@233: public boolean undecorated = false;
bpatel@233:
bpatel@233: private String title;
bpatel@233:
bpatel@233: /**
bpatel@233: * This enum specifies the possible modal exclusion types.
bpatel@233: *
bpatel@233: * @since 1.6
bpatel@233: */
bpatel@233: public static enum ModalExclusionType {
bpatel@233: /**
bpatel@233: * No modal exclusion.
bpatel@233: */
bpatel@233: NO_EXCLUDE,
bpatel@233: /**
bpatel@233: * APPLICATION_EXCLUDE
indicates that a top-level window
bpatel@233: * won't be blocked by any application-modal dialogs. Also, it isn't
bpatel@233: * blocked by document-modal dialogs from outside of its child hierarchy.
bpatel@233: */
bpatel@233: APPLICATION_EXCLUDE
bpatel@233: };
bpatel@233:
bpatel@233: /**
bpatel@233: * Constructor.
bpatel@233: *
bpatel@233: * @param title the title
bpatel@233: * @param test boolean value
bpatel@233: * @exception IllegalArgumentException if the owner
's
bpatel@233: * GraphicsConfiguration
is not from a screen device
bpatel@233: * @exception HeadlessException
bpatel@233: */
bpatel@233: public C1(String title, boolean test) {
bpatel@233:
bpatel@233: }
bpatel@233:
bpatel@233: public C1(String title) {
bpatel@233:
bpatel@233: }
bpatel@233:
bpatel@233: /**
bpatel@233: * Method comments.
bpatel@233: * @param undecorated true
if no decorations are
bpatel@233: * to be enabled;
bpatel@233: * false
if decorations are to be enabled.
bpatel@233: * @see #readObject()
bpatel@233: * @since 1.4
bpatel@233: */
bpatel@233: public void setUndecorated(boolean undecorated) {
bpatel@233: /* Make sure we don't run in the middle of peer creation.*/
bpatel@233: }
bpatel@233:
bpatel@233: /**
bpatel@233: * @see #setUndecorated(boolean)
bpatel@233: */
bpatel@233: public void readObject() throws IOException {
bpatel@233:
bpatel@233: }
bpatel@233: }