Class WTouchEvent

java.lang.Object
eu.webtoolkit.jwt.WTouchEvent
All Implemented Interfaces:
WAbstractEvent

public class WTouchEvent
extends java.lang.Object
implements WAbstractEvent
A class providing details for a touch event.

See Also:
WInteractWidget.touchStarted(), WInteractWidget.touchMoved(), WInteractWidget.touchEnded()
  • Constructor Summary

    Constructors 
    Constructor Description
    WTouchEvent()
    Default constructor.
  • Method Summary

    Modifier and Type Method Description
    WAbstractEvent createFromJSEvent​(eu.webtoolkit.jwt.JavaScriptEvent jsEvent)
    Internal method.
    java.util.List<Touch> getChangedTouches()
    Returns a list of Touch objects for every finger involved in the event.
    java.util.List<Touch> getTargetTouches()
    Returns a list of Touch objects for finger touches that started out within the same widget.
    java.util.List<Touch> getTouches()
    Returns a list of Touch objects for every finger currently touching the screen.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait