wrapDrop

var wrapDrop: (() -> Unit) -> Unit(source)

A wrapper provided by the view and used by TemplateJTreeModel.drop to ensure the view's selection and expansion state are retained.

This wrapper is invoked in the method drop with a lambda that performs the dropping when invoked. By default, the wrapper does nothing special, but can be overridden to perform some actions before and after dropping the StateNode.

This field is used only in the method drop in order to implement RefinedDropSupport, which assumes that the model can somehow retain the view's state.

See also

RowsDnDSupport.RefinedDropSupport