Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
Sample
Document
Enum java.awt.Dialog.ModalityType
Inherited members: ShowHide
Deprecated: ShowHide
View: ClientSubclassPackageImplementation
java.awt

Enum Dialog.ModalityType

  • java.lang.Object
    • java.lang.Enum<Dialog.ModalityType>
      • java.awt.Dialog.ModalityType
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Dialog.ModalityType>
    Enclosing class:
    Dialog
    public static enum Dialog.ModalityType extends java.lang.Enum<Dialog.ModalityType>
    Modal dialogs block all input to some top-level windows. Whether a particular window is blocked depends on dialog's type of modality; this is called the "scope of blocking". The ModalityType enum specifies modal types and their associated scopes.
    Since:
    1.6
    See Also:
    Dialog.getModalityType(), Dialog.setModalityType(java.awt.Dialog.ModalityType), Toolkit.isModalityTypeSupported(java.awt.Dialog.ModalityType)
    • Enum Constants 
      Enum Constant and Description
      Ordinary member indicator APPLICATION_MODAL Reveal DetailHide Detail
      APPLICATION_MODAL
      An APPLICATION_MODAL dialog blocks all top-level windows from the same Java application except those from its own child hierarchy.
      public static final Dialog.ModalityType APPLICATION_MODAL
      An APPLICATION_MODAL dialog blocks all top-level windows from the same Java application except those from its own child hierarchy. If there are several applets launched in a browser, they can be treated either as separate applications or a single one. This behavior is implementation-dependent.
      Ordinary member indicator DOCUMENT_MODAL Reveal DetailHide Detail
      DOCUMENT_MODAL
      A DOCUMENT_MODAL dialog blocks input to all top-level windows from the same document except those from its own child hierarchy.
      public static final Dialog.ModalityType DOCUMENT_MODAL
      A DOCUMENT_MODAL dialog blocks input to all top-level windows from the same document except those from its own child hierarchy. A document is a top-level window without an owner. It may contain child windows that, together with the top-level window are treated as a single solid document. Since every top-level window must belong to some document, its root can be found as the top-nearest window without an owner.
      Ordinary member indicator MODELESS Reveal DetailHide Detail
      MODELESS
      MODELESS dialog doesn't block any top-level windows.
      public static final Dialog.ModalityType MODELESS
      MODELESS dialog doesn't block any top-level windows.
      Ordinary member indicator TOOLKIT_MODAL Reveal DetailHide Detail
      TOOLKIT_MODAL
      A TOOLKIT_MODAL dialog blocks all top-level windows run from the same toolkit except those from its own child hierarchy.
      public static final Dialog.ModalityType TOOLKIT_MODAL
      A TOOLKIT_MODAL dialog blocks all top-level windows run from the same toolkit except those from its own child hierarchy. If there are several applets launched in a browser, all of them run with the same toolkit; thus, a toolkit-modal dialog displayed by an applet may affect other applets and all windows of the browser instance which embeds the Java runtime environment for this toolkit. Special AWTPermission "toolkitModality" must be granted to use toolkit-modal dialogs. If a TOOLKIT_MODAL dialog is being created and this permission is not granted, a SecurityException will be thrown, and no dialog will be created. If a modality type is being changed to TOOLKIT_MODAL and this permission is not granted, a SecurityException will be thrown, and the modality type will be left unchanged.
    • Static Methods 
      Modifier and Type Static Method and Description
      Ordinary member indicator valueOf Reveal DetailHide Detail
      static Dialog.ModalityType valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      public static Dialog.ModalityType valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
      Ordinary member indicator values Reveal DetailHide Detail
      static Dialog.ModalityType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      public static Dialog.ModalityType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
      for (Dialog.ModalityType c : Dialog.ModalityType.values())
          System.out.println(c);
      
      Returns:
      an array containing the constants of this enum type, in the order they are declared
      • Static methods inherited from class java.lang.Enum

        valueOf
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge