java.lang.Object
javafx.css.Selector
javafx.css.CompoundSelector
Deprecated, for removal: This API element is subject to removal in a future version.
This class was exposed erroneously and will be removed in a future version
A compound selector which behaves according to the CSS standard. The selector is
composed of one or more
Selectors, along with an array of
CompoundSelectorRelationships indicating the required relationship at each
stage. There must be exactly one less Combinator than
there are selectors.
For example, the parameters [selector1, selector2, selector3]
and [Combinator.CHILD, Combinator.DESCENDANT] will match
a component when all of the following conditions hold:
- The component itself is matched by selector3
- The component has an ancestor which is matched by selector2
- The ancestor matched in step 2 is a direct CHILD of a component matched by selector1
selector1 > selector2 selector3. The greater-than (>)
between selector1 and selector2 specifies a direct CHILD, whereas the
whitespace between selector2 and selector3 corresponds to
Combinator.DESCENDANT.- Since:
- 9
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.Gets whether thisSelectorapplies to the givenStyleable.booleanapplies(Styleable styleable, Set<PseudoClass>[] triggerStates, int depth) Deprecated, for removal: This API element is subject to removal in a future version.Gets whether thisSelectorapplies to the givenStyleable.Deprecated, for removal: This API element is subject to removal in a future version.Creates aMatch.Deprecated, for removal: This API element is subject to removal in a future version.The selectors that make up this compound selectorDeprecated, for removal: This API element is subject to removal in a future version.Gets the immutable set of style class names of this Selector.booleanstateMatches(Styleable styleable, Set<PseudoClass> states) Deprecated, for removal: This API element is subject to removal in a future version.Determines whether the current state of theNodeand its parents matches the pseudo-classes defined (if any) for this selector.protected final voidwriteBinary(DataOutputStream os, StyleConverter.StringStore stringStore) Deprecated, for removal: This API element is subject to removal in a future version.WritesSelectordata in binary form to givenDataOutputStream.Methods declared in class javafx.css.Selector
createSelector, getOrdinal, getRule, setOrdinal
-
Method Details
-
getSelectors
Deprecated, for removal: This API element is subject to removal in a future version.The selectors that make up this compound selector- Returns:
- Immutable List<SimpleSelector>
-
getStyleClassNames
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:SelectorGets the immutable set of style class names of this Selector.- Specified by:
getStyleClassNamesin classSelector- Returns:
- an immutable set with style class names, never
null, or containsnulls, but can be empty
-
createMatch
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:SelectorCreates aMatch.- Specified by:
createMatchin classSelector- Returns:
- a match, never
null
-
applies
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:SelectorGets whether thisSelectorapplies to the givenStyleable. -
applies
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:SelectorGets whether thisSelectorapplies to the givenStyleable. It is the same as theSelector.applies(javafx.css.Styleable)method except it also returnsPseudoClassstate that it finds along the way. -
stateMatches
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:SelectorDetermines whether the current state of theNodeand its parents matches the pseudo-classes defined (if any) for this selector.- Specified by:
stateMatchesin classSelector- Parameters:
styleable- the styleablestates- the state- Returns:
trueif the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector
-
writeBinary
protected final void writeBinary(DataOutputStream os, StyleConverter.StringStore stringStore) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:SelectorWritesSelectordata in binary form to givenDataOutputStream.- Overrides:
writeBinaryin classSelector- Parameters:
os-DataOutputStreamto writeSelectordata tostringStore- unused- Throws:
IOException- if writing toDataOutputStreamfails
-