Package org.zkoss.stateless.action.data

## Class SwipeData

- java.lang.Object
- - org.zkoss.stateless.action.data.SwipeData

- All Implemented Interfaces:
    `java.io.Serializable`, `ActionData`

      public class SwipeData
      extends java.lang.Object
      implements 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:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SwipeData()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.String` | `getSwipeDirection()` | Returns the swipe direction(left/right/up/down) relevant to the component.
    `int` | `getSwipeDuration()` | Returns the swipe duration(milliseconds) relevant to the component.
    `int` | `getSwipeX()` | Returns the horizontal swipe displacement relevant to the component.
    `int` | `getSwipeY()` | Returns the vertical swipe displacement relevant to the component.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SwipeData

          public SwipeData()

  - ### Method Detail

    - #### 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

          public java.lang.String getSwipeDirection()

      Returns the swipe direction(left/right/up/down) relevant to the component.