public abstract class

TouchEvent

extends HumanInputEvent<H extends EventHandler>
java.lang.Object
   ↳ com.google.gwt.event.shared.GwtEvent<H extends com.google.gwt.event.shared.EventHandler>
     ↳ com.google.gwt.event.dom.client.DomEvent<H extends com.google.gwt.event.shared.EventHandler>
       ↳ com.google.gwt.event.dom.client.HumanInputEvent<H extends com.google.gwt.event.shared.EventHandler>
         ↳ com.google.gwt.event.dom.client.TouchEvent<H extends com.google.gwt.event.shared.EventHandler>
Known Direct Subclasses

Class Overview

Abstract class representing touch events. See Safari Touch Event Documentation

Summary

Public Constructors
TouchEvent()
Public Methods
JsArray<Touch> getChangedTouches()
Get an array of touches which have changed since the last touch event fired.
JsArray<Touch> getTargetTouches()
Get an array of touches all touch which originated at the same target as the current touch event.
JsArray<Touch> getTouches()
Get an array of all current touches.
[Expand]
Inherited Methods
From class com.google.gwt.event.dom.client.HumanInputEvent
From class com.google.gwt.event.dom.client.DomEvent
From class com.google.gwt.event.shared.GwtEvent
From class java.lang.Object
From interface com.google.gwt.event.dom.client.HasNativeEvent

Public Constructors

public TouchEvent ()

Public Methods

public JsArray<Touch> getChangedTouches ()

Get an array of touches which have changed since the last touch event fired. Note, that for touch end events, the touch which has just ended will not be present in the array. Moreover, if the touch which just ended was the last remaining touch, then a zero length array will be returned.

Returns
  • an array of touches

public JsArray<Touch> getTargetTouches ()

Get an array of touches all touch which originated at the same target as the current touch event. Note, that for touch end events, the touch which has just ended will not be present in the array. Moreover, if the touch which just ended was the last remaining touch, then a zero length array will be returned.

Returns
  • an array of touches

public JsArray<Touch> getTouches ()

Get an array of all current touches. Note, that for touch end events, the touch which has just ended will not be present in the array. Moreover, if the touch which just ended was the last remaining touch, then a zero length array will be returned.

Returns
  • an array of touches