- java.lang.Object
-
- javafx.css.StyleClass
-
public final class StyleClass extends Object
A class that containsStyleClass
information.- Since:
- 9
-
-
Constructor Summary
Constructors Constructor Description StyleClass(String styleClassName, int index)
Constructs aStyleClass
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
Returns the index of thisStyleClass
in the styleClasses list.String
getStyleClassName()
Returns the name ofStyleClass
.String
toString()
Returns the name ofStyleClass
.
-
-
-
Constructor Detail
-
StyleClass
public StyleClass(String styleClassName, int index)
Constructs aStyleClass
object.- Parameters:
styleClassName
- name of the style classindex
- style class index
-
-
Method Detail
-
getStyleClassName
public String getStyleClassName()
Returns the name ofStyleClass
.- Returns:
- the name of
StyleClass
-
toString
public String toString()
Returns the name ofStyleClass
.
-
getIndex
public int getIndex()
Returns the index of thisStyleClass
in the styleClasses list.- Returns:
- index
-
-