Interface ListView.DropHandler

Enclosing class:
ListView<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ListView.DropHandler
Something was dropped between two rows of this list.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drop(DropEvent event, int index)
    Takes what was dropped: reads it from event.offer(), adds it to the items and calls ListView.refresh().
  • Method Details

    • drop

      void drop(DropEvent event, int index)
      Takes what was dropped: reads it from event.offer(), adds it to the items and calls ListView.refresh(). event.action() says whether it is a copy or a move, and event.reject() refuses it after all.
      Parameters:
      event - the drop
      index - the row it was dropped before, or the row count for after the last