public enum MouseEventButton extends java.lang.Enum<MouseEventButton>
Enum Constant and Description |
---|
MOUSE_LEFT_BUTTON |
MOUSE_MID_BUTTON |
MOUSE_NO_BUTTON |
MOUSE_PEN_BUTTON |
MOUSE_RIGHT_BUTTON |
MOUSE_X1_BUTTON |
MOUSE_X2_BUTTON |
Modifier and Type | Method and Description |
---|---|
static MouseEventButton |
from(long value) |
static MouseEventButton |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MouseEventButton[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MouseEventButton MOUSE_NO_BUTTON
public static final MouseEventButton MOUSE_LEFT_BUTTON
public static final MouseEventButton MOUSE_MID_BUTTON
public static final MouseEventButton MOUSE_RIGHT_BUTTON
public static final MouseEventButton MOUSE_X1_BUTTON
public static final MouseEventButton MOUSE_X2_BUTTON
public static final MouseEventButton MOUSE_PEN_BUTTON
public static MouseEventButton[] values()
for (MouseEventButton c : MouseEventButton.values()) System.out.println(c);
public static MouseEventButton 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 MouseEventButton from(long value)