Package org.htmlunit.css
Class CssPixelValueConverter.CssValue
- java.lang.Object
-
- org.htmlunit.css.CssPixelValueConverter.CssValue
-
- Enclosing class:
- CssPixelValueConverter
public abstract static class CssPixelValueConverter.CssValue extends java.lang.ObjectEncapsulates the retrieval of a style attribute, given a DOM element from which to retrieve it.
-
-
Field Summary
Fields Modifier and Type Field Description private intdefaultValue_private intwindowDefaultValue_
-
Constructor Summary
Constructors Constructor Description CssValue(int defaultValue, int windowDefaultValue)C'tor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Stringget(ComputedCssStyleDeclaration style)Returns the CSS attribute value from the specified computed style.intgetDefaultValue()Gets the default value.intgetWindowDefaultValue()Gets the default size 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
-
-