T - element type@FunctionalInterface
public interface TreeItemComparator<T>
SortableTreeItem to sort the
items in the list.| Modifier and Type | Method and Description |
|---|---|
int |
compare(javafx.scene.control.TreeItem<T> parent,
T o1,
T o2)
Compare two tree items to do sorting
|
static <T> TreeItemComparator<T> |
create(java.util.Comparator<T> comparator)
Utility method to create a TreeViewComparator from a given
Comparator |
int compare(javafx.scene.control.TreeItem<T> parent, T o1, T o2)
parent - the parent tree item of the elements or null if there is no parento1 - the first elemento2 - the second elementstatic <T> TreeItemComparator<T> create(java.util.Comparator<T> comparator)
Comparatorcomparator - the comparator