T - The type of the value property within
TreeItem.public class CheckedTreeItemCollector<T>
extends java.lang.Object
CheckBoxTreeItem. This collection is presented
as a flat ObservableSet.
The "checked" state of a tree item can be modified, by adding or removing its
value from getCheckedItems().| Constructor and Description |
|---|
CheckedTreeItemCollector(javafx.scene.control.CheckBoxTreeItem<T> root) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAll()
Check all the items in the tree
|
javafx.collections.ObservableSet<T> |
getCheckedItems() |
void |
uncheckAll()
Uncheck all the items in the tree
|
public CheckedTreeItemCollector(javafx.scene.control.CheckBoxTreeItem<T> root)
root - The "checked" state of all the descendants, including the root
itself, will be monitoredpublic void checkAll()
public void uncheckAll()
public javafx.collections.ObservableSet<T> getCheckedItems()
ObservableSet of all the values who's tree items have
been "checked"