public final class NodeQueryUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> |
byMatcher(org.hamcrest.Matcher<javafx.scene.Node> matcher)
Returns a function that returns a
Set of all Nodes that match the given matcher. |
static java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> |
byPredicate(java.util.function.Predicate<javafx.scene.Node> predicate)
Returns a function that returns a
Set of all Nodes that pass the given predicate. |
static java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> |
bySelector(java.lang.String selector)
Returns a function that calls
Node.lookup(String) on each given node. |
static java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> |
byText(java.lang.String text)
Returns a function that returns a
Set of all Labels,
TextInputControls, or any of their subclasses that have the given text. |
static java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> |
combine(java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> function0,
java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> function1)
Returns a function that returns a
Set of all Nodes that maps the given node by function0
and then by function1). |
static java.util.function.Predicate<javafx.scene.Node> |
hasId(java.lang.String id)
Returns a predicate that returns true if the node's id equals the given
id. |
static java.util.function.Predicate<javafx.scene.Node> |
hasText(java.lang.String text)
Returns a predicate that returns true if the node is a
Label,
TextInputControl, or any of their subclasses whose text equals the given text. |
static java.util.function.Predicate<javafx.scene.Node> |
isVisible()
Returns a predicate that returns true if the given node is visible, the given tree is visible, or the
node's local bounds are within its scene's bounds
|
static java.util.function.Predicate<javafx.scene.Node> |
matchesMatcher(org.hamcrest.Matcher<javafx.scene.Node> matcher)
Returns a predicate that returns true if the given node matches the given
matcher. |
static java.util.Set<javafx.scene.Node> |
rootOfPopupControl(javafx.scene.control.PopupControl... popupControls)
Returns a set of the given popup controls' scenes' root nodes.
|
static java.util.Set<javafx.scene.Node> |
rootOfScene(javafx.scene.Scene... scenes)
Returns a set of the given scenes' root nodes.
|
static java.util.Set<javafx.scene.Node> |
rootOfStage(javafx.stage.Stage... stages)
Returns a set of the given stages' scenes' root nodes.
|
static java.util.Set<javafx.scene.Node> |
rootOfWindow(javafx.stage.Window... windows)
Returns a set of the given windows' scenes' root nodes.
|
static java.util.Set<javafx.scene.Node> |
rootsOfWindows(java.util.Collection<javafx.stage.Window> windows)
Returns a set of the given windows' scenes' root nodes.
|
public static java.util.Set<javafx.scene.Node> rootsOfWindows(java.util.Collection<javafx.stage.Window> windows)
public static java.util.Set<javafx.scene.Node> rootOfWindow(javafx.stage.Window... windows)
public static java.util.Set<javafx.scene.Node> rootOfStage(javafx.stage.Stage... stages)
public static java.util.Set<javafx.scene.Node> rootOfScene(javafx.scene.Scene... scenes)
public static java.util.Set<javafx.scene.Node> rootOfPopupControl(javafx.scene.control.PopupControl... popupControls)
public static java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> bySelector(java.lang.String selector)
Node.lookup(String) on each given node.public static java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> byPredicate(java.util.function.Predicate<javafx.scene.Node> predicate)
Set of all Nodes that pass the given predicate.public static java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> byMatcher(org.hamcrest.Matcher<javafx.scene.Node> matcher)
Set of all Nodes that match the given matcher.public static java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> byText(java.lang.String text)
Set of all Labels,
TextInputControls, or any of their subclasses that have the given text.public static java.util.function.Predicate<javafx.scene.Node> hasId(java.lang.String id)
id.public static java.util.function.Predicate<javafx.scene.Node> hasText(java.lang.String text)
Label,
TextInputControl, or any of their subclasses whose text equals the given text.public static java.util.function.Predicate<javafx.scene.Node> matchesMatcher(org.hamcrest.Matcher<javafx.scene.Node> matcher)
matcher.public static java.util.function.Predicate<javafx.scene.Node> isVisible()
public static java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> combine(java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> function0,
java.util.function.Function<javafx.scene.Node,java.util.Set<javafx.scene.Node>> function1)
Set of all Nodes that maps the given node by function0
and then by function1).