Modifier and Type | Method and Description |
---|---|
static Function<Node,Set<Node>> |
byMatcher(org.hamcrest.Matcher<Node> matcher)
Returns a function that returns a
Set of all Node s that match the given matcher . |
static Function<Node,Set<Node>> |
byPredicate(Predicate<Node> predicate)
Returns a function that returns a
Set of all Node s that pass the given predicate . |
static Function<Node,Set<Node>> |
bySelector(String selector)
Returns a function that calls
Node.lookup(String) on each given node |
static Function<Node,Set<Node>> |
byText(String text)
Returns a function that returns a
Set of all Label s,
TextInputControl s, or any of their subclasses that have the given text . |
static Function<Node,Set<Node>> |
combine(Function<Node,Set<Node>> function0,
Function<Node,Set<Node>> function1)
Returns a function that returns a
Set of all Node s that maps the given node by function0
and then by function1) . |
static Predicate<Node> |
hasId(String id)
Returns a predicate that returns true if the node's id equals the given
id . |
static Predicate<Node> |
hasText(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 Predicate<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 Predicate<Node> |
matchesMatcher(org.hamcrest.Matcher<Node> matcher)
Returns a predicate that returns true if the given node matches the given
matcher . |
static Set<Node> |
rootOfPopupControl(PopupControl... popupControls)
Returns a set of the given popup controls' scenes' root nodes
|
static Set<Node> |
rootOfScene(Scene... scenes)
Returns a set of the given scenes' root nodes
|
static Set<Node> |
rootOfStage(Stage... stages)
Returns a set of the given stages' scenes' root nodes
|
static Set<Node> |
rootOfWindow(Window... windows)
Returns a set of the given windows' scenes' root nodes
|
static Set<Node> |
rootsOfWindows(Collection<Window> windows)
Returns a set of the given windows' scenes' root nodes
|
public static Set<Node> rootsOfWindows(Collection<Window> windows)
public static Set<Node> rootOfWindow(Window... windows)
public static Set<Node> rootOfStage(Stage... stages)
public static Set<Node> rootOfScene(Scene... scenes)
public static Set<Node> rootOfPopupControl(PopupControl... popupControls)
public static Function<Node,Set<Node>> bySelector(String selector)
Node.lookup(String)
on each given nodepublic static Function<Node,Set<Node>> byPredicate(Predicate<Node> predicate)
Set
of all Node
s that pass the given predicate
.public static Function<Node,Set<Node>> byMatcher(org.hamcrest.Matcher<Node> matcher)
Set
of all Node
s that match the given matcher
.public static Function<Node,Set<Node>> byText(String text)
Set
of all Label
s,
TextInputControl
s, or any of their subclasses that have the given text
.public static Predicate<Node> hasId(String id)
id
.public static Predicate<Node> hasText(String text)
Label
,
TextInputControl
, or any of their subclasses whose text equals the given text
.public static Predicate<Node> matchesMatcher(org.hamcrest.Matcher<Node> matcher)
matcher
.public static Predicate<Node> isVisible()