|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.event.shared.GwtEvent<H>
com.google.gwt.event.dom.client.DomEvent<H>
com.maryanovsky.gwtutils.client.iphone.ui.touch.TouchEvent<H>
public abstract class TouchEvent<H extends EventHandler>
The base class for touch events.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.event.dom.client.DomEvent |
|---|
DomEvent.Type<H extends EventHandler> |
| Constructor Summary | |
|---|---|
TouchEvent()
|
|
| Method Summary | |
|---|---|
JsArray<Touch> |
getChangedTouches()
Returns the list of Touches which changed in this event. |
NativeTouchEvent |
getNativeTouchEvent()
Returns the underlying native touch event. |
PointView |
getTargetCoordinates(Touch touch)
Returns the location of the specified touch in the coordinate system of the target element. |
JsArray<Touch> |
getTargetTouches()
Returns the Touches for the target element. |
JsArray<Touch> |
getTouches()
Returns the list of Touches for all fingers currently touching
the screen. |
static void |
sinkAllTouchEvents(UIObject widget)
Sinks all touch events for the specified UIObject. |
static void |
unsinkAllTouchEvents(UIObject widget)
Stops sinking all touch events for the specified UIObject. |
| Methods inherited from class com.google.gwt.event.dom.client.DomEvent |
|---|
fireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, preventDefault, setNativeEvent, setRelativeElement, stopPropagation |
| Methods inherited from class com.google.gwt.event.shared.GwtEvent |
|---|
assertLive, dispatch, getSource, isLive, kill, revive, toDebugString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TouchEvent()
| Method Detail |
|---|
public NativeTouchEvent getNativeTouchEvent()
public final JsArray<Touch> getTouches()
Touches for all fingers currently touching
the screen.
public final JsArray<Touch> getChangedTouches()
Touches which changed in this event.
public final JsArray<Touch> getTargetTouches()
Touches for the target element.
public static void sinkAllTouchEvents(UIObject widget)
UIObject.
public static void unsinkAllTouchEvents(UIObject widget)
UIObject.
public final PointView getTargetCoordinates(Touch touch)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||