|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.dom.client.NativeEvent
com.google.gwt.user.client.Event
com.sencha.gxt.widget.core.client.event.XEvent
public class XEvent
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.Event |
|---|
Event.NativePreviewEvent, Event.NativePreviewHandler |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.Event |
|---|
FOCUSEVENTS, GESTUREEVENTS, KEYEVENTS, MOUSEEVENTS, ONBLUR, ONCHANGE, ONCLICK, ONCONTEXTMENU, ONDBLCLICK, ONERROR, ONFOCUS, ONGESTURECHANGE, ONGESTUREEND, ONGESTURESTART, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONLOAD, ONLOSECAPTURE, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, ONMOUSEWHEEL, ONPASTE, ONSCROLL, ONTOUCHCANCEL, ONTOUCHEND, ONTOUCHMOVE, ONTOUCHSTART, TOUCHEVENTS, UNDEFINED |
| Fields inherited from class com.google.gwt.dom.client.NativeEvent |
|---|
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT |
| Method Summary | |
|---|---|
boolean |
getCtrlOrMetaKey()
Returns true if the control or meta key was depressed. |
XElement |
getEventTargetEl()
Returns the event target element. |
XElement |
getTargetEl(java.lang.String selector,
int maxDepth)
Returns the matching parent using the specified selector. |
Point |
getXY()
Returns the mouse location. |
boolean |
isNavKeyPress()
Returns true if the key is a "navigation" key. |
boolean |
isNavKeyPress(int k)
Returns true if the key is a "navigation" key. |
boolean |
isRightClick()
Returns true if the event is a right click. |
boolean |
isSpecialKey()
Returns true if the key is a "special" key. |
boolean |
isSpecialKey(int k)
Returns true if the key is a "special" key. |
void |
stopEvent()
Stops the event (stopPropagation and preventDefault). |
boolean |
within(Element element)
Returns true if the target of this event equals or is a child
of the given element. |
boolean |
within(Element element,
boolean toElement)
Returns true if the target of this event equals or is a child
of the given element. |
| Methods inherited from class com.google.gwt.user.client.Event |
|---|
addEventPreview, addNativePreviewHandler, as, cancelBubble, fireNativePreviewEvent, getCurrentEvent, getCurrentTarget, getEventListener, getEventsSunk, getFromElement, getRelatedTarget, getRepeat, getTarget, getToElement, getTypeInt, getTypeInt, releaseCapture, removeEventPreview, setCapture, setEventListener, sinkEvents |
| Methods inherited from class com.google.gwt.dom.client.NativeEvent |
|---|
getAltKey, getButton, getChangedTouches, getCharCode, getClientX, getClientY, getCtrlKey, getCurrentEventTarget, getDataTransfer, getEventTarget, getKeyCode, getMetaKey, getMouseWheelVelocityY, getRelatedEventTarget, getRotation, getScale, getScreenX, getScreenY, getShiftKey, getString, getTargetTouches, getTouches, getType, preventDefault, stopPropagation |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public final boolean getCtrlOrMetaKey()
public final XElement getEventTargetEl()
public final XElement getTargetEl(java.lang.String selector,
int maxDepth)
selector - the CSS selectormaxDepth - the maximum number of parents to search
public final Point getXY()
public final boolean isNavKeyPress()
public final boolean isNavKeyPress(int k)
k - the key code
public final boolean isRightClick()
true if the event is a right click.
public final boolean isSpecialKey()
public final boolean isSpecialKey(int k)
k - the key code
public final void stopEvent()
public final boolean within(Element element)
true if the target of this event equals or is a child
of the given element.
element - the element
public final boolean within(Element element,
boolean toElement)
true if the target of this event equals or is a child
of the given element.
element - the elementtoElement - true to use NativeEvent.getRelatedEventTarget()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||