Errai 3.0.1-SNAPSHOT

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

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<LongTapHandler>
          extended by org.jboss.errai.ui.cordova.events.touch.longtap.LongTapEvent

public class LongTapEvent
extends com.google.gwt.event.shared.GwtEvent<LongTapHandler>

A long tap event is produced if the user touches an area of the display for a given time without moving his finger(s)


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H>
 
Constructor Summary
LongTapEvent(Object source, int numberOfFingers, int time, List<TouchPoint> startPositions)
          Construct a LongTapEvent
 
Method Summary
protected  void dispatch(LongTapHandler handler)
           
 com.google.gwt.event.shared.GwtEvent.Type<LongTapHandler> getAssociatedType()
           
 int getNumberOfFingers()
          the number of fingers that created this event
 List<TouchPoint> getStartPositions()
          the start position of all fingers
 int getTime()
          the time the user held the fingers
static com.google.gwt.event.shared.GwtEvent.Type<LongTapHandler> getType()
          Returns the type of the event
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
 
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongTapEvent

public LongTapEvent(Object source,
                    int numberOfFingers,
                    int time,
                    List<TouchPoint> startPositions)
Construct a LongTapEvent

Parameters:
source - - the source of the event
numberOfFingers - the number of fingers used
time - the time the fingers where touching
startPositions - the start position of each finger
Method Detail

getType

public static com.google.gwt.event.shared.GwtEvent.Type<LongTapHandler> getType()
Returns the type of the event

Returns:
the type of the event

getAssociatedType

public com.google.gwt.event.shared.GwtEvent.Type<LongTapHandler> getAssociatedType()
Overrides:
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<LongTapHandler>

dispatch

protected void dispatch(LongTapHandler handler)
Specified by:
dispatch in class com.google.gwt.event.shared.GwtEvent<LongTapHandler>

getNumberOfFingers

public int getNumberOfFingers()
the number of fingers that created this event

Returns:

getStartPositions

public List<TouchPoint> getStartPositions()
the start position of all fingers

Returns:
the array of start positions

getTime

public int getTime()
the time the user held the fingers

Returns:
the time in milliseconds

Errai 3.0.1-SNAPSHOT

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