@Unstable public class NodeFinderImpl extends Object implements NodeFinder
Constructor and Description |
---|
NodeFinderImpl(WindowFinder windowFinder) |
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.
|
public NodeFinderImpl(WindowFinder windowFinder)
public NodeQuery lookup(String query)
NodeFinder
NodeQuery
that stores all the root nodes that meet the given querylookup
in interface NodeFinder
NodeQuery.lookup(String)
public <T> NodeQuery lookup(org.hamcrest.Matcher<T> matcher)
NodeFinder
NodeQuery
that stores all the root nodes that match the given matcher.lookup
in interface NodeFinder
NodeQuery.lookup(Matcher)
public <T extends Node> NodeQuery lookup(Predicate<T> predicate)
NodeFinder
NodeQuery
that stores all the root nodes that pass the given predicatelookup
in interface NodeFinder
NodeQuery.lookup(Predicate)
public NodeQuery fromAll()
NodeFinder
NodeQuery
that stores all the root nodes of all windows via
WindowFinder.listTargetWindows()
fromAll
in interface NodeFinder
public NodeQuery from(Node... parentNodes)
NodeFinder
NodeQuery
that stores the given parentNodesfrom
in interface NodeFinder
public NodeQuery from(Collection<Node> parentNodes)
NodeFinder
NodeQuery
that stores the given parentNodes collection.from
in interface NodeFinder
public NodeQuery from(NodeQuery nodeQuery)
NodeFinder
NodeQuery
that stores all the parentNodes from the given nodeQuery (essentially,
it creates a copy/clone).from
in interface NodeFinder
public Node rootNode(Window window)
NodeFinder
rootNode
in interface NodeFinder
public Node rootNode(Scene scene)
NodeFinder
rootNode
in interface NodeFinder
public Node rootNode(Node node)
NodeFinder
rootNode
in interface NodeFinder