java.lang.Object
javafx.css.Selector
javafx.css.SimpleSelector
public final class SimpleSelector extends Selector
A simple selector which behaves according to the CSS standard.
- Since:
- 9
- 
Method SummaryModifier and Type Method Description booleanapplies(Styleable styleable)booleanapplies(Styleable styleable, Set<PseudoClass>[] pseudoClasses, int depth)MatchcreateMatch()booleanequals(Object obj)StringgetId()StringgetName()NodeOrientationgetNodeOrientation()List<String>getStyleClasses()Set<StyleClass>getStyleClassSet()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.StringtoString()Converts this object to a string.protected voidwriteBinary(DataOutputStream os, StyleConverter.StringStore stringStore)
- 
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 class- Selector
 
- 
applies
- 
applies
- 
stateMatchesDescription 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 class- Selector
- Parameters:
- styleable- the styleable
- states- the state
- Returns:
- trueif the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toStringConverts this object to a string.
- 
writeBinaryprotected final void writeBinary(DataOutputStream os, StyleConverter.StringStore stringStore) throws IOException- Overrides:
- writeBinaryin class- Selector
- Throws:
- IOException
 
 
-