Package org.zkoss.stateless.action.data
Class SwipeData
java.lang.Object
org.zkoss.stateless.action.data.SwipeData
- All Implemented Interfaces:
Serializable,ActionData
Represents an action that indicates a finger swipe on a component and provides
information about the swipe displacement, duration and direction.
- Author:
- jumperchen
- See Also:
-
Constructor Summary
Constructors -
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.intReturns the horizontal swipe displacement relevant to the component.intReturns the vertical swipe displacement relevant to the component.
-
Constructor Details
-
SwipeData
public SwipeData()
-
-
Method Details
-
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.
-