public class NodeFinderImpl extends java.lang.Object implements NodeFinder
| Constructor and Description |
|---|
NodeFinderImpl(WindowFinder windowFinder) |
| Modifier and Type | Method and Description |
|---|---|
NodeQuery |
from(java.util.Collection<javafx.scene.Node> parentNodes)
Returns a
NodeQuery that stores the given parentNodes collection. |
NodeQuery |
from(javafx.scene.Node... parentNodes)
Returns a
NodeQuery that stores the given parentNodes |
NodeQuery |
from(NodeQuery nodeQuery)
Returns a new
NodeQuery that stores all the parentNodes from the given nodeQuery (essentially,
it creates a copy/clone). |
NodeQuery |
fromAll()
Returns a
NodeQuery that stores all the root nodes of all windows via
WindowFinder.listTargetWindows() |
<T> NodeQuery |
lookup(org.hamcrest.Matcher<T> matcher)
Returns a
NodeQuery that stores all the root nodes that match the given matcher. |
<T extends javafx.scene.Node> |
lookup(java.util.function.Predicate<T> predicate)
Returns a
NodeQuery that stores all the root nodes that pass the given predicate |
NodeQuery |
lookup(java.lang.String query)
Returns a
NodeQuery that stores all the root nodes that meet the given query |
javafx.scene.Node |
rootNode(javafx.scene.Node node)
Returns the node's scene's root node
|
javafx.scene.Node |
rootNode(javafx.scene.Scene scene)
Returns the scene's root node
|
javafx.scene.Node |
rootNode(javafx.stage.Window window)
Returns the window's scene's root node.
|
public NodeFinderImpl(WindowFinder windowFinder)
public NodeQuery lookup(java.lang.String query)
NodeFinderNodeQuery that stores all the root nodes that meet the given querylookup in interface NodeFinderNodeQuery.lookup(String)public <T> NodeQuery lookup(org.hamcrest.Matcher<T> matcher)
NodeFinderNodeQuery that stores all the root nodes that match the given matcher.lookup in interface NodeFinderNodeQuery.lookup(Matcher)public <T extends javafx.scene.Node> NodeQuery lookup(java.util.function.Predicate<T> predicate)
NodeFinderNodeQuery that stores all the root nodes that pass the given predicatelookup in interface NodeFinderNodeQuery.lookup(Predicate)public NodeQuery fromAll()
NodeFinderNodeQuery that stores all the root nodes of all windows via
WindowFinder.listTargetWindows()fromAll in interface NodeFinderpublic NodeQuery from(javafx.scene.Node... parentNodes)
NodeFinderNodeQuery that stores the given parentNodesfrom in interface NodeFinderpublic NodeQuery from(java.util.Collection<javafx.scene.Node> parentNodes)
NodeFinderNodeQuery that stores the given parentNodes collection.from in interface NodeFinderpublic NodeQuery from(NodeQuery nodeQuery)
NodeFinderNodeQuery that stores all the parentNodes from the given nodeQuery (essentially,
it creates a copy/clone).from in interface NodeFinderpublic javafx.scene.Node rootNode(javafx.stage.Window window)
NodeFinderrootNode in interface NodeFinderpublic javafx.scene.Node rootNode(javafx.scene.Scene scene)
NodeFinderrootNode in interface NodeFinderpublic javafx.scene.Node rootNode(javafx.scene.Node node)
NodeFinderrootNode in interface NodeFinder