Class MoveData

java.lang.Object
org.zkoss.stateless.action.data.MoveData
All Implemented Interfaces:
Serializable, ActionData

public class MoveData extends Object implements ActionData
Represents an action caused by a component being moved.
Author:
jumperchen
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Indicates whether the Alt key is pressed.
    static final int
    Indicates whether the Ctrl key is pressed.
    static final int
    Indicates whether the Shift key is pressed.
  • Method Summary

    Modifier and Type
    Method
    Description
    final int
    Returns what keys were pressed when the component is moved, or 0 if none of them was pressed.
    final String
    Returns the left of the component after moved.
    final String
    Returns the top of the component after moved.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ALT_KEY

      public static final int ALT_KEY
      Indicates whether the Alt key is pressed. It might be returned as part of getKeys().
      See Also:
    • CTRL_KEY

      public static final int CTRL_KEY
      Indicates whether the Ctrl key is pressed. It might be returned as part of getKeys().
      See Also:
    • SHIFT_KEY

      public static final int SHIFT_KEY
      Indicates whether the Shift key is pressed. It might be returned as part of getKeys().
      See Also:
  • Method Details

    • getLeft

      public final String getLeft()
      Returns the left of the component after moved.
    • getTop

      public final String getTop()
      Returns the top of the component after moved.
    • getKeys

      public final int getKeys()
      Returns what keys were pressed when the component is moved, or 0 if none of them was pressed. It is a combination of CTRL_KEY, SHIFT_KEY and ALT_KEY.