java.lang.Object
javafx.css.Selector
- Direct Known Subclasses:
CompoundSelector
,SimpleSelector
public abstract class Selector extends Object
Used by CSSRule to determine whether or not the selector applies to a
given object.
- Since:
- 9
-
Constructor Summary
Constructors Constructor Description Selector()
Deprecated, for removal: This API element is subject to removal in a future version.This constructor was exposed erroneously and will be removed in the next version. -
Method Summary
Modifier and Type Method Description abstract boolean
applies(Styleable styleable)
abstract boolean
applies(Styleable styleable, Set<PseudoClass>[] triggerStates, int bit)
abstract Match
createMatch()
static Selector
createSelector(String cssSelector)
int
getOrdinal()
Rule
getRule()
void
setOrdinal(int ordinal)
abstract boolean
stateMatches(Styleable styleable, Set<PseudoClass> state)
Determines whether the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector.protected void
writeBinary(DataOutputStream os, StyleConverter.StringStore stringStore)
-
Constructor Details
-
Selector
Deprecated, for removal: This API element is subject to removal in a future version.This constructor was exposed erroneously and will be removed in the next version. UsecreateSelector(String)
instead.
-
-
Method Details
-
getRule
-
setOrdinal
public void setOrdinal(int ordinal) -
getOrdinal
public int getOrdinal() -
createMatch
-
applies
-
applies
-
stateMatches
Determines whether the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector.- Parameters:
styleable
- the styleablestate
- the state- Returns:
true
if the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector
-
writeBinary
protected void writeBinary(DataOutputStream os, StyleConverter.StringStore stringStore) throws IOException- Throws:
IOException
-
createSelector
-