public static enum MouseListener.MouseButton extends Enum<MouseListener.MouseButton>
Enum Constant and Description |
---|
FIRST_BUTTON
Value for first mouse button; often the left one.
|
OTHER_BUTTON
Value for all others mouse buttons.
|
SECOND_BUTTON
Value for second mouse button; often the middle one.
|
THIRD_BUTTON
Value for third mouse button; often the right one.
|
Modifier and Type | Method and Description |
---|---|
static MouseListener.MouseButton |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MouseListener.MouseButton[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MouseListener.MouseButton FIRST_BUTTON
public static final MouseListener.MouseButton OTHER_BUTTON
public static final MouseListener.MouseButton SECOND_BUTTON
public static final MouseListener.MouseButton THIRD_BUTTON
public static MouseListener.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 static MouseListener.MouseButton[] values()
for (MouseListener.MouseButton c : MouseListener.MouseButton.values()) System.out.println(c);