|
|||||||||
| 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.HandlesAllTouchEvents
com.maryanovsky.gwtutils.client.iphone.ui.touch.TouchEventsCanceller
public class TouchEventsCanceller
A touch event handler which invokes NativeEvent.stopPropagation()
and/or NativeEvent.preventDefault() on all events it receives. To
cancel events, register as a handler on the source whose events you wish to
cancel.
| Field Summary | |
|---|---|
static TouchEventsCanceller |
BOTH
A TouchEventsCanceller which both stops propagation and prevents the
default actions of events. |
static TouchEventsCanceller |
PREVENT_DEFAULT
A TouchEventsCanceller which only prevents the default actions of
events. |
static TouchEventsCanceller |
STOP_PROPAGATION
A TouchEventsCanceller which only stops propagation of events. |
| Constructor Summary | |
|---|---|
TouchEventsCanceller(boolean isStopPropagation,
boolean isPreventDefault)
Creates a new TouchEventsCanceller which will optionally stop the
propagation and/or prevent the default action of events it receives. |
|
| Method Summary | |
|---|---|
boolean |
isPreventDefault()
Returns whether this TouchEventsCanceller is preventing the default
action of all events it receives. |
boolean |
isStopPropagation()
Returns whether this TouchEventsCanceller is stopping propagation of
all events it receives. |
void |
onTouchCancel(TouchCancelEvent evt)
Invoked when a touch is canceled. |
void |
onTouchEnd(TouchEndEvent evt)
Invoked when a finger is lifted. |
void |
onTouchMove(TouchMoveEvent evt)
Invoked when a finger is moved while pressed. |
void |
onTouchStart(TouchStartEvent evt)
Invoked when a finger is pressed. |
| Methods inherited from class com.maryanovsky.gwtutils.client.iphone.ui.touch.HandlesAllTouchEvents |
|---|
handle, handle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static TouchEventsCanceller STOP_PROPAGATION
TouchEventsCanceller which only stops propagation of events.
public static TouchEventsCanceller PREVENT_DEFAULT
TouchEventsCanceller which only prevents the default actions of
events.
public static TouchEventsCanceller BOTH
TouchEventsCanceller which both stops propagation and prevents the
default actions of events.
| Constructor Detail |
|---|
public TouchEventsCanceller(boolean isStopPropagation,
boolean isPreventDefault)
TouchEventsCanceller which will optionally stop the
propagation and/or prevent the default action of events it receives.
| Method Detail |
|---|
public boolean isStopPropagation()
TouchEventsCanceller is stopping propagation of
all events it receives.
public boolean isPreventDefault()
TouchEventsCanceller is preventing the default
action of all events it receives.
public void onTouchStart(TouchStartEvent evt)
public void onTouchMove(TouchMoveEvent evt)
public void onTouchEnd(TouchEndEvent evt)
public void onTouchCancel(TouchCancelEvent evt)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||