public class TouchDelegate extends Object implements HasTouchHandlers, HasTapHandlers, HasSwipeHandlers, HasPinchHandlers, HasLongTapHandlers
HasTouchHandlers
Modifier and Type | Field and Description |
---|---|
protected GestureUtility |
gestureUtility |
Constructor and Description |
---|
TouchDelegate(com.google.gwt.user.client.ui.Widget w)
Construct a touchDelegate
|
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addLongTapHandler(LongTapHandler handler)
Register for a
LongTapEvent |
com.google.gwt.event.shared.HandlerRegistration |
addPinchHandler(PinchHandler handler)
register for
PinchEvent s |
com.google.gwt.event.shared.HandlerRegistration |
addSwipeEndHandler(SwipeEndHandler handler)
register for a
SwipeEndHandler |
com.google.gwt.event.shared.HandlerRegistration |
addSwipeMoveHandler(SwipeMoveHandler handler)
register for a
SwipeMoveHandler |
com.google.gwt.event.shared.HandlerRegistration |
addSwipeStartHandler(SwipeStartHandler handler)
register for a
SwipeStartEvent |
com.google.gwt.event.shared.HandlerRegistration |
addTapHandler(TapHandler handler)
Adds a
TapHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addTouchCancelHandler(TouchCancelHandler handler)
addTouchCancelHandler
|
com.google.gwt.event.shared.HandlerRegistration |
addTouchEndHandler(TouchEndHandler handler)
addTouchEndHandler
|
com.google.gwt.event.shared.HandlerRegistration |
addTouchHandler(TouchHandler handler)
addTouchHandler
|
com.google.gwt.event.shared.HandlerRegistration |
addTouchMoveHandler(TouchMoveHandler handler)
addTouchMoveHandler
|
com.google.gwt.event.shared.HandlerRegistration |
addTouchStartHandler(TouchStartHandler handler)
addTouchStartHandler
|
void |
fireEvent(com.google.gwt.event.shared.GwtEvent<?> event) |
protected final GestureUtility gestureUtility
public TouchDelegate(com.google.gwt.user.client.ui.Widget w)
w
- the widget to source touchevents frompublic com.google.gwt.event.shared.HandlerRegistration addTouchStartHandler(TouchStartHandler handler)
addTouchStartHandler
addTouchStartHandler
in interface HasTouchHandlers
handler
- a
TouchStartHandler
object.HandlerRegistration
object.public com.google.gwt.event.shared.HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler)
addTouchMoveHandler
addTouchMoveHandler
in interface HasTouchHandlers
handler
- a
TouchMoveHandler
object.HandlerRegistration
object.public com.google.gwt.event.shared.HandlerRegistration addTouchCancelHandler(TouchCancelHandler handler)
addTouchCancelHandler
addTouchCancelHandler
in interface HasTouchHandlers
handler
- a
TouchCancelHandler
object.HandlerRegistration
object.public com.google.gwt.event.shared.HandlerRegistration addTouchEndHandler(TouchEndHandler handler)
addTouchEndHandler
addTouchEndHandler
in interface HasTouchHandlers
handler
- a
TouchEndHandler
object.HandlerRegistration
object.public com.google.gwt.event.shared.HandlerRegistration addTapHandler(TapHandler handler)
HasTapHandlers
TapHandler
handler.addTapHandler
in interface HasTapHandlers
handler
- the simple touch handlerHandlerRegistration
used to remove this handlerpublic com.google.gwt.event.shared.HandlerRegistration addTouchHandler(TouchHandler handler)
HasTouchHandlers
addTouchHandler
addTouchHandler
in interface HasTouchHandlers
handler
- a
TouchHandler
object.HandlerRegistration
object.public void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
fireEvent
in interface com.google.gwt.event.shared.HasHandlers
public com.google.gwt.event.shared.HandlerRegistration addSwipeStartHandler(SwipeStartHandler handler)
HasSwipeHandlers
SwipeStartEvent
addSwipeStartHandler
in interface HasSwipeHandlers
handler
- the handler to registerHandlerRegistration
public com.google.gwt.event.shared.HandlerRegistration addSwipeMoveHandler(SwipeMoveHandler handler)
HasSwipeHandlers
SwipeMoveHandler
addSwipeMoveHandler
in interface HasSwipeHandlers
handler
- the handler to registerHandlerRegistration
public com.google.gwt.event.shared.HandlerRegistration addSwipeEndHandler(SwipeEndHandler handler)
HasSwipeHandlers
SwipeEndHandler
addSwipeEndHandler
in interface HasSwipeHandlers
handler
- the handler to registerHandlerRegistration
public com.google.gwt.event.shared.HandlerRegistration addPinchHandler(PinchHandler handler)
HasPinchHandlers
PinchEvent
saddPinchHandler
in interface HasPinchHandlers
handler
- the handler to registerpublic com.google.gwt.event.shared.HandlerRegistration addLongTapHandler(LongTapHandler handler)
HasLongTapHandlers
LongTapEvent
addLongTapHandler
in interface HasLongTapHandlers
handler
- the handler to registerCopyright © 2020 Magnolia International Ltd.. All rights reserved.