|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.event.shared.GwtEvent<H>
com.google.gwt.event.dom.client.DomEvent<H>
com.google.gwt.event.dom.client.MouseEvent<H>
H
- handler typepublic abstract class MouseEvent<H extends EventHandler>
Abstract class representing mouse events.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.event.dom.client.DomEvent |
---|
DomEvent.Type<H extends EventHandler> |
Constructor Summary | |
---|---|
MouseEvent()
|
Method Summary | |
---|---|
int |
getClientX()
Gets the mouse x-position within the browser window's client area. |
int |
getClientY()
Gets the mouse y-position within the browser window's client area. |
int |
getNativeButton()
Gets the button value. |
int |
getRelativeX(Element target)
Gets the mouse x-position relative to a given element. |
int |
getRelativeY(Element target)
Gets the mouse y-position relative to a given element. |
int |
getScreenX()
Gets the mouse x-position on the user's display. |
int |
getScreenY()
Gets the mouse y-position on the user's display. |
int |
getX()
Gets the mouse x-position relative to the event's current target element. |
int |
getY()
Gets the mouse y-position relative to the event's current target element. |
boolean |
isAltKeyDown()
Is alt key down. |
boolean |
isControlKeyDown()
Is control key down. |
boolean |
isMetaKeyDown()
Is meta key down. |
boolean |
isShiftKeyDown()
Is shift key down. |
Methods inherited from class com.google.gwt.event.dom.client.DomEvent |
---|
fireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, preventDefault, setNativeEvent, setRelativeElement, stopPropagation |
Methods inherited from class com.google.gwt.event.shared.GwtEvent |
---|
assertLive, dispatch, getSource, isLive, kill, revive, toDebugString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MouseEvent()
Method Detail |
---|
public int getClientX()
public int getClientY()
public int getNativeButton()
NativeEvent.BUTTON_LEFT
,
NativeEvent.BUTTON_RIGHT
,
NativeEvent.BUTTON_MIDDLE
public int getRelativeX(Element target)
target
- the element whose coordinate system is to be used
public int getRelativeY(Element target)
target
- the element whose coordinate system is to be used
public int getScreenX()
public int getScreenY()
public int getX()
public int getY()
public boolean isAltKeyDown()
alt
key down.
public boolean isControlKeyDown()
control
key down.
public boolean isMetaKeyDown()
meta
key down.
public boolean isShiftKeyDown()
shift
key down.
|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |