Java com.google.gwt.user.client Event fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.user.client Event fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.user.client Event.

The text is from its open source code.

Subclass

com.google.gwt.user.client.Event has subclasses.
Click this link to see all its subclasses.

Field

intONBLUR
Fired when an element loses keyboard focus.
intONCHANGE
Fired when the value of an input element changes.
intONCLICK
Fired when the user clicks on an element.
intONDBLCLICK
Fired when the user double-clicks on an element.
intONERROR
Fired when an image encounters an error.
intONFOCUS
Fired when an element receives keyboard focus.
intONGESTURECHANGE
Fired when the user gesture changes.
intONGESTUREEND
Fired when the user gesture ends.
intONGESTURESTART
Fired when the user gesture starts.
intONKEYDOWN
Fired when the user depresses a key.
intONKEYPRESS
Fired when the a character is generated from a keypress (either directly or through auto-repeat).
intONKEYUP
Fired when the user releases a key.
intONLOAD
Fired when an element (normally an IMG) finishes loading.
intONLOSECAPTURE
Fired when an element that has mouse capture loses it.
intONMOUSEDOWN
Fired when the user depresses a mouse button over an element.
intONMOUSEMOVE
Fired when the mouse is moved within an element's area.
intONMOUSEOUT
Fired when the mouse is moved out of an element's area.
intONMOUSEOVER
Fired when the mouse is moved into an element's area.
intONMOUSEUP
Fired when the user releases a mouse button over an element.
intONMOUSEWHEEL
Fired when the user scrolls the mouse wheel over an element.
intONPASTE
Fired when the user pastes text into an input element.
intONSCROLL
Fired when a scrollable element's scroll offset changes.
intONTOUCHCANCEL
Fired when the user cancels touching an element.
intONTOUCHEND
Fired when the user ends touching an element.
intONTOUCHMOVE
Fired when the user moves while touching an element.
intONTOUCHSTART
Fired when the user starts touching an element.
intONCONTEXTMENU
Fired when the user requests an element's context menu (usually by right-clicking).
intFOCUSEVENTS
A bit-mask covering both focus events (focus and blur).
intKEYEVENTS
A bit-mask covering all keyboard events (down, up, and press).
intMOUSEEVENTS
A bit-mask covering all mouse events (down, up, move, over, and out), but not click, dblclick, or wheel events.
intTOUCHEVENTS
A bit-mask covering all touch events (start, move, end, cancel).
intGESTUREEVENTS
A bit-mask covering all gesture events (start, change, end).

Method

HandlerRegistrationaddNativePreviewHandler(final NativePreviewHandler handler)

Adds a NativePreviewHandler that will receive all events before they are fired to their handlers.

Eventas(NativeEvent event)
Converts the NativeEvent to Event.
voidcancelBubble(boolean cancel)
Cancels bubbling for the given event.
Tcast()
A helper method to enable cross-casting from any JavaScriptObject type to any other JavaScriptObject type.
booleanfireNativePreviewEvent(NativeEvent nativeEvent)
Fire a NativePreviewEvent for the native event.
booleangetAltKey()
Gets whether the ALT key was depressed when the given event occurred.
intgetButton()
Gets the mouse buttons that were depressed when the given event occurred.
JsArraygetChangedTouches()
Get an array of touches which have changed since the last touch event.
intgetCharCode()
Gets the Unicode codepoint of the character generated by this key event.
intgetClientX()
Gets the mouse x-position within the browser window's client area.
intgetClientY()
Gets the mouse y-position within the browser window's client area.
booleangetCtrlKey()
Gets whether the CTRL key was depressed when the given event occurred.
EventgetCurrentEvent()
Gets the current event that is being fired.
EventTargetgetCurrentEventTarget()
Gets the current target element of this event.
ElementgetCurrentTarget()
Gets the current target element of this event.
DataTransfergetDataTransfer()
Get the DataTransfer associated with the current drag event.
EventListenergetEventListener(Element elem)
Gets the EventListener that will receive events for the given element.
intgetEventsSunk(Element elem)
Gets the current set of events sunk by a given element.
EventTargetgetEventTarget()
Returns the element that was the actual target of the given event.
ElementgetFromElement()
Gets the element from which the mouse pointer was moved (only valid for Event#ONMOUSEOVER ).
intgetKeyCode()
Gets the key code (code associated with the physical key) associated with this event.
booleangetMetaKey()
Gets whether the META key was depressed when the given event occurred.
intgetMouseWheelVelocityY()
Gets the velocity of the mouse wheel associated with the event along the Y axis.
EventTargetgetRelatedEventTarget()
Gets the related target for this event.
ElementgetRelatedTarget()
Gets the related target for this event.
booleangetRepeat()
Gets the key-repeat state of this event.
intgetScreenX()
Gets the mouse x-position on the user's display.
booleangetShiftKey()
Gets whether the shift key was depressed when the given event occurred.
ElementgetTarget()
Returns the element that was the actual target of the given event.
ElementgetToElement()
Gets the element to which the mouse pointer was moved (only valid for Event#ONMOUSEOUT ).
JsArraygetTouches()
Get an array of touches which have changed since the last touch event.
StringgetType()
Gets the enumerated type of this event.
intgetTypeInt()
Gets the enumerated type of this event, as defined by #ONCLICK , #ONMOUSEDOWN , and so forth.
intgetTypeInt(String typeName)
Gets the enumerated type of this event given a valid event type name.
voidpreventDefault()
Prevents the browser from taking its default action for the given event.
voidreleaseCapture(Element elem)
Releases mouse capture on the given element.
voidsetCapture(Element elem)
Sets mouse-capture on the given element.
voidsetEventListener(Element elem, EventListener listener)
Sets the EventListener to receive events for the given element.
voidsinkEvents(Element elem, int eventBits)
Sets the current set of events sunk by a given element.
voidstopPropagation()
Stops the event from being propagated to parent elements.