java.awt
Enum Dialog.ModalityType
java.lang.Object
java.lang.Enum<Dialog.ModalityType>
java.awt.Dialog.ModalityType
- All Implemented Interfaces:
- Serializable, Comparable<Dialog.ModalityType>
- Enclosing class:
- Dialog
public static enum Dialog.ModalityType
- extends Enum<Dialog.ModalityType>
APPLICATION_MODAL
public static final Dialog.ModalityType APPLICATION_MODAL
DOCUMENT_MODAL
public static final Dialog.ModalityType DOCUMENT_MODAL
MODELESS
public static final Dialog.ModalityType MODELESS
TOOLKIT_MODAL
public static final Dialog.ModalityType TOOLKIT_MODAL
values
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
valueOf
public static Dialog.ModalityType valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null