H
- W
- public abstract class MouseEvent<H extends EventHandler,W extends Widget<?,?>,N extends NativeMouseEvent<?>> extends UIEvent<H,N>
UIEvent.HasBrowserEvent, UIEvent.UIType<H extends EventHandler>
Event.Type<H extends EventHandler>
Constructor and Description |
---|
MouseEvent() |
Modifier and Type | Method and Description |
---|---|
MouseButton |
getButton() |
int |
getClientX() |
int |
getClientY() |
<E extends Element<?>> |
getRelativeX(E target) |
int |
getRelativeX(Widget<?,?> target) |
<E extends Element<?>> |
getRelativeY(E target) |
int |
getRelativeY(Widget<?,?> target) |
int |
getScreenX() |
int |
getScreenY() |
int |
getX() |
int |
getY() |
boolean |
hasButton(MouseButton button) |
boolean |
isAltKey() |
boolean |
isCtrlKey() |
boolean |
isMetaKey() |
dispatch, getEventPhase, getNativeEvent, isInEventThread, preventDefault, setNativeEvent, stopImmediatePropagation, stopPropagation
assertLive, cast, checkIsInEventThread, getSource, getType, isLive, isPreventDefault, isStopPropagation, kill, releaseCapture, revive, setCapture, setCapture, setSource
public int getClientX()
public int getClientY()
@WillMeasure public <E extends Element<?>> int getRelativeX(E target)
@WillMeasure public <E extends Element<?>> int getRelativeY(E target)
@WillMeasure public int getRelativeX(Widget<?,?> target)
@WillMeasure public int getRelativeY(Widget<?,?> target)
public int getScreenX()
public int getScreenY()
@WillMeasure public int getX()
@WillMeasure public int getY()
public MouseButton getButton()
public boolean hasButton(MouseButton button)
public boolean isAltKey()
public boolean isCtrlKey()
public boolean isMetaKey()
Copyright © 2018 Xalys. All rights reserved.