|
|||||||||
| 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
public abstract class TouchGestureRecognizer
The base class for all touch gesture recognizers.
| Field Summary | |
|---|---|
protected HandlerManager |
handlerManager
The manager of handlers. |
| Constructor Summary | |
|---|---|
TouchGestureRecognizer(Object firedEventsSource)
Creates a new TouchGestureRecognizer which will dispatch events
with the specified source object. |
|
TouchGestureRecognizer(Object eventSource,
H touchEventsSource)
Creates a new TouchGestureRecognizer which will dispatch events
with the specified source object. |
|
| Method Summary | ||
|---|---|---|
protected void |
fireEvent(GwtEvent<?> event)
Fires the specified event to all its handlers. |
|
protected void |
onTouchCancel(TouchCancelEvent evt)
Invoked when a touch event is canceled. |
|
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. |
|
|
setTouchEventsSource(H touchEventsSource)
Sets the source of touch events for this recognizer. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final HandlerManager handlerManager
| Constructor Detail |
|---|
public TouchGestureRecognizer(Object firedEventsSource)
TouchGestureRecognizer which will dispatch events
with the specified source object.
public TouchGestureRecognizer(Object eventSource,
H touchEventsSource)
TouchGestureRecognizer which will dispatch events
with the specified source object. Additionally, you may pass the source
of touch events.
| Method Detail |
|---|
public <H extends HasTouchStartHandlers & HasTouchMoveHandlers & HasTouchEndHandlers & HasTouchCancelHandlers> void setTouchEventsSource(H touchEventsSource)
null will cause the recognizer to deregister itself from the
previous source.
protected void fireEvent(GwtEvent<?> event)
protected void onTouchStart(TouchStartEvent evt)
protected void onTouchMove(TouchMoveEvent evt)
protected void onTouchEnd(TouchEndEvent evt)
protected void onTouchCancel(TouchCancelEvent evt)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||