T - The type of the value property within TreeItem.public class SortableTreeItem<T> extends FilterableTreeItem<T>
TreeItem with the possibility to sort its children. To enable sorting
it is necessary to set the TreeItemComparator. If no comparator is set, then
the tree item will attempt so bind itself to the comparator of its parent.| Constructor and Description |
|---|
SortableTreeItem(T value)
Creates a new
TreeItem with sorted children. |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ObjectProperty<TreeItemComparator<T>> |
comparatorProperty() |
TreeItemComparator<T> |
getComparator() |
void |
setComparator(TreeItemComparator<T> comparator)
Set the comparator
|
getInternalChildren, getPredicate, predicateProperty, setHiddenFieldChildren, setPredicatecheckBoxSelectionChangedEvent, independentProperty, indeterminateProperty, isIndependent, isIndeterminate, isSelected, selectedProperty, setIndependent, setIndeterminate, setSelectedaddEventHandler, branchCollapsedEvent, branchExpandedEvent, buildEventDispatchChain, childrenModificationEvent, expandedItemCountChangeEvent, expandedProperty, getChildren, getGraphic, getParent, getValue, graphicChangedEvent, graphicProperty, isExpanded, isLeaf, leafProperty, nextSibling, nextSibling, parentProperty, previousSibling, previousSibling, removeEventHandler, setExpanded, setGraphic, setValue, toString, treeNotificationEvent, valueChangedEvent, valuePropertypublic SortableTreeItem(T value)
TreeItem with sorted children. To enable sorting it is
necessary to set the TreeItemComparator. If no comparator is set, then
the tree item will attempt so bind itself to the comparator of its parent.value - the value of the TreeItempublic final javafx.beans.property.ObjectProperty<TreeItemComparator<T>> comparatorProperty()
public final TreeItemComparator<T> getComparator()
public final void setComparator(TreeItemComparator<T> comparator)
comparator - the comparator