Package javafx.css

Class SimpleSelector


  • public final class SimpleSelector
    extends Selector
    A simple selector which behaves according to the CSS standard.
    Since:
    9
    • Method Detail

      • getName

        public String getName()
        Returns:
        The name of the java class to which this selector is applied, or *.
      • getStyleClasses

        public List<String> getStyleClasses()
        Returns:
        Immutable List<String> of style-classes of the selector
      • getId

        public String getId()
      • stateMatches

        public boolean stateMatches​(Styleable styleable,
                                    Set<PseudoClass> states)
        Description copied from class: Selector
        Determines whether the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector.
        Specified by:
        stateMatches in class Selector
        Parameters:
        styleable - the styleable
        states - the state
        Returns:
        true if the current state of the node and its parents matches the pseudo-classes defined (if any) for this selector
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Converts this object to a string.
        Overrides:
        toString in class Object