|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maryanovsky.gwtutils.client.iphone.ui.touch.gestures.TouchGestureRecognizer
com.maryanovsky.gwtutils.client.iphone.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.iphone.ui.touch.gestures.TouchGestureRecognizer |
|---|
handlerManager |
| Constructor Summary | |
|---|---|
TouchMouseEventsConverter(UIObject target)
Creates a new TouchMouseEventsConverter with the specified target
widget. |
|
TouchMouseEventsConverter(UIObject target,
H touchEventsSource)
Creates a new TouchMouseEventsConverter with the specified target
widget. |
|
| 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.iphone.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(UIObject target)
TouchMouseEventsConverter with the specified target
widget. If the target widget is not null, synthetic mouse
events will be dispatched on it, and its element will be used as the
element relative to which event coordinates are measured.
public TouchMouseEventsConverter(UIObject target,
H touchEventsSource)
TouchMouseEventsConverter with the specified target
widget. If the target widget is not null, synthetic mouse
events will be dispatched on it, and its element will be used as the
element relative to which event coordinates are measured. 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 | ||||||||