public interface NodeFinder
Modifier and Type | Method and Description |
---|---|
NodeQuery |
from(Collection<Node> parentNodes)
Returns a
NodeQuery that stores the given parentNodes collection. |
NodeQuery |
from(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 Node> |
lookup(Predicate<T> predicate)
Returns a
NodeQuery that stores all the root nodes that pass the given predicate |
NodeQuery |
lookup(String query)
Returns a
NodeQuery that stores all the root nodes that meet the given query |
Node |
rootNode(Node node)
Returns the node's scene's root node
|
Node |
rootNode(Scene scene)
Returns the scene's root node
|
Node |
rootNode(Window window)
Returns the window's scene's root node.
|
NodeQuery lookup(String query)
NodeQuery
that stores all the root nodes that meet the given queryNodeQuery.lookup(String)
<T> NodeQuery lookup(org.hamcrest.Matcher<T> matcher)
NodeQuery
that stores all the root nodes that match the given matcher.NodeQuery.lookup(Matcher)
<T extends Node> NodeQuery lookup(Predicate<T> predicate)
NodeQuery
that stores all the root nodes that pass the given predicateNodeQuery.lookup(Predicate)
NodeQuery fromAll()
NodeQuery
that stores all the root nodes of all windows via
WindowFinder.listTargetWindows()
NodeQuery from(Collection<Node> parentNodes)
NodeQuery
that stores the given parentNodes collection.NodeQuery from(NodeQuery nodeQuery)
NodeQuery
that stores all the parentNodes from the given nodeQuery (essentially,
it creates a copy/clone).