Interface Tree.Move<T>

Type Parameters:
T - the node type
Enclosing class:
Tree<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 Tree.Move<T>
Nodes of this tree were dragged to another place in it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    move(List<T> nodes, @Nullable T parent, int index)
    Moves the nodes in the application's data: takes each out of where it is and puts them, in order, under parent.
  • Method Details

    • move

      void move(List<T> nodes, @Nullable T parent, int index)
      Moves the nodes in the application's data: takes each out of where it is and puts them, in order, under parent.
      Parameters:
      nodes - the nodes moved, in the order shown; none is under another of them
      parent - the node they go under, or null for the top level; never one of them, nor a node under one of them
      index - where the first of them goes among the children of parent, counted without the nodes moved: 0 puts them first