Class CssPixelValueConverter.CssValue

java.lang.Object
org.htmlunit.css.CssPixelValueConverter.CssValue
Enclosing class:
CssPixelValueConverter

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

    • defaultValue_

      private final int defaultValue_
    • windowDefaultValue_

      private final int windowDefaultValue_
  • Constructor Details

    • CssValue

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

    • 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 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