Package org.testfx.service.finder
Interface NodeFinder
-
- All Known Implementing Classes:
NodeFinderImpl
public interface NodeFinder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NodeQueryfrom(java.util.Collection<javafx.scene.Node> parentNodes)Returns aNodeQuerythat stores the given parentNodes collection.NodeQueryfrom(javafx.scene.Node... parentNodes)Returns aNodeQuerythat stores the given parentNodesNodeQueryfrom(NodeQuery nodeQuery)Returns a newNodeQuerythat stores all the parentNodes from the given nodeQuery (essentially, it creates a copy/clone).NodeQueryfromAll()Returns aNodeQuerythat stores all the root nodes of all windows viaWindowFinder.listTargetWindows()NodeQuerylookup(java.lang.String query)Returns aNodeQuerythat stores all the root nodes that meet the given query<T extends javafx.scene.Node>
NodeQuerylookup(java.util.function.Predicate<T> predicate)Returns aNodeQuerythat stores all the root nodes that pass the given predicate<T> NodeQuerylookup(org.hamcrest.Matcher<T> matcher)Returns aNodeQuerythat stores all the root nodes that match the given matcher.javafx.scene.NoderootNode(javafx.scene.Node node)Returns the node's scene's root nodejavafx.scene.NoderootNode(javafx.scene.Scene scene)Returns the scene's root nodejavafx.scene.NoderootNode(javafx.stage.Window window)Returns the window's scene's root node.
-
-
-
Method Detail
-
lookup
NodeQuery lookup(java.lang.String query)
Returns aNodeQuerythat stores all the root nodes that meet the given query- See Also:
NodeQuery.lookup(String)
-
lookup
<T> NodeQuery lookup(org.hamcrest.Matcher<T> matcher)
Returns aNodeQuerythat stores all the root nodes that match the given matcher.- See Also:
NodeQuery.lookup(Matcher)
-
lookup
<T extends javafx.scene.Node> NodeQuery lookup(java.util.function.Predicate<T> predicate)
Returns aNodeQuerythat stores all the root nodes that pass the given predicate- See Also:
NodeQuery.lookup(Predicate)
-
fromAll
NodeQuery fromAll()
Returns aNodeQuerythat stores all the root nodes of all windows viaWindowFinder.listTargetWindows()
-
from
NodeQuery from(javafx.scene.Node... parentNodes)
Returns aNodeQuerythat stores the given parentNodes
-
from
NodeQuery from(java.util.Collection<javafx.scene.Node> parentNodes)
Returns aNodeQuerythat stores the given parentNodes collection.
-
from
NodeQuery from(NodeQuery nodeQuery)
Returns a newNodeQuerythat stores all the parentNodes from the given nodeQuery (essentially, it creates a copy/clone).
-
rootNode
javafx.scene.Node rootNode(javafx.stage.Window window)
Returns the window's scene's root node.
-
rootNode
javafx.scene.Node rootNode(javafx.scene.Scene scene)
Returns the scene's root node
-
rootNode
javafx.scene.Node rootNode(javafx.scene.Node node)
Returns the node's scene's root node
-
-