public static enum Dialogs.DialogIcon extends Enum<Dialogs.DialogIcon>
| Enum Constant and Description |
|---|
ERROR
Normally a red octagon with an exclamation mark.
|
INFORMATION
Normally an 'i' icon.
|
NO_ICON
Display no icon in the dialog (also frees up the space that the icon would normally occupy).
|
QUESTION
Normally a question mark.
|
WARNING
Normally a yellow triangle with an exclamation mark.
|
| Modifier and Type | Method and Description |
|---|---|
Icon |
getIcon()
Get the icon for this
DialogIcon |
static Dialogs.DialogIcon |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Dialogs.DialogIcon[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Dialogs.DialogIcon WARNING
public static final Dialogs.DialogIcon ERROR
public static final Dialogs.DialogIcon QUESTION
public static final Dialogs.DialogIcon INFORMATION
public static final Dialogs.DialogIcon NO_ICON
public static Dialogs.DialogIcon[] values()
for (Dialogs.DialogIcon c : Dialogs.DialogIcon.values()) System.out.println(c);
public static Dialogs.DialogIcon 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 nullpublic Icon getIcon()
DialogIconDialogIcon or null if it doesn't have an icon.