H
- @JsType(isNative=true, name="MouseEvent", namespace="<global>") public class NativeMouseEvent<H extends HTMLElement<H>> extends NativeUIEvent<H>
Modifier and Type | Field and Description |
---|---|
static int |
FIFTH_BUTTON |
static int |
FOURTH_BUTTON |
static int |
LEFT_BUTTON |
static int |
MIDDLE_BUTTON |
static int |
NO_BUTTON |
static int |
RIGHT_BUTTON |
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE, NONE
Constructor and Description |
---|
NativeMouseEvent() |
Modifier and Type | Method and Description |
---|---|
MouseButton |
getButton() |
Set<MouseButton> |
getButtons() |
int |
getClientX() |
int |
getClientY() |
boolean |
getModifierState(String keyArg) |
int |
getMovementX() |
int |
getMovementY() |
int |
getNativeButton() |
int |
getNativeButtons() |
double |
getOffsetX() |
double |
getOffsetY() |
int |
getPageX() |
int |
getPageY() |
String |
getRegion() |
H |
getRelatedTarget() |
int |
getScreenX() |
int |
getScreenY() |
int |
getX() |
int |
getY() |
boolean |
hasButton(MouseButton button) |
boolean |
isAltKey() |
boolean |
isCtrlKey() |
boolean |
isMetaKey() |
boolean |
isShiftKey() |
getDetail, getView
getCancelBubble, getCurrentTarget, getEventPhase, getEventType, getNativeEventPhase, getTarget, getTimeStamp, getType, isBubbles, isCancellable, isDefaultPrevented, isTrusted, preventDefault, setCancelBubble, stopImmediatePropagation, stopPropagation
cast, getOwnPropertyNames, hasOwnProperty, observe
@JsOverlay public static final int NO_BUTTON
@JsOverlay public static final int LEFT_BUTTON
@JsOverlay public static final int RIGHT_BUTTON
@JsOverlay public static final int MIDDLE_BUTTON
@JsOverlay public static final int FOURTH_BUTTON
@JsOverlay public static final int FIFTH_BUTTON
@JsProperty(name="altKey") public boolean isAltKey()
@JsOverlay public final MouseButton getButton()
@JsProperty(name="button") public int getNativeButton()
@JsProperty(name="buttons") public int getNativeButtons()
@JsOverlay public final Set<MouseButton> getButtons()
@JsOverlay public final boolean hasButton(MouseButton button)
@JsProperty(name="clientX") public int getClientX()
@JsProperty(name="clientY") public int getClientY()
@JsProperty(name="ctrlKey") public boolean isCtrlKey()
@JsProperty(name="metaKey") public boolean isMetaKey()
@JsProperty(name="movementX") public int getMovementX()
@JsProperty(name="movementY") public int getMovementY()
@JsProperty(name="offsetX") public double getOffsetX()
@JsProperty(name="offsetY") public double getOffsetY()
@JsProperty(name="pageX") public int getPageX()
@JsProperty(name="pageY") public int getPageY()
@JsProperty(name="region") public String getRegion()
@JsProperty(name="relatedTarget") public H getRelatedTarget()
@JsProperty(name="screenX") public int getScreenX()
@JsProperty(name="screenY") public int getScreenY()
@JsProperty(name="shiftKey") public boolean isShiftKey()
@JsProperty(name="X") public int getX()
@JsProperty(name="Y") public int getY()
public boolean getModifierState(String keyArg)
Copyright © 2018 Xalys. All rights reserved.