public static enum MouseEventDetails.MouseButton extends Enum<MouseEventDetails.MouseButton>
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns a human readable text representing the button
|
static MouseEventDetails.MouseButton |
of(int button) |
static MouseEventDetails.MouseButton |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MouseEventDetails.MouseButton[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MouseEventDetails.MouseButton LEFT
public static final MouseEventDetails.MouseButton RIGHT
public static final MouseEventDetails.MouseButton MIDDLE
public static MouseEventDetails.MouseButton[] values()
for (MouseEventDetails.MouseButton c : MouseEventDetails.MouseButton.values()) System.out.println(c);
public static MouseEventDetails.MouseButton 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 String getName()
public static MouseEventDetails.MouseButton of(int button)
Copyright © 2020. All rights reserved.