Package javafx.css

Class StyleClass


  • public final class StyleClass
    extends Object
    A class that contains StyleClass information.
    Since:
    9
    • Constructor Detail

      • StyleClass

        public StyleClass​(String styleClassName,
                          int index)
        Constructs a StyleClass object.
        Parameters:
        styleClassName - name of the style class
        index - style class index
    • Method Detail

      • getStyleClassName

        public String getStyleClassName()
        Returns the name of StyleClass.
        Returns:
        the name of StyleClass
      • toString

        public String toString()
        Returns the name of StyleClass.
        Overrides:
        toString in class Object
        Returns:
        the name of StyleClass
      • getIndex

        public int getIndex()
        Returns the index of this StyleClass in the styleClasses list.
        Returns:
        index