|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maryanovsky.gwtutils.client.ui.touch.gestures.TouchGestureRecognizer
com.maryanovsky.gwtutils.client.ui.touch.gestures.mouse.TouchMouseEventsConverter
public class TouchMouseEventsConverter
Generates synthetic mouse events from corresponding touch events. This is useful for widget implementers that want to add basic iPhone support without modifying their widget's API. The converter can be used in two ways:
| Field Summary |
|---|
| Fields inherited from class com.maryanovsky.gwtutils.client.ui.touch.gestures.TouchGestureRecognizer |
|---|
handlerManager |
| Constructor Summary | |
|---|---|
TouchMouseEventsConverter(Object firedEventsSource,
UIObject target)
Creates a new TouchMouseEventsConverter with the specified source
of fired events and the target widget on which synthetic mouse events are
to be dispatched. |
|
TouchMouseEventsConverter(Object firedEventsSource,
UIObject target,
H touchEventsSource)
Creates a new TouchMouseEventsConverter with the specified source
of fired events and the target widget on which synthetic mouse events are
to be dispatched. |
|
| Method Summary | |
|---|---|
HandlerRegistration |
addMouseDownHandler(MouseDownHandler handler)
|
HandlerRegistration |
addMouseMoveHandler(MouseMoveHandler handler)
|
HandlerRegistration |
addMouseOutHandler(MouseOutHandler handler)
|
HandlerRegistration |
addMouseOverHandler(MouseOverHandler handler)
|
HandlerRegistration |
addMouseUpHandler(MouseUpHandler handler)
|
HandlerRegistration |
addMouseWheelHandler(MouseWheelHandler handler)
|
void |
fireEvent(GwtEvent<?> event)
Fires the specified event to all its handlers. |
protected void |
onTouchCancel(TouchCancelEvent evt)
Invoked when a touch is cancelled. |
protected void |
onTouchEnd(TouchEndEvent evt)
Invoked when a finger touching the screen is lifted. |
protected void |
onTouchMove(TouchMoveEvent evt)
Invoked when a finger touching the screen is moved. |
protected void |
onTouchStart(TouchStartEvent evt)
Invoked when a touch starts. |
| Methods inherited from class com.maryanovsky.gwtutils.client.ui.touch.gestures.TouchGestureRecognizer |
|---|
setTouchEventsSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TouchMouseEventsConverter(Object firedEventsSource,
UIObject target)
TouchMouseEventsConverter with the specified source
of fired events and the target widget on which synthetic mouse events are
to be dispatched. The target widget may be null, in which
case synthetic mouse events will only be sent to handlers directly
registered with this TouchMouseEventsConverter.
public TouchMouseEventsConverter(Object firedEventsSource,
UIObject target,
H touchEventsSource)
TouchMouseEventsConverter with the specified source
of fired events and the target widget on which synthetic mouse events are
to be dispatched. The target widget may be null, in which
case synthetic mouse events will only be sent to handlers directly
registered with this TouchMouseEventsConverter. Additionally, you
may pass the source of touch events.
| Method Detail |
|---|
public HandlerRegistration addMouseDownHandler(MouseDownHandler handler)
addMouseDownHandler in interface HasMouseDownHandlerspublic HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler)
addMouseMoveHandler in interface HasMouseMoveHandlerspublic HandlerRegistration addMouseUpHandler(MouseUpHandler handler)
addMouseUpHandler in interface HasMouseUpHandlerspublic HandlerRegistration addMouseOverHandler(MouseOverHandler handler)
addMouseOverHandler in interface HasMouseOverHandlerspublic HandlerRegistration addMouseOutHandler(MouseOutHandler handler)
addMouseOutHandler in interface HasMouseOutHandlerspublic HandlerRegistration addMouseWheelHandler(MouseWheelHandler handler)
addMouseWheelHandler in interface HasMouseWheelHandlerspublic void fireEvent(GwtEvent<?> event)
fireEvent in interface HasHandlersfireEvent in class TouchGestureRecognizerprotected void onTouchStart(TouchStartEvent evt)
onTouchStart in class TouchGestureRecognizerprotected void onTouchMove(TouchMoveEvent evt)
onTouchMove in class TouchGestureRecognizerprotected void onTouchEnd(TouchEndEvent evt)
onTouchEnd in class TouchGestureRecognizerprotected void onTouchCancel(TouchCancelEvent evt)
onTouchCancel in class TouchGestureRecognizer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||