public class GestureChain extends Object implements GestureRecognizer
start(java.util.List)
or getTouches()
.Constructor and Description |
---|
GestureChain(GestureRecognizer... gestures) |
GestureChain(List<GestureRecognizer> gestures) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Ends recognition of the gesture, and fires any cancel events that apply.
|
List<TouchData> |
getTouches()
Gets all actively recognized touches that are being recognized by this gesture.
|
boolean |
handle(NativeEvent event)
Takes a browser event, and checks to see if it should decipher a gesture from it.
|
void |
setDelegate(HasHandlers eventDelegate)
Sets delegate to receive Gesture events
|
void |
start(List<TouchData> touches)
Artificially starts a gesture
|
public GestureChain(GestureRecognizer... gestures)
public GestureChain(List<GestureRecognizer> gestures)
public void cancel()
GestureRecognizer
cancel
in interface GestureRecognizer
public List<TouchData> getTouches()
GestureRecognizer
getTouches
in interface GestureRecognizer
public boolean handle(NativeEvent event)
GestureRecognizer
Takes a browser event, and checks to see if it should decipher a gesture from it.
Callers of this are expected to do their own vetting to decide if the given event should be handled by this gesture - for example, if a cell accepts a tap on one part of it and a longpress on another, the cell should determine where the touch events occur and send to the right recognizer accordingly.
handle
in interface GestureRecognizer
event
- the browser event to read for a gesture.public void start(List<TouchData> touches)
GestureRecognizer
start
in interface GestureRecognizer
touches
- the touches to be startedpublic void setDelegate(HasHandlers eventDelegate)
GestureRecognizer
setDelegate
in interface GestureRecognizer
eventDelegate
- the event handler delegateCopyright © 2018. All rights reserved.