|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gwtext.client.core.JsObject
com.gwtext.client.core.EventObject
public class EventObject
A normalized Event object. Can use DOM.eventGetType(Event) for determinint event type too.
Field Summary | |
---|---|
static int |
BACKSPACE
|
static int |
CONTROL
|
static int |
DELETE
|
static int |
DOWN
|
static int |
END
|
static int |
ENTER
|
static int |
ESC
|
static int |
F5
|
static int |
HOME
|
static int |
LEFT
|
static int |
PAGEDOWN
|
static int |
PAGEUP
|
static int |
RETURN
|
static int |
RIGHT
|
static int |
SHIFT
|
static int |
SPACE
|
static int |
TAB
|
static int |
UP
|
Fields inherited from class com.gwtext.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
EventObject(com.google.gwt.core.client.JavaScriptObject jsObj)
|
Method Summary | |
---|---|
com.google.gwt.user.client.Event |
getBrowserEvent()
Return the native browser event. |
int |
getCharCode()
Gets the key code for the event. |
int |
getKey()
Returns a normalized keyCode for the event. |
int |
getMouseButton()
|
int |
getPageX()
Gets the x coordinate of the event. |
int |
getPageY()
Gets the y coordinate of the event. |
com.google.gwt.user.client.Element |
getRelatedTarget()
Gets the related target. |
com.google.gwt.user.client.Element |
getTarget()
Gets the target for the event. |
com.google.gwt.user.client.Element |
getTarget(java.lang.String selector,
int maxDepth)
|
double |
getTime()
|
int |
getWheelDelta()
|
int[] |
getXY()
Gets the xy coordinates of the event. |
boolean |
hasModifier()
Returns true if the control, meta, shift or alt key was pressed during this event. |
static EventObject |
instance(com.google.gwt.core.client.JavaScriptObject event)
|
boolean |
isAltKey()
Return true if is Alt key. |
boolean |
isCtrlKey()
Return true if is Ctrl key. |
boolean |
isShiftKey()
Return true if is Shift key. |
void |
stopEvent()
Stop the event (preventDefault and stopPropagation) |
void |
stopPropagation()
Cancels bubbling of the event. |
boolean |
within(com.google.gwt.user.client.Element elem)
Returns true if the target of this event equals el or is a child of el |
boolean |
within(java.lang.String id)
Returns true if the target of this event equals el or is a child of el |
Methods inherited from class com.gwtext.client.core.JsObject |
---|
getJsObj, getProperties, isCreated, setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int BACKSPACE
public static int CONTROL
public static int DELETE
public static int DOWN
public static int END
public static int ENTER
public static int ESC
public static int F5
public static int HOME
public static int LEFT
public static int PAGEDOWN
public static int PAGEUP
public static int RETURN
public static int RIGHT
public static int SHIFT
public static int SPACE
public static int TAB
public static int UP
Constructor Detail |
---|
public EventObject(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
public static EventObject instance(com.google.gwt.core.client.JavaScriptObject event)
public int getCharCode()
public int getKey()
public com.google.gwt.user.client.Element getRelatedTarget()
public com.google.gwt.user.client.Element getTarget()
public com.google.gwt.user.client.Element getTarget(java.lang.String selector, int maxDepth)
public double getTime()
public int getWheelDelta()
public int[] getXY()
public int getPageX()
public int getPageY()
public boolean hasModifier()
public void stopEvent()
public void stopPropagation()
public boolean within(java.lang.String id)
id
- the element ID
public boolean within(com.google.gwt.user.client.Element elem)
elem
- the element
public boolean isAltKey()
public boolean isCtrlKey()
public boolean isShiftKey()
public int getMouseButton()
public com.google.gwt.user.client.Event getBrowserEvent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |