Serializable
, Comparable<MouseEvent.Button>
public static enum MouseEvent.Button extends Enum<MouseEvent.Button>
Enum Constant | Description |
---|---|
Button1 |
|
Button2 |
|
Button3 |
|
NoButton |
|
WheelDown |
|
WheelUp |
Modifier and Type | Method | Description |
---|---|---|
static MouseEvent.Button |
valueOf(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 NoButton
public static final MouseEvent.Button Button1
public static final MouseEvent.Button Button2
public static final MouseEvent.Button Button3
public static final MouseEvent.Button WheelUp
public static final MouseEvent.Button WheelDown
public static MouseEvent.Button[] values()
for (MouseEvent.Button c : MouseEvent.Button.values()) System.out.println(c);
public static MouseEvent.Button 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 nullCopyright © 2020. All rights reserved.