public static enum Alert.AlertType extends Enum<Alert.AlertType>
Alert
class can use to pre-populate various properties.Enum Constant and Description |
---|
CONFIRMATION
The CONFIRMATION alert type configures the Alert dialog to appear in a
way that suggests the content of the dialog is seeking confirmation from
the user.
|
ERROR
The ERROR alert type configures the Alert dialog to appear in a
way that suggests that something has gone wrong.
|
INFORMATION
The INFORMATION alert type configures the Alert dialog to appear in a
way that suggests the content of the dialog is informing the user of
a piece of information.
|
NONE
The NONE alert type has the effect of not setting any default properties
in the Alert.
|
WARNING
The WARNING alert type configures the Alert dialog to appear in a
way that suggests the content of the dialog is warning the user about
some fact or action.
|
Modifier and Type | Method and Description |
---|---|
static Alert.AlertType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Alert.AlertType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Alert.AlertType NONE
public static final Alert.AlertType INFORMATION
public static final Alert.AlertType WARNING
public static final Alert.AlertType CONFIRMATION
public static final Alert.AlertType ERROR
public static Alert.AlertType[] values()
for (Alert.AlertType c : Alert.AlertType.values()) System.out.println(c);
public static Alert.AlertType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.