- java.lang.Object
-
- javafx.css.StyleClass
-
public final class StyleClass extends Object
A class that containsStyleClassinformation.- Since:
- 9
-
-
Constructor Summary
Constructors Constructor Description StyleClass(String styleClassName, int index)Constructs aStyleClassobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()Returns the index of thisStyleClassin the styleClasses list.StringgetStyleClassName()Returns the name ofStyleClass.StringtoString()Returns the name ofStyleClass.
-
-
-
Constructor Detail
-
StyleClass
public StyleClass(String styleClassName, int index)
Constructs aStyleClassobject.- 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 thisStyleClassin the styleClasses list.- Returns:
- index
-
-