Package 

Interface OnItemDragListener

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onItemDragged(Integer previousPosition, Integer newPosition, T item) Callback for whenever an item that is being dragged exchanges positions with another one.
      abstract Unit onItemDropped(Integer initialPosition, Integer finalPosition, T item) Callback for when the drag & drop event has completed because the user has dropped the item.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onItemDragged

         abstract Unit onItemDragged(Integer previousPosition, Integer newPosition, T item)

        Callback for whenever an item that is being dragged exchanges positions with another one. It will be called every time an exchange occurs, no matter if the user is still dragging the item or not.

        Parameters:
        previousPosition - The old position of the item that has just been exchanged with the dragged one.
        newPosition - The new position of the dragged item.
        item - The dragged item.
      • onItemDropped

         abstract Unit onItemDropped(Integer initialPosition, Integer finalPosition, T item)

        Callback for when the drag & drop event has completed because the user has dropped the item.

        Parameters:
        initialPosition - The position of the item before the user started dragging it.
        finalPosition - The position in which the user has dropped the item.
        item - The dropped item.