Class StyleClass
java.lang.Object
javafx.css.StyleClass
public final class StyleClass extends Object
A class that contains
StyleClass information.- Since:
- 9
Constructor Summary
| Constructor | Description |
|---|---|
StyleClass |
Constructs a StyleClass object. |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
int |
getIndex() |
Returns the index of this StyleClass in the styleClasses list. |
String |
getStyleClassName() |
Returns the name of StyleClass. |
String |
toString() |
Returns the name of StyleClass. |
Constructor Details
StyleClass
public StyleClass(String styleClassName, int index)
Constructs a
StyleClass object.- Parameters:
-
styleClassName- name of the style class -
index- style class index
Method Details
getStyleClassName
public String getStyleClassName()
Returns the name of
StyleClass.- Returns:
- the name of
StyleClass
toString
getIndex
public int getIndex()
Returns the index of this
StyleClass in the styleClasses list.- Returns:
- index
© 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.