Example usage for Java com.google.gwt.dom.client NativeEvent fields, constructors, methods, implement or subclass
The text is from its open source code.
int | BUTTON_LEFT The left mouse button. |
int | BUTTON_MIDDLE The middle mouse button. |
int | BUTTON_RIGHT The right mouse button. |
T | cast() A helper method to enable cross-casting from any JavaScriptObject type to any other JavaScriptObject type. |
boolean | getAltKey() Gets whether the ALT key was depressed when the given event occurred. |
int | getButton() Gets the mouse buttons that were depressed when the given event occurred. |
JsArray | getChangedTouches() Get an array of touches which have changed since the last touch event. |
int | getCharCode() Gets the Unicode codepoint of the character generated by this key event. |
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. |
boolean | getCtrlKey() Gets whether the CTRL key was depressed when the given event occurred. |
EventTarget | getCurrentEventTarget() Gets the current target element of this event. |
DataTransfer | getDataTransfer() Get the DataTransfer associated with the current drag event. |
EventTarget | getEventTarget() Returns the element that was the actual target of the given event. |
int | getKeyCode() Gets the key code (code associated with the physical key) associated with this event. |
boolean | getMetaKey() Gets whether the META key was depressed when the given event occurred. |
int | getMouseWheelVelocityY() Gets the velocity of the mouse wheel associated with the event along the Y axis. |
EventTarget | getRelatedEventTarget() Gets the related target for this event. |
int | getScreenX() Gets the mouse x-position on the user's display. |
int | getScreenY() Gets the mouse y-position on the user's display. |
boolean | getShiftKey() Gets whether the shift key was depressed when the given event occurred. |
JsArray | getTouches() Get an array of touches which have changed since the last touch event. |
String | getType() Gets the enumerated type of this event. |
void | preventDefault() Prevents the browser from taking its default action for the given event. |
void | stopPropagation() Stops the event from being propagated to parent elements. |