Errai 3.0.1-SNAPSHOT

org.jboss.errai.ui.cordova.events.touch.longtap
Class LongTapRecognizer

java.lang.Object
  extended by org.jboss.errai.ui.cordova.events.touch.AbstractRecognizer
      extended by org.jboss.errai.ui.cordova.events.touch.longtap.LongTapRecognizer
All Implemented Interfaces:
com.google.gwt.event.dom.client.TouchCancelHandler, com.google.gwt.event.dom.client.TouchEndHandler, com.google.gwt.event.dom.client.TouchMoveHandler, com.google.gwt.event.dom.client.TouchStartHandler, com.google.gwt.event.shared.EventHandler

public class LongTapRecognizer
extends AbstractRecognizer

Author:
edewit@redhat.com

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.errai.ui.cordova.events.touch.AbstractRecognizer
AbstractRecognizer.State
 
Field Summary
static int DEFAULT_MAX_DISTANCE
           
static int DEFAULT_WAIT_TIME_IN_MS
           
 
Constructor Summary
  LongTapRecognizer(com.google.gwt.event.shared.HasHandlers source)
           
  LongTapRecognizer(com.google.gwt.event.shared.HasHandlers source, int numberOfFingers)
           
protected LongTapRecognizer(com.google.gwt.event.shared.HasHandlers source, TimerExecutor timerExecutor, int numberOfFingers)
           
 
Method Summary
 void onTouchCancel(com.google.gwt.event.dom.client.TouchCancelEvent event)
           
 void onTouchEnd(com.google.gwt.event.dom.client.TouchEndEvent event)
           
 void onTouchMove(com.google.gwt.event.dom.client.TouchMoveEvent event)
           
 void onTouchStart(com.google.gwt.event.dom.client.TouchStartEvent event)
           
protected  void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WAIT_TIME_IN_MS

public static final int DEFAULT_WAIT_TIME_IN_MS
See Also:
Constant Field Values

DEFAULT_MAX_DISTANCE

public static final int DEFAULT_MAX_DISTANCE
See Also:
Constant Field Values
Constructor Detail

LongTapRecognizer

public LongTapRecognizer(com.google.gwt.event.shared.HasHandlers source)

LongTapRecognizer

public LongTapRecognizer(com.google.gwt.event.shared.HasHandlers source,
                         int numberOfFingers)

LongTapRecognizer

protected LongTapRecognizer(com.google.gwt.event.shared.HasHandlers source,
                            TimerExecutor timerExecutor,
                            int numberOfFingers)
Method Detail

onTouchStart

public void onTouchStart(com.google.gwt.event.dom.client.TouchStartEvent event)

onTouchMove

public void onTouchMove(com.google.gwt.event.dom.client.TouchMoveEvent event)

onTouchEnd

public void onTouchEnd(com.google.gwt.event.dom.client.TouchEndEvent event)

onTouchCancel

public void onTouchCancel(com.google.gwt.event.dom.client.TouchCancelEvent event)

reset

protected void reset()

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.