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 TypeMethodDescriptionbooleanGets whether thisSelectorapplies to the givenStyleable.booleanapplies(Styleable styleable, Set<PseudoClass>[] pseudoClasses, int depth) Gets whether thisSelectorapplies to the givenStyleable.Creates aMatch.getId()Gets the value of the selector id.getName()Gets the name of the java class to which this selector is applied, or *.Gets theNodeOrientationof thisSelector.Gets an immutable list of style-classes of theSelector.Gets theSetofStyleClasses of theSelector.booleanstateMatches(Styleable styleable, Set<PseudoClass> states) Determines whether the current state of theNodeand 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) WritesSelectordata in binary form to givenDataOutputStream.Methods declared in class javafx.css.Selector
createSelector, getOrdinal, getRule, setOrdinal 
- 
Method Details
- 
getName
Gets the name of the java class to which this selector is applied, or *.- Returns:
 - the name of the java class
 
 - 
getStyleClasses
Gets an immutable list of style-classes of theSelector.- Returns:
 - an immutable list of style-classes of the 
Selector 
 - 
getStyleClassSet
Gets theSetofStyleClasses of theSelector.- Returns:
 - the 
SetofStyleClasses 
 - 
getId
Gets the value of the selector id.- Returns:
 - the value of the selector id, which may be an empty string
 
 - 
getNodeOrientation
Gets theNodeOrientationof thisSelector.- Returns:
 - the 
NodeOrientation 
 - 
createMatch
Description copied from class:SelectorCreates aMatch.- Specified by:
 createMatchin classSelector- Returns:
 - match
 
 - 
applies
Description copied from class:SelectorGets whether thisSelectorapplies to the givenStyleable. - 
applies
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
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
 - 
toString
Converts this object to a string. - 
writeBinary
protected final void writeBinary(DataOutputStream os, StyleConverter.StringStore stringStore) throws IOException Description copied from class:SelectorWritesSelectordata in binary form to givenDataOutputStream.- Overrides:
 writeBinaryin classSelector- Parameters:
 os-DataOutputStreamto writeSelectordata tostringStore- unused- Throws:
 IOException- if writing toDataOutputStreamfails
 
 -