Enum Constant and Description |
---|
CLICK |
CLOSE |
CONTEXTMENU |
COPY |
CUT |
DBLCLICK |
DRAG |
HOVERABLE |
MAXIMIZE |
MINIMIZE |
MOUSEDOWN |
MOUSEENTER |
MOUSELEAVE |
MOUSEMOVE |
MOUSEOUT |
MOUSEOVER |
MOUSEUP |
MOVABLE |
PASTE |
POPUPABLE_LEFT |
POPUPABLE_RIGHT |
WHEEL |
WINDOW_CLOSED |
WINDOW_ICONIFIED |
WINDOW_MAXIMIZED |
Modifier and Type | Field and Description |
---|---|
int |
awtEventCode
The corresponding AWT event code.
|
int |
code
The event code, as known by the JS code.
|
Modifier and Type | Method and Description |
---|---|
static MouseOps |
fromCode(int code)
Determine which
MouseOps is associated with the given code. |
boolean |
isWheel()
Determine if this is a wheel event.
|
static MouseOps |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MouseOps[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MouseOps CLICK
public static final MouseOps CONTEXTMENU
public static final MouseOps DBLCLICK
public static final MouseOps MOUSEDOWN
public static final MouseOps MOUSEENTER
public static final MouseOps MOUSELEAVE
public static final MouseOps MOUSEMOVE
public static final MouseOps MOUSEOVER
public static final MouseOps MOUSEOUT
public static final MouseOps MOUSEUP
public static final MouseOps WHEEL
public static final MouseOps DRAG
public static final MouseOps HOVERABLE
public static final MouseOps MOVABLE
public static final MouseOps WINDOW_CLOSED
public static final MouseOps WINDOW_ICONIFIED
public static final MouseOps WINDOW_MAXIMIZED
public static final MouseOps POPUPABLE_LEFT
public static final MouseOps POPUPABLE_RIGHT
public static final MouseOps COPY
public static final MouseOps CUT
public static final MouseOps PASTE
public static final MouseOps MINIMIZE
public static final MouseOps MAXIMIZE
public static final MouseOps CLOSE
public final int code
public final int awtEventCode
public static MouseOps[] values()
for (MouseOps c : MouseOps.values()) System.out.println(c);
public static MouseOps 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 MouseOps fromCode(int code)
MouseOps
is associated with the given code.code
- The event code, as sent by the JS code.MouseOps
.java.lang.IllegalArgumentException
- If the code
does not map to any of the known codes.public boolean isWheel()
true
if this is a mouse wheel event.