Interface NodeFinder

All Known Implementing Classes:
NodeFinderImpl

public interface NodeFinder
  • Method Summary

    Modifier and Type
    Method
    Description
    from(Collection<javafx.scene.Node> parentNodes)
    Returns a NodeQuery that stores the given parentNodes collection.
    from(javafx.scene.Node... parentNodes)
    Returns a NodeQuery that stores the given parentNodes
    from(NodeQuery nodeQuery)
    Returns a new NodeQuery that stores all the parentNodes from the given nodeQuery (essentially, it creates a copy/clone).
    Returns a NodeQuery that stores all the root nodes of all windows via WindowFinder.listTargetWindows()
    lookup(String query)
    Returns a NodeQuery that stores all the root nodes that meet the given query
    <T extends javafx.scene.Node>
    NodeQuery
    lookup(Predicate<T> predicate)
    Returns a NodeQuery that stores all the root nodes that pass the given predicate
    lookup(org.hamcrest.Matcher<T> matcher)
    Returns a NodeQuery that stores all the root nodes that match the given matcher.
    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.
  • Method Details

    • lookup

      NodeQuery lookup(String query)
      Returns a NodeQuery that stores all the root nodes that meet the given query
      See Also:
    • lookup

      <T> NodeQuery lookup(org.hamcrest.Matcher<T> matcher)
      Returns a NodeQuery that stores all the root nodes that match the given matcher.
      See Also:
    • lookup

      <T extends javafx.scene.Node> NodeQuery lookup(Predicate<T> predicate)
      Returns a NodeQuery that stores all the root nodes that pass the given predicate
      See Also:
    • fromAll

      NodeQuery fromAll()
      Returns a NodeQuery that stores all the root nodes of all windows via WindowFinder.listTargetWindows()
    • from

      NodeQuery from(javafx.scene.Node... parentNodes)
      Returns a NodeQuery that stores the given parentNodes
    • from

      NodeQuery from(Collection<javafx.scene.Node> parentNodes)
      Returns a NodeQuery that stores the given parentNodes collection.
    • from

      NodeQuery from(NodeQuery nodeQuery)
      Returns a new NodeQuery that 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