public static enum ClickEvent.Action extends Enum<ClickEvent.Action>
Enum Constant and Description |
---|
CHANGE_PAGE |
COPY_TO_CLIPBOARD |
OPEN_FILE |
OPEN_URL |
RUN_COMMAND |
SUGGEST_COMMAND |
Modifier and Type | Field and Description |
---|---|
private static Map<String,ClickEvent.Action> |
BY_NAME |
private String |
name |
private boolean |
userDefinable |
Modifier and Type | Method and Description |
---|---|
static ClickEvent.Action |
byName(String name) |
String |
getName() |
boolean |
isUserDefinable() |
static ClickEvent.Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClickEvent.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClickEvent.Action OPEN_URL
public static final ClickEvent.Action OPEN_FILE
public static final ClickEvent.Action RUN_COMMAND
public static final ClickEvent.Action SUGGEST_COMMAND
public static final ClickEvent.Action CHANGE_PAGE
public static final ClickEvent.Action COPY_TO_CLIPBOARD
private static final Map<String,ClickEvent.Action> BY_NAME
private final boolean userDefinable
private final String name
public static ClickEvent.Action[] values()
for (ClickEvent.Action c : ClickEvent.Action.values()) System.out.println(c);
public static ClickEvent.Action 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 boolean isUserDefinable()
public String getName()
public static ClickEvent.Action byName(String name)