public enum JACPDialogButton extends java.lang.Enum<JACPDialogButton>
| Enum Constant and Description |
|---|
CANCEL
The CANCEL-Button.
|
NO
The NO-Button.
|
OK
The OK-Button.
|
YES
The YES-Button.
|
| Modifier and Type | Method and Description |
|---|---|
static JACPDialogButton |
fromId(int id)
From id.
|
int |
getId()
Gets the id.
|
java.lang.String |
getLabel()
Gets the label.
|
void |
setId(int id)
Sets the id.
|
void |
setLabel(java.lang.String label)
Sets the label.
|
static JACPDialogButton |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JACPDialogButton[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JACPDialogButton OK
public static final JACPDialogButton CANCEL
public static final JACPDialogButton YES
public static final JACPDialogButton NO
public static JACPDialogButton[] values()
for (JACPDialogButton c : JACPDialogButton.values()) System.out.println(c);
public static JACPDialogButton valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static JACPDialogButton fromId(int id)
id - the idpublic int getId()
public void setId(int id)
id - the new idpublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - the new label