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.| Type | Property and Description |
|---|---|
javafx.beans.property.ObjectProperty<TreeItemComparator<T>> |
comparator |
predicateProperty| 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() |
javafx.collections.ObservableList<javafx.scene.control.TreeItem<T>> |
getChildren()
This method overrides
TreeItem.getChildren() and returns an
unmodifiable SortedList as the children may only be changed
via the underlying model. |
TreeItemComparator<T> |
getComparator() |
void |
setComparator(TreeItemComparator<T> comparator)
Set the comparator
|
getInternalChildren, getPredicate, isLeaf, predicateProperty, setPredicateaddEventHandler, branchCollapsedEvent, branchExpandedEvent, buildEventDispatchChain, childrenModificationEvent, expandedItemCountChangeEvent, expandedProperty, getGraphic, getParent, getValue, graphicChangedEvent, graphicProperty, isExpanded, leafProperty, nextSibling, nextSibling, parentProperty, previousSibling, previousSibling, removeEventHandler, setExpanded, setGraphic, setValue, toString, treeNotificationEvent, valueChangedEvent, valuePropertypublic final javafx.beans.property.ObjectProperty<TreeItemComparator<T>> comparatorProperty
getComparator(),
setComparator(TreeItemComparator)public 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 javafx.collections.ObservableList<javafx.scene.control.TreeItem<T>> getChildren()
TreeItem.getChildren() and returns an
unmodifiable SortedList as the children may only be changed
via the underlying model.getChildren in class FilterableTreeItem<T>FilterableTreeItem.getInternalChildren()public final javafx.beans.property.ObjectProperty<TreeItemComparator<T>> comparatorProperty()
getComparator(),
setComparator(TreeItemComparator)public final TreeItemComparator<T> getComparator()
public final void setComparator(TreeItemComparator<T> comparator)
comparator - the comparator