public static enum MouseEvent.Button extends java.lang.Enum<MouseEvent.Button>
| Enum Constant and Description |
|---|
BACK
A fourth button.
|
FORWARD
A fifth button.
|
MAIN
A main mouse button.
|
MIDDLE
An auxiliary button.
|
RIGHT
A secondary button.
|
| Modifier and Type | Method and Description |
|---|---|
int |
number()
Returns a number of the button.
|
static MouseEvent.Button |
of(int number)
Returns the
Button instance for the given value. |
static MouseEvent.Button |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MouseEvent.Button[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MouseEvent.Button MAIN
public static final MouseEvent.Button MIDDLE
public static final MouseEvent.Button RIGHT
public static final MouseEvent.Button BACK
public static final MouseEvent.Button FORWARD
public static MouseEvent.Button[] values()
for (MouseEvent.Button c : MouseEvent.Button.values()) System.out.println(c);
public static MouseEvent.Button 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 MouseEvent.Button of(int number)
Button instance for the given value.java.lang.IllegalArgumentException - when there is no button associated with the given valuepublic int number()