com.maryanovsky.gwtutils.client.iphone.ui.touch
Class NativeTouchEvent

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.dom.client.NativeEvent
          extended by com.maryanovsky.gwtutils.client.iphone.ui.touch.NativeTouchEvent

public class NativeTouchEvent
extends NativeEvent

A JavaScript overlay type for native touch events.

Author:
Maryanovsky Alexander

Field Summary
 
Fields inherited from class com.google.gwt.dom.client.NativeEvent
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT
 
Constructor Summary
protected NativeTouchEvent()
          Protected constructor, required for JavaScript overlay types.
 
Method Summary
 JsArray<Touch> getChangedTouches()
          Retrieves the list of touches which changed.
 JsArray<Touch> getTargetTouches()
          Retrieves the touches for the target element.
 JsArray<Touch> getTouches()
          Retrieves the list of touches for all fingers touching the screen.
 
Methods inherited from class com.google.gwt.dom.client.NativeEvent
getAltKey, getButton, getClientX, getClientY, getCtrlKey, getCurrentEventTarget, getEventTarget, getKeyCode, getMetaKey, getMouseWheelVelocityY, getRelatedEventTarget, getScreenX, getScreenY, getShiftKey, getString, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NativeTouchEvent

protected NativeTouchEvent()
Protected constructor, required for JavaScript overlay types.

Method Detail

getTouches

public final JsArray<Touch> getTouches()
Retrieves the list of touches for all fingers touching the screen.


getChangedTouches

public final JsArray<Touch> getChangedTouches()
Retrieves the list of touches which changed.


getTargetTouches

public final JsArray<Touch> getTargetTouches()
Retrieves the touches for the target element.