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 SummaryConstructors Constructor Description Selector()
- 
Method SummaryModifier and Type Method Description abstract booleanapplies(Styleable styleable)abstract booleanapplies(Styleable styleable, Set<PseudoClass>[] triggerStates, int bit)abstract MatchcreateMatch()static SelectorcreateSelector(String cssSelector)intgetOrdinal()RulegetRule()voidsetOrdinal(int ordinal)abstract booleanstateMatches(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 voidwriteBinary(DataOutputStream os, StyleConverter.StringStore stringStore)
- 
Constructor Details- 
Selectorpublic Selector()
 
- 
- 
Method Details- 
getRule
- 
setOrdinalpublic void setOrdinal(int ordinal)
- 
getOrdinalpublic int getOrdinal()
- 
createMatch
- 
applies
- 
applies
- 
stateMatchesDetermines whether the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector.- Parameters:
- styleable- the styleable
- state- the state
- Returns:
- trueif the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector
 
- 
writeBinaryprotected void writeBinary(DataOutputStream os, StyleConverter.StringStore stringStore) throws IOException- Throws:
- IOException
 
- 
createSelector
 
-