Interface ListView.Reorder<T>

Type Parameters:
T - the item type
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.Reorder<T>
Rows of this list were dragged to another place in it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    reorder(List<T> items, int index)
    Moves the items: typically list.removeAll(items); list.addAll(index, items).
  • Method Details

    • reorder

      void reorder(List<T> items, int index)
      Moves the items: typically list.removeAll(items); list.addAll(index, items).
      Parameters:
      items - the rows moved, in the order shown
      index - where the first of them goes, counted among the rows that stay: 0 puts them first, and the count of the rows that stay puts them last