Class SimpleSelector
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 Summary
| Modifier and Type | Method | Description |
|---|---|---|
String | getId() | Gets the value of the selector id. |
String | getName() | Gets the name of the java class to which this selector is applied, or *. |
NodeOrientation | getNodeOrientation() | Gets the NodeOrientation of this Selector. |
List<String> | getStyleClasses() | Gets an immutable list of style-classes of the Selector. |
Set<StyleClass> | getStyleClassSet() | Gets the Set of StyleClasses of the Selector. |
String | toString() | Converts this object to a string. |
Methods declared in class javafx.css.Selector
applies, applies, createMatch, createSelector, getOrdinal, getRule, setOrdinal, stateMatches, writeBinary
Method Details
getName
public String getName()
Gets the name of the java class to which this selector is applied, or *.
- Returns:
- the name of the java class
getStyleClasses
public List<String> getStyleClasses()
Gets an immutable list of style-classes of the
Selector.- Returns:
- an immutable list of style-classes of the
Selector
getStyleClassSet
public Set<StyleClass> getStyleClassSet()
Gets the
Set of StyleClasses of the Selector.- Returns:
- the
SetofStyleClasses
getId
public String getId()
Gets the value of the selector id.
- Returns:
- the value of the selector id, which may be an empty string
getNodeOrientation
public NodeOrientation getNodeOrientation()
Gets the
NodeOrientation of this Selector.- Returns:
- the
NodeOrientation
toString
public String toString()
Converts this object to a string.
- Overrides:
-
toStringin classObject
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.