value property within TreeItem.
TreeItem with the possibility to filter its children. To enable filtering
it is necessary to set the TreeItemPredicate. If a predicate is set, then the tree item
will also use this predicate to filter its children (if they are of the type FilterableTreeItem).
A tree item that has children will not be filtered. The predicate will only be evaluated, if the
tree item is a leaf. Since the predicate is also set for the child tree items, the tree item in question
can turn into a leaf if all its children are filtered.
This class extends CheckBoxTreeItem so it can, but does not need to be, used in conjunction
with CheckBoxTreeCell cells.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final FilteredList | |
| private final ObjectProperty | |
| private final ObservableList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | changeChildItemVisibility(FilterableTreeItem<T>
- child item object childItem, boolean - visibility of this child item visible)Remove child item from |
| protected ObservableList | |
| public ObservableList | Returns: underlying list of childrenReturns the list of children that is backing the filtered list. |
| public final TreeItemPredicate | |
| public final ObjectProperty | |
| public final void | |
| private void |
| childItemIndexesMap | back to summary |
|---|---|
| private final Map<FilterableTreeItem<T>, Integer> childItemIndexesMap | |
| filteredList | back to summary |
|---|---|
| private final FilteredList<FilterableTreeItem<T>> filteredList | |
| predicate | back to summary |
|---|---|
| private final ObjectProperty<TreeItemPredicate<T>> predicate | |
| sourceList | back to summary |
|---|---|
| private final ObservableList<FilterableTreeItem<T>> sourceList | |
| FilterableTreeItem | back to summary |
|---|---|
| public FilterableTreeItem(T value) Creates a new
| |
| changeChildItemVisibility | back to summary |
|---|---|
| public void changeChildItemVisibility(FilterableTreeItem<T> childItem, boolean visible) Remove child item from
| |
| getBackingList | back to summary |
|---|---|
protected ObservableList
| |
| getInternalChildren | back to summary |
|---|---|
| public ObservableList Returns the list of children that is backing the filtered list.
| |
| getPredicate | back to summary |
|---|---|
public final TreeItemPredicate
| |
| predicateProperty | back to summary |
|---|---|
public final ObjectProperty
| |
| setPredicate | back to summary |
|---|---|
| public final void setPredicate(TreeItemPredicate<T> predicate) Set the predicate
| |
| setupFilteredListPredicateBindings | back to summary |
|---|---|
| private void setupFilteredListPredicateBindings() | |