Class TreeVisitor
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.tree.TreeVisitor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TreeVisitor
static TreePath
depthFirstSearch
(TreeNode root, TreeVisitor visitor) Performs a depth first search starting at the root node provided.abstract boolean
This will be called for each tree node in the tree.
-
Field Details
-
traverseDeeper
protected boolean traverseDeeper
-
-
Constructor Details
-
TreeVisitor
public TreeVisitor()
-
-
Method Details
-
visit
This will be called for each tree node in the tree. Returning true indicates a matching node. As an optional performance improvement, set the boolean field traverseDeeper to false if nothing under this node could be a match.- Returns:
- If true, the search will stop and this node's TreePath will be considered as the match. If false, the search will continue.
-
createBrowseTreeVisitor
-
depthFirstSearch
Performs a depth first search starting at the root node provided. Returns the TreePath of the first node that the visitor returns true for.
-