Example usage for Java com.google.gwt.user.client Event fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ONBLUR Fired when an element loses keyboard focus. |
int | ONCHANGE Fired when the value of an input element changes. |
int | ONCLICK Fired when the user clicks on an element. |
int | ONDBLCLICK Fired when the user double-clicks on an element. |
int | ONERROR Fired when an image encounters an error. |
int | ONFOCUS Fired when an element receives keyboard focus. |
int | ONGESTURECHANGE Fired when the user gesture changes. |
int | ONGESTUREEND Fired when the user gesture ends. |
int | ONGESTURESTART Fired when the user gesture starts. |
int | ONKEYDOWN Fired when the user depresses a key. |
int | ONKEYPRESS Fired when the a character is generated from a keypress (either directly or through auto-repeat). |
int | ONKEYUP Fired when the user releases a key. |
int | ONLOAD Fired when an element (normally an IMG) finishes loading. |
int | ONLOSECAPTURE Fired when an element that has mouse capture loses it. |
int | ONMOUSEDOWN Fired when the user depresses a mouse button over an element. |
int | ONMOUSEMOVE Fired when the mouse is moved within an element's area. |
int | ONMOUSEOUT Fired when the mouse is moved out of an element's area. |
int | ONMOUSEOVER Fired when the mouse is moved into an element's area. |
int | ONMOUSEUP Fired when the user releases a mouse button over an element. |
int | ONMOUSEWHEEL Fired when the user scrolls the mouse wheel over an element. |
int | ONPASTE Fired when the user pastes text into an input element. |
int | ONSCROLL Fired when a scrollable element's scroll offset changes. |
int | ONTOUCHCANCEL Fired when the user cancels touching an element. |
int | ONTOUCHEND Fired when the user ends touching an element. |
int | ONTOUCHMOVE Fired when the user moves while touching an element. |
int | ONTOUCHSTART Fired when the user starts touching an element. |
int | ONCONTEXTMENU Fired when the user requests an element's context menu (usually by right-clicking). |
int | FOCUSEVENTS A bit-mask covering both focus events (focus and blur). |
int | KEYEVENTS A bit-mask covering all keyboard events (down, up, and press). |
int | MOUSEEVENTS A bit-mask covering all mouse events (down, up, move, over, and out), but not click, dblclick, or wheel events. |
int | TOUCHEVENTS A bit-mask covering all touch events (start, move, end, cancel). |
int | GESTUREEVENTS A bit-mask covering all gesture events (start, change, end). |
HandlerRegistration | addNativePreviewHandler(final NativePreviewHandler handler) Adds a NativePreviewHandler that will receive all events before they are fired to their handlers. |
Event | as(NativeEvent event) Converts the NativeEvent to Event. |
void | cancelBubble(boolean cancel) Cancels bubbling for the given event. |
T | cast() A helper method to enable cross-casting from any JavaScriptObject type to any other JavaScriptObject type. |
boolean | fireNativePreviewEvent(NativeEvent nativeEvent) Fire a NativePreviewEvent for the native event. |
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. |
Event | getCurrentEvent() Gets the current event that is being fired. |
EventTarget | getCurrentEventTarget() Gets the current target element of this event. |
Element | getCurrentTarget() Gets the current target element of this event. |
DataTransfer | getDataTransfer() Get the DataTransfer associated with the current drag event. |
EventListener | getEventListener(Element elem) Gets the EventListener that will receive events for the given element. |
int | getEventsSunk(Element elem) Gets the current set of events sunk by a given element. |
EventTarget | getEventTarget() Returns the element that was the actual target of the given event. |
Element | getFromElement() Gets the element from which the mouse pointer was moved (only valid for Event#ONMOUSEOVER ). |
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. |
Element | getRelatedTarget() Gets the related target for this event. |
boolean | getRepeat() Gets the key-repeat state of this event. |
int | getScreenX() Gets the mouse x-position on the user's display. |
boolean | getShiftKey() Gets whether the shift key was depressed when the given event occurred. |
Element | getTarget() Returns the element that was the actual target of the given event. |
Element | getToElement() Gets the element to which the mouse pointer was moved (only valid for Event#ONMOUSEOUT ). |
JsArray | getTouches() Get an array of touches which have changed since the last touch event. |
String | getType() Gets the enumerated type of this event. |
int | getTypeInt() Gets the enumerated type of this event, as defined by #ONCLICK , #ONMOUSEDOWN , and so forth. |
int | getTypeInt(String typeName) Gets the enumerated type of this event given a valid event type name. |
void | preventDefault() Prevents the browser from taking its default action for the given event. |
void | releaseCapture(Element elem) Releases mouse capture on the given element. |
void | setCapture(Element elem) Sets mouse-capture on the given element. |
void | setEventListener(Element elem, EventListener listener) Sets the EventListener to receive events for the given element. |
void | sinkEvents(Element elem, int eventBits) Sets the current set of events sunk by a given element. |
void | stopPropagation() Stops the event from being propagated to parent elements. |