java.lang.Object
javafx.css.Selector
javafx.css.SimpleSelector
A simple selector which behaves according to the CSS standard.
- Since:
- 9
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanapplies(Styleable styleable, Set<PseudoClass>[] pseudoClasses, int depth) booleangetId()getName()inthashCode()booleanstateMatches(Styleable styleable, Set<PseudoClass> states) Determines whether the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector.toString()Converts this object to a string.protected final voidwriteBinary(DataOutputStream os, StyleConverter.StringStore stringStore) Methods inherited from class javafx.css.Selector
createSelector, getOrdinal, getRule, setOrdinal
-
Method Details
-
getName
- Returns:
- The name of the java class to which this selector is applied, or *.
-
getStyleClasses
- Returns:
- Immutable List<String> of style-classes of the selector
-
getStyleClassSet
-
getId
-
getNodeOrientation
-
createMatch
- Specified by:
createMatchin classSelector
-
applies
-
applies
-
stateMatches
Description copied from class:SelectorDetermines whether the current state of the node and 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
-
equals
-
hashCode
public int hashCode() -
toString
Converts this object to a string. -
writeBinary
protected final void writeBinary(DataOutputStream os, StyleConverter.StringStore stringStore) throws IOException - Overrides:
writeBinaryin classSelector- Throws:
IOException
-