com.gargoylesoftware.htmlunit.javascript.host.css
Class CSSStyleDeclaration.CssValue

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleDeclaration.CssValue
Enclosing class:
CSSStyleDeclaration

protected abstract static class CSSStyleDeclaration.CssValue
extends Object

Encapsulates the retrieval of a style attribute, given a DOM element from which to retrieve it.


Constructor Summary
CSSStyleDeclaration.CssValue(int windowDefaultValue)
          C'tor.
 
Method Summary
abstract  String get(ComputedCSSStyleDeclaration style)
          Returns the CSS attribute value from the specified computed style.
 String get(HTMLElement element)
          Returns the CSS attribute value for the specified element.
 int getWindowDefaultValue()
          Gets the default size for the window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSStyleDeclaration.CssValue

public CSSStyleDeclaration.CssValue(int windowDefaultValue)
C'tor.

Parameters:
windowDefaultValue - the default value for the window
Method Detail

getWindowDefaultValue

public int getWindowDefaultValue()
Gets the default size for the window.

Returns:
the default value for the window

get

public final String get(HTMLElement element)
Returns the CSS attribute value for the specified element.

Parameters:
element - the element for which the CSS attribute value is to be retrieved
Returns:
the CSS attribute value for the specified element

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


Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.