public class TreeViewUtils
extends java.lang.Object
| Constructor and Description |
|---|
TreeViewUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.List<javafx.scene.control.TreeItem<T>> |
findAllInTree(javafx.scene.control.TreeItem<T> currentTreeItem,
java.util.function.Predicate<javafx.scene.control.TreeItem<T>> predicate)
Finds all tree items that match the provided predicate.
|
static <T> java.util.Optional<javafx.scene.control.TreeItem<T>> |
findFirstInTree(javafx.scene.control.TreeItem<T> currentTreeItem,
java.util.function.Predicate<javafx.scene.control.TreeItem<T>> predicate)
Finds the first tree item that matches the provided predicate.
|
public static <T> java.util.Optional<javafx.scene.control.TreeItem<T>> findFirstInTree(javafx.scene.control.TreeItem<T> currentTreeItem,
java.util.function.Predicate<javafx.scene.control.TreeItem<T>> predicate)
T - the type for the tree itemcurrentTreeItem - the node in the tree where to start searching.predicate - the predicate onto witch the search is based.Optional encapsulating the TreeItem instance matching the predicate.public static <T> java.util.List<javafx.scene.control.TreeItem<T>> findAllInTree(javafx.scene.control.TreeItem<T> currentTreeItem,
java.util.function.Predicate<javafx.scene.control.TreeItem<T>> predicate)
T - the type for the tree itemcurrentTreeItem - the node in the tree where to start searching.predicate - the predicate onto witch the search is based.Optional encapsulating the TreeItem instances matching the predicate.Copyright © 2018 Frederic Thevenet. All rights reserved.