Package org.htmlunit.css
Class CssPixelValueConverter.CssValue
java.lang.Object
org.htmlunit.css.CssPixelValueConverter.CssValue
- Enclosing class:
CssPixelValueConverter
Encapsulates the retrieval of a style attribute, given a DOM element from which to retrieve it.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
get
(ComputedCssStyleDeclaration style) Returns the CSS attribute value from the specified computed style.int
Gets the default value.int
Gets the default size for the window.
-
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 valuewindowDefaultValue
- 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
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
-