com.vaadin.client.

Class CSSRule

  • public class CSSRule
    extends Object

    Utility class for fetching CSS properties from DOM StyleSheets JS object.

    • Constructor Detail

      • CSSRule

        public CSSRule​(String selector,
                       boolean deep)

        Parameters:

        selector - the CSS selector to search for in the stylesheets

        deep - should the search follow any @import statements?

    • Method Detail

      • getPropertyValue

        public String getPropertyValue​(String propertyName)

        Returns a specific property value from this CSS rule.

        Parameters:

        propertyName - camelCase CSS property name

        Returns:

        the value of the property as a String

      • getSelector

        public String getSelector()