Package limn.components.tree
Interface Tree.DropHandler<T>
- Type Parameters:
T- the node type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Something was dropped on this tree.
-
Method Summary
Modifier and TypeMethodDescriptionvoidTakes what was dropped: reads it fromevent.offer(), adds it to the data and callsTree.refresh().
-
Method Details
-
drop
Takes what was dropped: reads it fromevent.offer(), adds it to the data and callsTree.refresh().event.action()says whether it is a copy or a move, andevent.reject()refuses it after all.- Parameters:
event- the dropparent- the node it was dropped into, ornullfor the top levelindex- where among the children ofparent: before the child now at that index, or after the last when it is their count
-