Class CssPixelValueConverter.CssValue

  • Enclosing class:
    CssPixelValueConverter

    public abstract static class CssPixelValueConverter.CssValue
    extends java.lang.Object
    Encapsulates the retrieval of a style attribute, given a DOM element from which to retrieve it.
    • Field Detail

      • defaultValue_

        private final int defaultValue_
      • windowDefaultValue_

        private final int windowDefaultValue_
    • Constructor Detail

      • CssValue

        public CssValue​(int defaultValue,
                        int windowDefaultValue)
        C'tor.
        Parameters:
        defaultValue - the default value
        windowDefaultValue - the default value for the window
    • Method Detail

      • getDefaultValue

        public int getDefaultValue()
        Gets the default value.
        Returns:
        the default value
      • getWindowDefaultValue

        public int getWindowDefaultValue()
        Gets the default size for the window.
        Returns:
        the default value for the window
      • get

        public abstract java.lang.String get​(ComputedCssStyleDeclaration style)
        Returns the CSS attribute value from the specified computed style.
        Parameters:
        style - the computed style from which to retrieve the CSS attribute value
        Returns:
        the CSS attribute value from the specified computed style