public enum MouseButton extends Enum<MouseButton>
int values in AWT.| Enum Constant and Description |
|---|
LEFT_BUTTON |
MIDDLE_BUTTON |
RIGHT_BUTTON |
| Modifier and Type | Field and Description |
|---|---|
int |
mask
The mouse button modifier.
|
| Modifier and Type | Method and Description |
|---|---|
static MouseButton |
lookup(int mask)
Returns the mouse button whose mask matches the given mask.
|
static MouseButton |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MouseButton[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MouseButton LEFT_BUTTON
public static final MouseButton MIDDLE_BUTTON
public static final MouseButton RIGHT_BUTTON
public final int mask
InputEventpublic static MouseButton[] values()
for (MouseButton c : MouseButton.values()) System.out.println(c);
public static 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 null@Nonnull public static MouseButton lookup(int mask)
BUTTON1_MASK,
BUTTON2_MASK, and BUTTON3_MASK in java.awt.event.InputEvent.mask - the mask of the button we are looking for.IllegalArgumentException - if the given mask is not a valid one.Copyright © 2014 AssertJ. All rights reserved.