onSelectionChange
inline fun <N : Tree.Node<N, *, *>> Tree<N, *>.onSelectionChange(crossinline listener: (Selection<N>) -> Unit): ChangeListener
Attaches a ChangeListener to this Tree.
Return
ChangeListener instance.
Parameters
listener
invoked each time the node Selection is changed. Receives the Selection object which can be used to obtain all selected items with Selection.items or the latest selected item with Selection.getLastSelected.