public class GestureUtility extends Object
GestureUtility
is a utility class for adding standard recognizers to a widgetConstructor and Description |
---|
GestureUtility(HasTouchHandlers source)
Construct a
GestureUtility for a given source |
Modifier and Type | Method and Description |
---|---|
void |
ensureLongTapHandler()
ensure that there is a registered
LongTapRecognizer on the source |
void |
ensureLongTapRecognizer()
ensure that there is a registered
LongTapRecognizer on the source |
void |
ensurePinchRecognizer(com.google.gwt.user.client.ui.UIObject object)
ensure that there is a registered
PinchRecognizer on the source |
void |
ensureSwipeRecognizer()
ensure that there is a registered
SwipeRecognizer on the source |
void |
ensureTapRecognizer()
ensure that there is a registered
TapRecognizer on the source |
public GestureUtility(HasTouchHandlers source)
GestureUtility
for a given sourcesource
- the source to usepublic void ensureTapRecognizer()
TapRecognizer
on the sourcepublic void ensureLongTapRecognizer()
LongTapRecognizer
on the sourcepublic void ensureSwipeRecognizer()
SwipeRecognizer
on the sourcepublic void ensurePinchRecognizer(com.google.gwt.user.client.ui.UIObject object)
PinchRecognizer
on the sourceobject
- the UIObject
that is used for offsetpublic void ensureLongTapHandler()
LongTapRecognizer
on the sourceCopyright © 2020 Magnolia International Ltd.. All rights reserved.