Package org.zkoss.zk.ui.event
Class SwipeEvent
java.lang.Object
org.zkoss.zk.ui.event.Event
org.zkoss.zk.ui.event.SwipeEvent
- All Implemented Interfaces:
Serializable
Represents an event that indicates swipe on a component and provides
information about the swipe displacement, duration and direction.
- Since:
- 6.5.0
- Author:
- vincentjian
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSwipeEvent(String name, Component target, int swipeX, int swipeY, int swipeTime, String swipeDir) -
Method Summary
Modifier and TypeMethodDescriptionReturns the swipe direction(left/right/up/down) relevant to the component.intReturns the swipe duration(milliseconds) relevant to the component.static final SwipeEventgetSwipeEvent(AuRequest request) intReturns the horizontal swipe displacement relevant to the component.intReturns the vertical swipe displacement relevant to the component.Methods inherited from class org.zkoss.zk.ui.event.Event
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
-
Constructor Details
-
SwipeEvent
-
-
Method Details
-
getSwipeEvent
-
getSwipeX
public int getSwipeX()Returns the horizontal swipe displacement relevant to the component. -
getSwipeY
public int getSwipeY()Returns the vertical swipe displacement relevant to the component. -
getSwipeDuration
public int getSwipeDuration()Returns the swipe duration(milliseconds) relevant to the component. -
getSwipeDirection
Returns the swipe direction(left/right/up/down) relevant to the component.
-