java.lang.Object | ||
↳ | com.google.gwt.core.client.JavaScriptObject | |
↳ | com.google.gwt.dom.client.NativeEvent |
Known Direct Subclasses |
The native dom event.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | BUTTON_LEFT | The left mouse button. | |||||||||
int | BUTTON_MIDDLE | The middle mouse button. | |||||||||
int | BUTTON_RIGHT | The right mouse button. |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Required constructor for GWT compiler to function.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets whether the ALT key was depressed when the given event occurred.
| |||||||||||
Gets the mouse buttons that were depressed when the given event occurred.
| |||||||||||
Get an array of touches which have changed since the last touch event.
| |||||||||||
Gets the Unicode codepoint of the character generated by this key event.
| |||||||||||
Gets the mouse x-position within the browser window's client area.
| |||||||||||
Gets the mouse y-position within the browser window's client area.
| |||||||||||
Gets whether the CTRL key was depressed when the given event occurred.
| |||||||||||
Gets the current target element of this event.
| |||||||||||
Returns the element that was the actual target of the given event.
| |||||||||||
Gets the key code (code associated with the physical key) associated with
this event.
| |||||||||||
Gets whether the META key was depressed when the given event occurred.
| |||||||||||
Gets the velocity of the mouse wheel associated with the event along the Y
axis.
| |||||||||||
Gets the related target for this event.
| |||||||||||
Get the rotation in degrees, with positive values indicating clockwise rotation.
| |||||||||||
Get the amount scaled since the gesture started, with 1.0 representing no scaling.
| |||||||||||
Gets the mouse x-position on the user's display.
| |||||||||||
Gets the mouse y-position on the user's display.
| |||||||||||
Gets whether the shift key was depressed when the given event occurred.
| |||||||||||
Gets a string representation of this event.
| |||||||||||
Get an array of touches which have changed since the last touch event.
| |||||||||||
Get an array of touches which have changed since the last touch event.
| |||||||||||
Gets the enumerated type of this event.
| |||||||||||
Prevents the browser from taking its default action for the given event.
| |||||||||||
Stops the event from being propagated to parent elements.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.core.client.JavaScriptObject
| |||||||||||
From class
java.lang.Object
|
The left mouse button.
The middle mouse button.
The right mouse button.
Required constructor for GWT compiler to function.
Gets whether the ALT key was depressed when the given event occurred.
true
if ALT was depressed when the event occurred
Gets the mouse buttons that were depressed when the given event occurred.
BUTTON_LEFT
,
BUTTON_MIDDLE
, and
BUTTON_RIGHT
Get an array of touches which have changed since the last touch event.
Gets the Unicode codepoint of the character generated by this key event.
Gets the mouse x-position within the browser window's client area.
Gets the mouse y-position within the browser window's client area.
Gets whether the CTRL key was depressed when the given event occurred.
true
if CTRL was depressed when the event occurred
Gets the current target element of this event. This is the element whose listener fired last, not the element which fired the event initially.
Returns the element that was the actual target of the given event.
Gets the key code (code associated with the physical key) associated with this event.
Gets whether the META key was depressed when the given event occurred.
true
if META was depressed when the event occurred
Gets the velocity of the mouse wheel associated with the event along the Y axis.
The velocity of the event is an artifical measurement for relative comparisons of wheel activity. It is affected by some non-browser factors, including choice of input hardware and mouse acceleration settings. The sign of the velocity measurement agrees with the screen coordinate system; negative values are towards the origin and positive values are away from the origin. Standard scrolling speed is approximately ten units per event.
Gets the related target for this event.
Get the rotation in degrees, with positive values indicating clockwise rotation.
Get the amount scaled since the gesture started, with 1.0 representing no scaling.
Gets the mouse x-position on the user's display.
Gets the mouse y-position on the user's display.
Gets whether the shift key was depressed when the given event occurred.
true
if shift was depressed when the event occurred
Gets a string representation of this event.
We do not override toString()
because it is final in
JavaScriptObject
.
Get an array of touches which have changed since the last touch event.
Get an array of touches which have changed since the last touch event.
Gets the enumerated type of this event.
Prevents the browser from taking its default action for the given event.
Stops the event from being propagated to parent elements.