Package javafx.css

Class Rule



  • public final class Rule
    extends Object
    • Method Detail

      • getDeclarations

        public final ObservableList<Declaration> getDeclarations​()
        This method is to support tooling that may want to add declarations to or remove declarations from a Rule. Changes to the list are tracked so that added declarations are tagged as belonging to this rule, and the rule for removed declarations is nulled out. If the list is not going to be modified, then it is more efficient to call getUnobservedDeclarationList(), but the returned list must be treated as unmodifiable.
        Returns:
        a observable list of declarations
      • getSelectors

        public final ObservableList<Selector> getSelectors​()
        This method is to support tooling that may want to add selectors to or remove selectors from a Rule. Changes to the list are tracked so that added selectors are tagged as belonging to this rule, and the rule for removed selectors is nulled out. If the list is not going to be modified, then it is more efficient to call getUnobservedSelectorList(), but the returned list must be treated as unmodifiable.
        Returns:
        an observable list of selectors
      • getStylesheet

        public Stylesheet getStylesheet​()
      • toString

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