public static enum MouseEvent.MouseButton extends java.lang.Enum<MouseEvent.MouseButton>
Enum Constant and Description |
---|
LEFT |
MIDDLE |
NONE
No mouse button occurs when no mouse button is currently clicked, e.g.
|
RIGHT |
Modifier and Type | Method and Description |
---|---|
static MouseEvent.MouseButton |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MouseEvent.MouseButton[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MouseEvent.MouseButton RIGHT
public static final MouseEvent.MouseButton LEFT
public static final MouseEvent.MouseButton MIDDLE
public static final MouseEvent.MouseButton NONE
public static MouseEvent.MouseButton[] values()
for (MouseEvent.MouseButton c : MouseEvent.MouseButton.values()) System.out.println(c);
public static MouseEvent.MouseButton 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 null