com.gargoylesoftware.htmlunit.javascript.host.css
Class ComputedCSSStyleDeclaration

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleDeclaration
              extended by com.gargoylesoftware.htmlunit.javascript.host.css.ComputedCSSStyleDeclaration
All Implemented Interfaces:
Serializable, Cloneable, Map, net.sourceforge.htmlunit.corejs.javascript.ConstProperties, net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject, net.sourceforge.htmlunit.corejs.javascript.Scriptable

public class ComputedCSSStyleDeclaration
extends CSSStyleDeclaration

A JavaScript object for a ComputedCSSStyleDeclaration.

Version:
$Revision: 5865 $
Author:
Ahmed Ashour, Marc Guillemot
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleDeclaration
CSSStyleDeclaration.CssValue, CSSStyleDeclaration.StyleElement
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
ComputedCSSStyleDeclaration()
          Creates an instance.
ComputedCSSStyleDeclaration(CSSStyleDeclaration style)
           
 
Method Summary
 void applyStyleFromSelector(org.w3c.dom.css.CSSStyleDeclaration declaration, org.w3c.css.sac.Selector selector)
          Makes a local, "computed", modification to this CSS style.
 int getBorderBottom()
          Gets the size of the bottom border of the element.
 int getBorderLeft()
          Gets the size of the left border of the element.
 int getBorderRight()
          Gets the size of the right border of the element.
 int getBorderTop()
          Gets the size of the top border of the element.
 String getBottomWithInheritance()
          Returns the CSS bottom attribute, replacing inherited values with the actual parent values.
 int getCalculatedHeight(boolean includeBorder, boolean includePadding)
          Returns the element's height, possibly including its padding and border.
 int getCalculatedWidth(boolean includeBorder, boolean includePadding)
          Returns the element's width in pixels, possibly including its padding and border.
 int getContentHeight()
          Returns the total height of the element's children.
 int getContentWidth()
          Returns the total width of the element's children.
 int getLeft(boolean includeMargin, boolean includeBorder, boolean includePadding)
          Returns the computed left (X coordinate), relative to the node's parent's left edge.
 String getLeftWithInheritance()
          Returns the CSS left attribute, replacing inherited values with the actual parent values.
 int getMarginBottom()
          Gets the bottom margin of the element.
 int getMarginLeft()
          Gets the left margin of the element.
 int getMarginRight()
          Gets the right margin of the element.
 int getMarginTop()
          Gets the top margin of the element.
 int getPaddingBottom()
          Gets the bottom padding of the element.
 int getPaddingLeft()
          Gets the left padding of the element.
 int getPaddingRight()
          Gets the right padding of the element.
 int getPaddingTop()
          Gets the top padding of the element.
 String getPositionWithInheritance()
          Returns the CSS position attribute, replacing inherited values with the actual parent values.
 String getRightWithInheritance()
          Returns the CSS right attribute, replacing inherited values with the actual parent values.
protected  String getStyleAttribute(String name, boolean camelCase)
          Returns the value of the named style attribute, or an empty string if it is not found.
protected  Map<String,CSSStyleDeclaration.StyleElement> getStyleMap(boolean camelCase)
          Returns a sorted map containing style elements, keyed on style element name.
 int getTop(boolean includeMargin, boolean includeBorder, boolean includePadding)
          Returns the computed top (Y coordinate), relative to the node's parent's top edge.
 String getTopWithInheritance()
          Returns the CSS top attribute, replacing inherited values with the actual parent values.
 boolean isScrollable(boolean horizontal)
          Returns true if the element is scrollable along the specified axis.
 String jsxFunction_getPropertyValue(String name)
          Gets the value of the specified property of the style.
 String jsxGet_backgroundAttachment()
          Gets the "backgroundAttachment" style attribute.
 String jsxGet_backgroundColor()
          Gets the "backgroundColor" style attribute.
 String jsxGet_backgroundImage()
          Gets the "backgroundImage" style attribute.
 String jsxGet_backgroundRepeat()
          Gets the "backgroundRepeat" style attribute.
 String jsxGet_borderBottomColor()
          Gets the "borderBottomColor" style attribute.
 String jsxGet_borderBottomStyle()
          Gets the "borderBottomStyle" style attribute.
 String jsxGet_borderBottomWidth()
          Gets the "borderBottomWidth" style attribute.
 String jsxGet_borderCollapse()
          Gets the "borderCollapse" style attribute.
 String jsxGet_borderLeftColor()
          Gets the "borderLeftColor" style attribute.
 String jsxGet_borderLeftStyle()
          Gets the "borderLeftStyle" style attribute.
 String jsxGet_borderLeftWidth()
          Gets the "borderLeftWidth" style attribute.
 String jsxGet_borderRightColor()
          Gets the "borderRightColor" style attribute.
 String jsxGet_borderRightStyle()
          Gets the "borderRightStyle" style attribute.
 String jsxGet_borderRightWidth()
          Gets the "borderRightWidth" style attribute.
 String jsxGet_borderSpacing()
          Gets the "borderSpacing" style attribute.
 String jsxGet_borderTopColor()
          Gets the "borderTopColor" style attribute.
 String jsxGet_borderTopStyle()
          Gets the "borderTopStyle" style attribute.
 String jsxGet_borderTopWidth()
          Gets the "borderTopWidth" style attribute.
 String jsxGet_bottom()
          Gets the "bottom" style attribute.
 String jsxGet_captionSide()
          Gets the "captionSide" style attribute.
 String jsxGet_clear()
          Gets the "clear" style attribute.
 String jsxGet_clip()
          Gets the "clip" style attribute.
 String jsxGet_color()
          Gets the "color" style attribute.
 String jsxGet_counterIncrement()
          Gets the "counterIncrement" style attribute.
 String jsxGet_counterReset()
          Gets the "counterReset" style attribute.
 String jsxGet_cssFloat()
          Gets the "cssFloat" style attribute.
 String jsxGet_cursor()
          Gets the "cursor" style attribute.
 String jsxGet_direction()
          Gets the "direction" style attribute.
 String jsxGet_display()
          Gets the "display" style attribute.
 String jsxGet_emptyCells()
          Gets the "emptyCells" style attribute.
 String jsxGet_fontFamily()
          Gets the "fontFamily" style attribute.
 String jsxGet_fontSize()
          Gets the "fontSize" style attribute.
 String jsxGet_fontSizeAdjust()
          Gets the "fontSizeAdjust" style attribute.
 String jsxGet_fontStyle()
          Gets the "fontStyle" style attribute.
 String jsxGet_fontVariant()
          Gets the "fontVariant" style attribute.
 String jsxGet_fontWeight()
          Gets the "fontWeight" style attribute.
 String jsxGet_height()
          Gets the "height" style attribute.
 String jsxGet_left()
          Gets the "left" style attribute.
 String jsxGet_letterSpacing()
          Gets the "letterSpacing" style attribute.
 String jsxGet_lineHeight()
          Gets the "lineHeight" style attribute.
 String jsxGet_listStyleImage()
          Gets the "listStyleImage" style attribute.
 String jsxGet_listStylePosition()
          Gets the "listStylePosition" style attribute.
 String jsxGet_listStyleType()
          Gets the "listStyleType" style attribute.
 String jsxGet_marginBottom()
          Gets the "marginBottom" style attribute.
 String jsxGet_marginLeft()
          Gets the "marginLeft" style attribute.
 String jsxGet_marginRight()
          Gets the "marginRight" style attribute.
 String jsxGet_marginTop()
          Gets the "marginTop" style attribute.
 String jsxGet_markerOffset()
          Gets the "markerOffset" style attribute.
 String jsxGet_maxHeight()
          Gets the "maxHeight" style attribute.
 String jsxGet_maxWidth()
          Gets the "maxWidth" style attribute.
 String jsxGet_minHeight()
          Gets the "minHeight" style attribute.
 String jsxGet_minWidth()
          Gets the "minWidth" style attribute.
 String jsxGet_MozAppearance()
          Gets the "MozAppearance" style attribute.
 String jsxGet_MozBackgroundClip()
          Gets the "MozBackgroundClip" style attribute.
 String jsxGet_MozBackgroundInlinePolicy()
          Gets the "MozBackgroundInlinePolicy" style attribute.
 String jsxGet_MozBackgroundOrigin()
          Gets the "MozBackgroundOrigin" style attribute.
 String jsxGet_MozBinding()
          Gets the "MozBinding" style attribute.
 String jsxGet_MozBorderBottomColors()
          Gets the "MozBorderBottomColors" style attribute.
 String jsxGet_MozBorderLeftColors()
          Gets the "MozBorderLeftColors" style attribute.
 String jsxGet_MozBorderRadiusBottomleft()
          Gets the "MozBorderRadiusBottomleft" style attribute.
 String jsxGet_MozBorderRadiusBottomright()
          Gets the "MozBorderRadiusBottomright" style attribute.
 String jsxGet_MozBorderRadiusTopleft()
          Gets the "MozBorderRadiusTopleft" style attribute.
 String jsxGet_MozBorderRadiusTopright()
          Gets the "MozBorderRadiusTopright" style attribute.
 String jsxGet_MozBorderRightColors()
          Gets the "MozBorderRightColors" style attribute.
 String jsxGet_MozBorderTopColors()
          Gets the "MozBorderTopColors" style attribute.
 String jsxGet_MozBoxAlign()
          Gets the "MozBoxAlign" style attribute.
 String jsxGet_MozBoxDirection()
          Gets the "MozBoxDirection" style attribute.
 String jsxGet_MozBoxFlex()
          Gets the "MozBoxFlex" style attribute.
 String jsxGet_MozBoxOrdinalGroup()
          Gets the "MozBoxOrdinalGroup" style attribute.
 String jsxGet_MozBoxOrient()
          Gets the "MozBoxOrient" style attribute.
 String jsxGet_MozBoxPack()
          Gets the "MozBoxPack" style attribute.
 String jsxGet_MozBoxSizing()
          Gets the "MozBoxSizing" style attribute.
 String jsxGet_MozColumnCount()
          Gets the "MozColumnCount" style attribute.
 String jsxGet_MozColumnGap()
          Gets the "MozColumnGap" style attribute.
 String jsxGet_MozColumnWidth()
          Gets the "MozColumnWidth" style attribute.
 String jsxGet_MozFloatEdge()
          Gets the "MozFloatEdge" style attribute.
 String jsxGet_MozImageRegion()
          Gets the "MozImageRegion" style attribute.
 String jsxGet_MozOpacity()
          Gets the "MozOpacity" style attribute.
 String jsxGet_MozOutlineColor()
          Gets the "MozOutlineColor" style attribute.
 String jsxGet_MozOutlineOffset()
          Gets the "MozOutlineOffset" style attribute.
 String jsxGet_MozOutlineRadiusBottomleft()
          Gets the "MozOutlineRadiusBottomleft" style attribute.
 String jsxGet_MozOutlineRadiusBottomright()
          Gets the "MozOutlineRadiusBottomright" style attribute.
 String jsxGet_MozOutlineRadiusTopleft()
          Gets the "MozOutlineRadiusTopleft" style attribute.
 String jsxGet_MozOutlineRadiusTopright()
          Gets the "MozOutlineRadiusTopright" style attribute.
 String jsxGet_MozOutlineStyle()
          Gets the "MozOutlineStyle" style attribute.
 String jsxGet_MozOutlineWidth()
          Gets the "MozOutlineWidth" style attribute.
 String jsxGet_MozUserFocus()
          Gets the "MozUserFocus" style attribute.
 String jsxGet_MozUserInput()
          Gets the "MozUserInput" style attribute.
 String jsxGet_MozUserModify()
          Gets the "MozUserModify" style attribute.
 String jsxGet_MozUserSelect()
          Gets the "MozUserSelect" style attribute.
 String jsxGet_opacity()
          Gets the "opacity" style attribute.
 String jsxGet_outlineColor()
          Gets the "outlineColor" style attribute.
 String jsxGet_outlineOffset()
          Gets the "outlineOffset" style attribute.
 String jsxGet_outlineStyle()
          Gets the "outlineStyle" style attribute.
 String jsxGet_outlineWidth()
          Gets the "outlineWidth" style attribute.
 String jsxGet_overflow()
          Gets the "overflow" style attribute.
 String jsxGet_overflowX()
          Gets the "overflowX" style attribute.
 String jsxGet_overflowY()
          Gets the "overflowY" style attribute.
 String jsxGet_paddingBottom()
          Gets the "paddingBottom" style attribute.
 String jsxGet_paddingLeft()
          Gets the "paddingLeft" style attribute.
 String jsxGet_paddingRight()
          Gets the "paddingRight" style attribute.
 String jsxGet_paddingTop()
          Gets the "paddingTop" style attribute.
 String jsxGet_position()
          Gets the "position" style attribute.
 String jsxGet_right()
          Gets the "right" style attribute.
 String jsxGet_tableLayout()
          Gets the "tableLayout" style attribute.
 String jsxGet_textAlign()
          Gets the "textAlign" style attribute.
 String jsxGet_textDecoration()
          Gets the "textDecoration" style attribute.
 String jsxGet_textIndent()
          Gets the "textIndent" style attribute.
 String jsxGet_textTransform()
          Gets the "textTransform" style attribute.
 String jsxGet_top()
          Gets the "top" style attribute.
 String jsxGet_unicodeBidi()
          Gets the "unicodeBidi" style attribute.
 String jsxGet_verticalAlign()
          Gets the "verticalAlign" style attribute.
 String jsxGet_visibility()
          Gets the "visibility" style attribute.
 String jsxGet_whiteSpace()
          Gets the "whiteSpace" style attribute.
 String jsxGet_width()
          Gets the "width" style attribute.
 String jsxGet_wordSpacing()
          Gets the "wordSpacing" style attribute.
 Object jsxGet_zIndex()
          Gets the "zIndex" style attribute.
protected  String pixelString(HTMLElement element, CSSStyleDeclaration.CssValue value)
          Returns the specified length CSS attribute value value as a pixel length value, as long as we're not emulating IE.
protected  String pixelString(String value)
          Returns the specified length value as a pixel length value, as long as we're not emulating IE.
 void setDefaultLocalStyleAttribute(String name, String newValue)
          Makes a local, "computed", modification to this CSS style that won't override other style attributes of the same name.
protected  void setStyleAttribute(String name, String newValue)
          Sets the specified style attribute.
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleDeclaration
camelize, getCurrentElementIndex, getElement, jsxFunction_getAttribute, jsxFunction_getPropertyCSSValue, jsxFunction_removeAttribute, jsxFunction_removeExpression, jsxFunction_setAttribute, jsxFunction_setExpression, jsxGet_azimuth, jsxGet_background, jsxGet_backgroundPosition, jsxGet_backgroundPositionX, jsxGet_backgroundPositionY, jsxGet_behavior, jsxGet_border, jsxGet_borderBottom, jsxGet_borderColor, jsxGet_borderLeft, jsxGet_borderRight, jsxGet_borderStyle, jsxGet_borderTop, jsxGet_borderWidth, jsxGet_content, jsxGet_cssText, jsxGet_cue, jsxGet_cueAfter, jsxGet_cueBefore, jsxGet_elevation, jsxGet_filter, jsxGet_font, jsxGet_fontStretch, jsxGet_imeMode, jsxGet_layoutFlow, jsxGet_layoutGrid, jsxGet_layoutGridChar, jsxGet_layoutGridLine, jsxGet_layoutGridMode, jsxGet_layoutGridType, jsxGet_length, jsxGet_lineBreak, jsxGet_listStyle, jsxGet_margin, jsxGet_marks, jsxGet_MozBorderRadius, jsxGet_MozForceBrokenImageIcon, jsxGet_MozMarginEnd, jsxGet_MozMarginStart, jsxGet_MozOutline, jsxGet_MozOutlineRadius, jsxGet_MozPaddingEnd, jsxGet_MozPaddingStart, jsxGet_msInterpolationMode, jsxGet_orphans, jsxGet_outline, jsxGet_padding, jsxGet_page, jsxGet_pageBreakAfter, jsxGet_pageBreakBefore, jsxGet_pageBreakInside, jsxGet_pause, jsxGet_pauseAfter, jsxGet_pauseBefore, jsxGet_pitch, jsxGet_pitchRange, jsxGet_pixelBottom, jsxGet_pixelLeft, jsxGet_pixelRight, jsxGet_pixelTop, jsxGet_posBottom, jsxGet_posHeight, jsxGet_posLeft, jsxGet_posRight, jsxGet_posTop, jsxGet_posWidth, jsxGet_quotes, jsxGet_richness, jsxGet_rubyAlign, jsxGet_rubyOverhang, jsxGet_rubyPosition, jsxGet_scrollbar3dLightColor, jsxGet_scrollbarArrowColor, jsxGet_scrollbarBaseColor, jsxGet_scrollbarDarkShadowColor, jsxGet_scrollbarFaceColor, jsxGet_scrollbarHighlightColor, jsxGet_scrollbarShadowColor, jsxGet_scrollbarTrackColor, jsxGet_size, jsxGet_speak, jsxGet_speakHeader, jsxGet_speakNumeral, jsxGet_speakPunctuation, jsxGet_speechRate, jsxGet_stress, jsxGet_styleFloat, jsxGet_textAlignLast, jsxGet_textAutospace, jsxGet_textDecorationBlink, jsxGet_textDecorationLineThrough, jsxGet_textDecorationNone, jsxGet_textDecorationOverline, jsxGet_textDecorationUnderline, jsxGet_textJustify, jsxGet_textJustifyTrim, jsxGet_textKashida, jsxGet_textKashidaSpace, jsxGet_textOverflow, jsxGet_textShadow, jsxGet_textUnderlinePosition, jsxGet_voiceFamily, jsxGet_volume, jsxGet_widows, jsxGet_wordBreak, jsxGet_wordWrap, jsxGet_writingMode, jsxGet_zoom, jsxSet_azimuth, jsxSet_background, jsxSet_backgroundAttachment, jsxSet_backgroundColor, jsxSet_backgroundImage, jsxSet_backgroundPosition, jsxSet_backgroundPositionX, jsxSet_backgroundPositionY, jsxSet_backgroundRepeat, jsxSet_behavior, jsxSet_border, jsxSet_borderBottom, jsxSet_borderBottomColor, jsxSet_borderBottomStyle, jsxSet_borderBottomWidth, jsxSet_borderCollapse, jsxSet_borderColor, jsxSet_borderLeft, jsxSet_borderLeftColor, jsxSet_borderLeftStyle, jsxSet_borderLeftWidth, jsxSet_borderRight, jsxSet_borderRightColor, jsxSet_borderRightStyle, jsxSet_borderRightWidth, jsxSet_borderSpacing, jsxSet_borderStyle, jsxSet_borderTop, jsxSet_borderTopColor, jsxSet_borderTopStyle, jsxSet_borderTopWidth, jsxSet_borderWidth, jsxSet_bottom, jsxSet_captionSide, jsxSet_clear, jsxSet_clip, jsxSet_color, jsxSet_content, jsxSet_counterIncrement, jsxSet_counterReset, jsxSet_cssFloat, jsxSet_cssText, jsxSet_cue, jsxSet_cueAfter, jsxSet_cueBefore, jsxSet_cursor, jsxSet_direction, jsxSet_display, jsxSet_elevation, jsxSet_emptyCells, jsxSet_filter, jsxSet_font, jsxSet_fontFamily, jsxSet_fontSize, jsxSet_fontSizeAdjust, jsxSet_fontStretch, jsxSet_fontStyle, jsxSet_fontVariant, jsxSet_fontWeight, jsxSet_height, jsxSet_imeMode, jsxSet_layoutFlow, jsxSet_layoutGrid, jsxSet_layoutGridChar, jsxSet_layoutGridLine, jsxSet_layoutGridMode, jsxSet_layoutGridType, jsxSet_left, jsxSet_letterSpacing, jsxSet_lineBreak, jsxSet_lineHeight, jsxSet_listStyle, jsxSet_listStyleImage, jsxSet_listStylePosition, jsxSet_listStyleType, jsxSet_margin, jsxSet_marginBottom, jsxSet_marginLeft, jsxSet_marginRight, jsxSet_marginTop, jsxSet_markerOffset, jsxSet_marks, jsxSet_maxHeight, jsxSet_maxWidth, jsxSet_minHeight, jsxSet_minWidth, jsxSet_MozAppearance, jsxSet_MozBackgroundClip, jsxSet_MozBackgroundInlinePolicy, jsxSet_MozBackgroundOrigin, jsxSet_MozBinding, jsxSet_MozBorderBottomColors, jsxSet_MozBorderLeftColors, jsxSet_MozBorderRadius, jsxSet_MozBorderRadiusBottomleft, jsxSet_MozBorderRadiusBottomright, jsxSet_MozBorderRadiusTopleft, jsxSet_MozBorderRadiusTopright, jsxSet_MozBorderRightColors, jsxSet_MozBorderTopColors, jsxSet_MozBoxAlign, jsxSet_MozBoxDirection, jsxSet_MozBoxFlex, jsxSet_MozBoxOrdinalGroup, jsxSet_MozBoxOrient, jsxSet_MozBoxPack, jsxSet_MozBoxSizing, jsxSet_MozColumnCount, jsxSet_MozColumnGap, jsxSet_MozColumnWidth, jsxSet_MozFloatEdge, jsxSet_MozForceBrokenImageIcon, jsxSet_MozImageRegion, jsxSet_MozMarginEnd, jsxSet_MozMarginStart, jsxSet_MozOpacity, jsxSet_MozOutline, jsxSet_MozOutlineColor, jsxSet_MozOutlineOffset, jsxSet_MozOutlineRadius, jsxSet_MozOutlineRadiusBottomleft, jsxSet_MozOutlineRadiusBottomright, jsxSet_MozOutlineRadiusTopleft, jsxSet_MozOutlineRadiusTopright, jsxSet_MozOutlineStyle, jsxSet_MozOutlineWidth, jsxSet_MozPaddingEnd, jsxSet_MozPaddingStart, jsxSet_MozUserFocus, jsxSet_MozUserInput, jsxSet_MozUserModify, jsxSet_MozUserSelect, jsxSet_msInterpolationMode, jsxSet_opacity, jsxSet_orphans, jsxSet_outline, jsxSet_outlineColor, jsxSet_outlineOffset, jsxSet_outlineStyle, jsxSet_outlineWidth, jsxSet_overflow, jsxSet_overflowX, jsxSet_overflowY, jsxSet_padding, jsxSet_paddingBottom, jsxSet_paddingLeft, jsxSet_paddingRight, jsxSet_paddingTop, jsxSet_page, jsxSet_pageBreakAfter, jsxSet_pageBreakBefore, jsxSet_pageBreakInside, jsxSet_pause, jsxSet_pauseAfter, jsxSet_pauseBefore, jsxSet_pitch, jsxSet_pitchRange, jsxSet_pixelBottom, jsxSet_pixelLeft, jsxSet_pixelRight, jsxSet_pixelTop, jsxSet_posBottom, jsxSet_posHeight, jsxSet_position, jsxSet_posLeft, jsxSet_posRight, jsxSet_posTop, jsxSet_posWidth, jsxSet_quotes, jsxSet_richness, jsxSet_right, jsxSet_rubyAlign, jsxSet_rubyOverhang, jsxSet_rubyPosition, jsxSet_scrollbar3dLightColor, jsxSet_scrollbarArrowColor, jsxSet_scrollbarBaseColor, jsxSet_scrollbarDarkShadowColor, jsxSet_scrollbarFaceColor, jsxSet_scrollbarHighlightColor, jsxSet_scrollbarShadowColor, jsxSet_scrollbarTrackColor, jsxSet_size, jsxSet_speak, jsxSet_speakHeader, jsxSet_speakNumeral, jsxSet_speakPunctuation, jsxSet_speechRate, jsxSet_stress, jsxSet_styleFloat, jsxSet_tableLayout, jsxSet_textAlign, jsxSet_textAlignLast, jsxSet_textAutospace, jsxSet_textDecoration, jsxSet_textDecorationBlink, jsxSet_textDecorationLineThrough, jsxSet_textDecorationNone, jsxSet_textDecorationOverline, jsxSet_textDecorationUnderline, jsxSet_textIndent, jsxSet_textJustify, jsxSet_textJustifyTrim, jsxSet_textKashida, jsxSet_textKashidaSpace, jsxSet_textOverflow, jsxSet_textShadow, jsxSet_textTransform, jsxSet_textUnderlinePosition, jsxSet_top, jsxSet_unicodeBidi, jsxSet_verticalAlign, jsxSet_visibility, jsxSet_voiceFamily, jsxSet_volume, jsxSet_whiteSpace, jsxSet_widows, jsxSet_width, jsxSet_wordBreak, jsxSet_wordSpacing, jsxSet_wordWrap, jsxSet_writingMode, jsxSet_zIndex, jsxSet_zoom, pixelValue, pixelValue, setIntegerStyleAttribute, setRoundedStyleAttribute, setStyleAttributePixelInt, toRGBColor, toString, uncamelize
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
 
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, clear, containsKey, containsValue, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, entrySet, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, keySet, preventExtensions, put, put, put, putAll, putConst, putConstProperty, putProperty, putProperty, redefineProperty, remove, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size, values
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ComputedCSSStyleDeclaration

public ComputedCSSStyleDeclaration()
Creates an instance. JavaScript objects must have a default constructor.


ComputedCSSStyleDeclaration

public ComputedCSSStyleDeclaration(CSSStyleDeclaration style)
Parameters:
style - the original Style
Method Detail

getStyleAttribute

protected String getStyleAttribute(String name,
                                   boolean camelCase)
Returns the value of the named style attribute, or an empty string if it is not found. Overridden because some CSS properties are inherited from parent elements.

Overrides:
getStyleAttribute in class CSSStyleDeclaration
Parameters:
name - the name of the style attribute whose value is to be retrieved
camelCase - whether or not the name is expected to be in camel case
Returns:
the named style attribute value, or an empty string if it is not found

setStyleAttribute

protected void setStyleAttribute(String name,
                                 String newValue)
Sets the specified style attribute. This method does nothing as the object is read-only.

Overrides:
setStyleAttribute in class CSSStyleDeclaration
Parameters:
name - the attribute name (camel-cased)
newValue - the attribute value

applyStyleFromSelector

public void applyStyleFromSelector(org.w3c.dom.css.CSSStyleDeclaration declaration,
                                   org.w3c.css.sac.Selector selector)
Makes a local, "computed", modification to this CSS style.

Parameters:
declaration - the style declaration
selector - the selector determining that the style applies to this element

setDefaultLocalStyleAttribute

public void setDefaultLocalStyleAttribute(String name,
                                          String newValue)
Makes a local, "computed", modification to this CSS style that won't override other style attributes of the same name. This method should be used to set default values for style attributes.

Parameters:
name - the name of the style attribute to set
newValue - the value of the style attribute to set

getStyleMap

protected Map<String,CSSStyleDeclaration.StyleElement> getStyleMap(boolean camelCase)
Returns a sorted map containing style elements, keyed on style element name. We use a LinkedHashMap map so that results are deterministic and are thus testable.

Overrides:
getStyleMap in class CSSStyleDeclaration
Parameters:
camelCase - if true, the keys are camel cased (i.e. fontSize), if false, the keys are delimiter-separated (i.e. font-size).
Returns:
a sorted map containing style elements, keyed on style element name

jsxGet_backgroundAttachment

public String jsxGet_backgroundAttachment()
Gets the "backgroundAttachment" style attribute.

Overrides:
jsxGet_backgroundAttachment in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_backgroundColor

public String jsxGet_backgroundColor()
Gets the "backgroundColor" style attribute.

Overrides:
jsxGet_backgroundColor in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_backgroundImage

public String jsxGet_backgroundImage()
Gets the "backgroundImage" style attribute.

Overrides:
jsxGet_backgroundImage in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_backgroundRepeat

public String jsxGet_backgroundRepeat()
Gets the "backgroundRepeat" style attribute.

Overrides:
jsxGet_backgroundRepeat in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderBottomColor

public String jsxGet_borderBottomColor()
Gets the "borderBottomColor" style attribute.

Overrides:
jsxGet_borderBottomColor in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderBottomStyle

public String jsxGet_borderBottomStyle()
Gets the "borderBottomStyle" style attribute.

Overrides:
jsxGet_borderBottomStyle in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderBottomWidth

public String jsxGet_borderBottomWidth()
Gets the "borderBottomWidth" style attribute.

Overrides:
jsxGet_borderBottomWidth in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderCollapse

public String jsxGet_borderCollapse()
Gets the "borderCollapse" style attribute.

Overrides:
jsxGet_borderCollapse in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderLeftColor

public String jsxGet_borderLeftColor()
Gets the "borderLeftColor" style attribute.

Overrides:
jsxGet_borderLeftColor in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderLeftStyle

public String jsxGet_borderLeftStyle()
Gets the "borderLeftStyle" style attribute.

Overrides:
jsxGet_borderLeftStyle in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderLeftWidth

public String jsxGet_borderLeftWidth()
Gets the "borderLeftWidth" style attribute.

Overrides:
jsxGet_borderLeftWidth in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderRightColor

public String jsxGet_borderRightColor()
Gets the "borderRightColor" style attribute.

Overrides:
jsxGet_borderRightColor in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderRightStyle

public String jsxGet_borderRightStyle()
Gets the "borderRightStyle" style attribute.

Overrides:
jsxGet_borderRightStyle in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderRightWidth

public String jsxGet_borderRightWidth()
Gets the "borderRightWidth" style attribute.

Overrides:
jsxGet_borderRightWidth in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderSpacing

public String jsxGet_borderSpacing()
Gets the "borderSpacing" style attribute.

Overrides:
jsxGet_borderSpacing in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderTopColor

public String jsxGet_borderTopColor()
Gets the "borderTopColor" style attribute.

Overrides:
jsxGet_borderTopColor in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderTopStyle

public String jsxGet_borderTopStyle()
Gets the "borderTopStyle" style attribute.

Overrides:
jsxGet_borderTopStyle in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_borderTopWidth

public String jsxGet_borderTopWidth()
Gets the "borderTopWidth" style attribute.

Overrides:
jsxGet_borderTopWidth in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_bottom

public String jsxGet_bottom()
Gets the "bottom" style attribute.

Overrides:
jsxGet_bottom in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_captionSide

public String jsxGet_captionSide()
Gets the "captionSide" style attribute.

Overrides:
jsxGet_captionSide in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_clear

public String jsxGet_clear()
Gets the "clear" style attribute.

Overrides:
jsxGet_clear in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_clip

public String jsxGet_clip()
Gets the "clip" style attribute.

Overrides:
jsxGet_clip in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_color

public String jsxGet_color()
Gets the "color" style attribute.

Overrides:
jsxGet_color in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_counterIncrement

public String jsxGet_counterIncrement()
Gets the "counterIncrement" style attribute.

Overrides:
jsxGet_counterIncrement in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_counterReset

public String jsxGet_counterReset()
Gets the "counterReset" style attribute.

Overrides:
jsxGet_counterReset in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_cssFloat

public String jsxGet_cssFloat()
Gets the "cssFloat" style attribute.

Overrides:
jsxGet_cssFloat in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_cursor

public String jsxGet_cursor()
Gets the "cursor" style attribute.

Overrides:
jsxGet_cursor in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_direction

public String jsxGet_direction()
Gets the "direction" style attribute.

Overrides:
jsxGet_direction in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_display

public String jsxGet_display()
Gets the "display" style attribute.

Overrides:
jsxGet_display in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_emptyCells

public String jsxGet_emptyCells()
Gets the "emptyCells" style attribute.

Overrides:
jsxGet_emptyCells in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_fontFamily

public String jsxGet_fontFamily()
Gets the "fontFamily" style attribute.

Overrides:
jsxGet_fontFamily in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_fontSize

public String jsxGet_fontSize()
Gets the "fontSize" style attribute.

Overrides:
jsxGet_fontSize in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_fontSizeAdjust

public String jsxGet_fontSizeAdjust()
Gets the "fontSizeAdjust" style attribute.

Overrides:
jsxGet_fontSizeAdjust in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_fontStyle

public String jsxGet_fontStyle()
Gets the "fontStyle" style attribute.

Overrides:
jsxGet_fontStyle in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_fontVariant

public String jsxGet_fontVariant()
Gets the "fontVariant" style attribute.

Overrides:
jsxGet_fontVariant in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_fontWeight

public String jsxGet_fontWeight()
Gets the "fontWeight" style attribute.

Overrides:
jsxGet_fontWeight in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_height

public String jsxGet_height()
Gets the "height" style attribute.

Overrides:
jsxGet_height in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_left

public String jsxGet_left()
Gets the "left" style attribute.

Overrides:
jsxGet_left in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_letterSpacing

public String jsxGet_letterSpacing()
Gets the "letterSpacing" style attribute.

Overrides:
jsxGet_letterSpacing in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_lineHeight

public String jsxGet_lineHeight()
Gets the "lineHeight" style attribute.

Overrides:
jsxGet_lineHeight in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_listStyleImage

public String jsxGet_listStyleImage()
Gets the "listStyleImage" style attribute.

Overrides:
jsxGet_listStyleImage in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_listStylePosition

public String jsxGet_listStylePosition()
Gets the "listStylePosition" style attribute.

Overrides:
jsxGet_listStylePosition in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_listStyleType

public String jsxGet_listStyleType()
Gets the "listStyleType" style attribute.

Overrides:
jsxGet_listStyleType in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_marginBottom

public String jsxGet_marginBottom()
Gets the "marginBottom" style attribute.

Overrides:
jsxGet_marginBottom in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_marginLeft

public String jsxGet_marginLeft()
Gets the "marginLeft" style attribute.

Overrides:
jsxGet_marginLeft in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_marginRight

public String jsxGet_marginRight()
Gets the "marginRight" style attribute.

Overrides:
jsxGet_marginRight in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_marginTop

public String jsxGet_marginTop()
Gets the "marginTop" style attribute.

Overrides:
jsxGet_marginTop in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_markerOffset

public String jsxGet_markerOffset()
Gets the "markerOffset" style attribute.

Overrides:
jsxGet_markerOffset in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_maxHeight

public String jsxGet_maxHeight()
Gets the "maxHeight" style attribute.

Overrides:
jsxGet_maxHeight in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_maxWidth

public String jsxGet_maxWidth()
Gets the "maxWidth" style attribute.

Overrides:
jsxGet_maxWidth in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_minHeight

public String jsxGet_minHeight()
Gets the "minHeight" style attribute.

Overrides:
jsxGet_minHeight in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_minWidth

public String jsxGet_minWidth()
Gets the "minWidth" style attribute.

Overrides:
jsxGet_minWidth in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozAppearance

public String jsxGet_MozAppearance()
Gets the "MozAppearance" style attribute.

Overrides:
jsxGet_MozAppearance in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBackgroundClip

public String jsxGet_MozBackgroundClip()
Gets the "MozBackgroundClip" style attribute.

Overrides:
jsxGet_MozBackgroundClip in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBackgroundInlinePolicy

public String jsxGet_MozBackgroundInlinePolicy()
Gets the "MozBackgroundInlinePolicy" style attribute.

Overrides:
jsxGet_MozBackgroundInlinePolicy in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBackgroundOrigin

public String jsxGet_MozBackgroundOrigin()
Gets the "MozBackgroundOrigin" style attribute.

Overrides:
jsxGet_MozBackgroundOrigin in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBinding

public String jsxGet_MozBinding()
Gets the "MozBinding" style attribute.

Overrides:
jsxGet_MozBinding in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBorderBottomColors

public String jsxGet_MozBorderBottomColors()
Gets the "MozBorderBottomColors" style attribute.

Overrides:
jsxGet_MozBorderBottomColors in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBorderLeftColors

public String jsxGet_MozBorderLeftColors()
Gets the "MozBorderLeftColors" style attribute.

Overrides:
jsxGet_MozBorderLeftColors in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBorderRadiusBottomleft

public String jsxGet_MozBorderRadiusBottomleft()
Gets the "MozBorderRadiusBottomleft" style attribute.

Overrides:
jsxGet_MozBorderRadiusBottomleft in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBorderRadiusBottomright

public String jsxGet_MozBorderRadiusBottomright()
Gets the "MozBorderRadiusBottomright" style attribute.

Overrides:
jsxGet_MozBorderRadiusBottomright in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBorderRadiusTopleft

public String jsxGet_MozBorderRadiusTopleft()
Gets the "MozBorderRadiusTopleft" style attribute.

Overrides:
jsxGet_MozBorderRadiusTopleft in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBorderRadiusTopright

public String jsxGet_MozBorderRadiusTopright()
Gets the "MozBorderRadiusTopright" style attribute.

Overrides:
jsxGet_MozBorderRadiusTopright in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBorderRightColors

public String jsxGet_MozBorderRightColors()
Gets the "MozBorderRightColors" style attribute.

Overrides:
jsxGet_MozBorderRightColors in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBorderTopColors

public String jsxGet_MozBorderTopColors()
Gets the "MozBorderTopColors" style attribute.

Overrides:
jsxGet_MozBorderTopColors in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBoxAlign

public String jsxGet_MozBoxAlign()
Gets the "MozBoxAlign" style attribute.

Overrides:
jsxGet_MozBoxAlign in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBoxDirection

public String jsxGet_MozBoxDirection()
Gets the "MozBoxDirection" style attribute.

Overrides:
jsxGet_MozBoxDirection in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBoxFlex

public String jsxGet_MozBoxFlex()
Gets the "MozBoxFlex" style attribute.

Overrides:
jsxGet_MozBoxFlex in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBoxOrdinalGroup

public String jsxGet_MozBoxOrdinalGroup()
Gets the "MozBoxOrdinalGroup" style attribute.

Overrides:
jsxGet_MozBoxOrdinalGroup in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBoxOrient

public String jsxGet_MozBoxOrient()
Gets the "MozBoxOrient" style attribute.

Overrides:
jsxGet_MozBoxOrient in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBoxPack

public String jsxGet_MozBoxPack()
Gets the "MozBoxPack" style attribute.

Overrides:
jsxGet_MozBoxPack in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozBoxSizing

public String jsxGet_MozBoxSizing()
Gets the "MozBoxSizing" style attribute.

Overrides:
jsxGet_MozBoxSizing in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozColumnCount

public String jsxGet_MozColumnCount()
Gets the "MozColumnCount" style attribute.

Overrides:
jsxGet_MozColumnCount in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozColumnGap

public String jsxGet_MozColumnGap()
Gets the "MozColumnGap" style attribute.

Overrides:
jsxGet_MozColumnGap in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozColumnWidth

public String jsxGet_MozColumnWidth()
Gets the "MozColumnWidth" style attribute.

Overrides:
jsxGet_MozColumnWidth in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozFloatEdge

public String jsxGet_MozFloatEdge()
Gets the "MozFloatEdge" style attribute.

Overrides:
jsxGet_MozFloatEdge in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozImageRegion

public String jsxGet_MozImageRegion()
Gets the "MozImageRegion" style attribute.

Overrides:
jsxGet_MozImageRegion in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozOpacity

public String jsxGet_MozOpacity()
Gets the "MozOpacity" style attribute.

Overrides:
jsxGet_MozOpacity in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozOutlineColor

public String jsxGet_MozOutlineColor()
Gets the "MozOutlineColor" style attribute.

Overrides:
jsxGet_MozOutlineColor in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozOutlineOffset

public String jsxGet_MozOutlineOffset()
Gets the "MozOutlineOffset" style attribute.

Overrides:
jsxGet_MozOutlineOffset in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozOutlineRadiusBottomleft

public String jsxGet_MozOutlineRadiusBottomleft()
Gets the "MozOutlineRadiusBottomleft" style attribute.

Overrides:
jsxGet_MozOutlineRadiusBottomleft in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozOutlineRadiusBottomright

public String jsxGet_MozOutlineRadiusBottomright()
Gets the "MozOutlineRadiusBottomright" style attribute.

Overrides:
jsxGet_MozOutlineRadiusBottomright in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozOutlineRadiusTopleft

public String jsxGet_MozOutlineRadiusTopleft()
Gets the "MozOutlineRadiusTopleft" style attribute.

Overrides:
jsxGet_MozOutlineRadiusTopleft in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozOutlineRadiusTopright

public String jsxGet_MozOutlineRadiusTopright()
Gets the "MozOutlineRadiusTopright" style attribute.

Overrides:
jsxGet_MozOutlineRadiusTopright in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozOutlineStyle

public String jsxGet_MozOutlineStyle()
Gets the "MozOutlineStyle" style attribute.

Overrides:
jsxGet_MozOutlineStyle in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozOutlineWidth

public String jsxGet_MozOutlineWidth()
Gets the "MozOutlineWidth" style attribute.

Overrides:
jsxGet_MozOutlineWidth in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozUserFocus

public String jsxGet_MozUserFocus()
Gets the "MozUserFocus" style attribute.

Overrides:
jsxGet_MozUserFocus in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozUserInput

public String jsxGet_MozUserInput()
Gets the "MozUserInput" style attribute.

Overrides:
jsxGet_MozUserInput in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozUserModify

public String jsxGet_MozUserModify()
Gets the "MozUserModify" style attribute.

Overrides:
jsxGet_MozUserModify in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_MozUserSelect

public String jsxGet_MozUserSelect()
Gets the "MozUserSelect" style attribute.

Overrides:
jsxGet_MozUserSelect in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_opacity

public String jsxGet_opacity()
Gets the "opacity" style attribute.

Overrides:
jsxGet_opacity in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_outlineColor

public String jsxGet_outlineColor()
Gets the "outlineColor" style attribute.

Overrides:
jsxGet_outlineColor in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_outlineOffset

public String jsxGet_outlineOffset()
Gets the "outlineOffset" style attribute.

Overrides:
jsxGet_outlineOffset in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_outlineStyle

public String jsxGet_outlineStyle()
Gets the "outlineStyle" style attribute.

Overrides:
jsxGet_outlineStyle in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_outlineWidth

public String jsxGet_outlineWidth()
Gets the "outlineWidth" style attribute.

Overrides:
jsxGet_outlineWidth in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_overflow

public String jsxGet_overflow()
Gets the "overflow" style attribute.

Overrides:
jsxGet_overflow in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_overflowX

public String jsxGet_overflowX()
Gets the "overflowX" style attribute.

Overrides:
jsxGet_overflowX in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_overflowY

public String jsxGet_overflowY()
Gets the "overflowY" style attribute.

Overrides:
jsxGet_overflowY in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_paddingBottom

public String jsxGet_paddingBottom()
Gets the "paddingBottom" style attribute.

Overrides:
jsxGet_paddingBottom in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_paddingLeft

public String jsxGet_paddingLeft()
Gets the "paddingLeft" style attribute.

Overrides:
jsxGet_paddingLeft in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_paddingRight

public String jsxGet_paddingRight()
Gets the "paddingRight" style attribute.

Overrides:
jsxGet_paddingRight in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_paddingTop

public String jsxGet_paddingTop()
Gets the "paddingTop" style attribute.

Overrides:
jsxGet_paddingTop in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_position

public String jsxGet_position()
Gets the "position" style attribute.

Overrides:
jsxGet_position in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_right

public String jsxGet_right()
Gets the "right" style attribute.

Overrides:
jsxGet_right in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_tableLayout

public String jsxGet_tableLayout()
Gets the "tableLayout" style attribute.

Overrides:
jsxGet_tableLayout in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_textAlign

public String jsxGet_textAlign()
Gets the "textAlign" style attribute.

Overrides:
jsxGet_textAlign in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_textDecoration

public String jsxGet_textDecoration()
Gets the "textDecoration" style attribute.

Overrides:
jsxGet_textDecoration in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_textIndent

public String jsxGet_textIndent()
Gets the "textIndent" style attribute.

Overrides:
jsxGet_textIndent in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_textTransform

public String jsxGet_textTransform()
Gets the "textTransform" style attribute.

Overrides:
jsxGet_textTransform in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_top

public String jsxGet_top()
Gets the "top" style attribute.

Overrides:
jsxGet_top in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_unicodeBidi

public String jsxGet_unicodeBidi()
Gets the "unicodeBidi" style attribute.

Overrides:
jsxGet_unicodeBidi in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_verticalAlign

public String jsxGet_verticalAlign()
Gets the "verticalAlign" style attribute.

Overrides:
jsxGet_verticalAlign in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_visibility

public String jsxGet_visibility()
Gets the "visibility" style attribute.

Overrides:
jsxGet_visibility in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_whiteSpace

public String jsxGet_whiteSpace()
Gets the "whiteSpace" style attribute.

Overrides:
jsxGet_whiteSpace in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_width

public String jsxGet_width()
Gets the "width" style attribute.

Overrides:
jsxGet_width in class CSSStyleDeclaration
Returns:
the style attribute

getCalculatedWidth

public int getCalculatedWidth(boolean includeBorder,
                              boolean includePadding)
Returns the element's width in pixels, possibly including its padding and border.

Parameters:
includeBorder - whether or not to include the border width in the returned value
includePadding - whether or not to include the padding width in the returned value
Returns:
the element's width in pixels, possibly including its padding and border

getContentWidth

public int getContentWidth()
Returns the total width of the element's children.

Returns:
the total width of the element's children

getCalculatedHeight

public int getCalculatedHeight(boolean includeBorder,
                               boolean includePadding)
Returns the element's height, possibly including its padding and border.

Parameters:
includeBorder - whether or not to include the border height in the returned value
includePadding - whether or not to include the padding height in the returned value
Returns:
the element's height, possibly including its padding and border

getContentHeight

public int getContentHeight()
Returns the total height of the element's children.

Returns:
the total height of the element's children

isScrollable

public boolean isScrollable(boolean horizontal)
Returns true if the element is scrollable along the specified axis.

Parameters:
horizontal - if true, the caller is interested in scrollability along the x-axis; if false, the caller is interested in scrollability along the y-axis
Returns:
true if the element is scrollable along the specified axis

getTop

public int getTop(boolean includeMargin,
                  boolean includeBorder,
                  boolean includePadding)
Returns the computed top (Y coordinate), relative to the node's parent's top edge.

Parameters:
includeMargin - whether or not to take the margin into account in the calculation
includeBorder - whether or not to take the border into account in the calculation
includePadding - whether or not to take the padding into account in the calculation
Returns:
the computed top (Y coordinate), relative to the node's parent's top edge

getLeft

public int getLeft(boolean includeMargin,
                   boolean includeBorder,
                   boolean includePadding)
Returns the computed left (X coordinate), relative to the node's parent's left edge.

Parameters:
includeMargin - whether or not to take the margin into account in the calculation
includeBorder - whether or not to take the border into account in the calculation
includePadding - whether or not to take the padding into account in the calculation
Returns:
the computed left (X coordinate), relative to the node's parent's left edge

getPositionWithInheritance

public String getPositionWithInheritance()
Returns the CSS position attribute, replacing inherited values with the actual parent values.

Returns:
the CSS position attribute, replacing inherited values with the actual parent values

getLeftWithInheritance

public String getLeftWithInheritance()
Returns the CSS left attribute, replacing inherited values with the actual parent values.

Returns:
the CSS left attribute, replacing inherited values with the actual parent values

getRightWithInheritance

public String getRightWithInheritance()
Returns the CSS right attribute, replacing inherited values with the actual parent values.

Returns:
the CSS right attribute, replacing inherited values with the actual parent values

getTopWithInheritance

public String getTopWithInheritance()
Returns the CSS top attribute, replacing inherited values with the actual parent values.

Returns:
the CSS top attribute, replacing inherited values with the actual parent values

getBottomWithInheritance

public String getBottomWithInheritance()
Returns the CSS bottom attribute, replacing inherited values with the actual parent values.

Returns:
the CSS bottom attribute, replacing inherited values with the actual parent values

getMarginLeft

public int getMarginLeft()
Gets the left margin of the element.

Returns:
the value in pixels

getMarginRight

public int getMarginRight()
Gets the right margin of the element.

Returns:
the value in pixels

getMarginTop

public int getMarginTop()
Gets the top margin of the element.

Returns:
the value in pixels

getMarginBottom

public int getMarginBottom()
Gets the bottom margin of the element.

Returns:
the value in pixels

getPaddingLeft

public int getPaddingLeft()
Gets the left padding of the element.

Returns:
the value in pixels

getPaddingRight

public int getPaddingRight()
Gets the right padding of the element.

Returns:
the value in pixels

getPaddingTop

public int getPaddingTop()
Gets the top padding of the element.

Returns:
the value in pixels

getPaddingBottom

public int getPaddingBottom()
Gets the bottom padding of the element.

Returns:
the value in pixels

getBorderLeft

public int getBorderLeft()
Gets the size of the left border of the element.

Returns:
the value in pixels

getBorderRight

public int getBorderRight()
Gets the size of the right border of the element.

Returns:
the value in pixels

getBorderTop

public int getBorderTop()
Gets the size of the top border of the element.

Returns:
the value in pixels

getBorderBottom

public int getBorderBottom()
Gets the size of the bottom border of the element.

Returns:
the value in pixels

jsxGet_wordSpacing

public String jsxGet_wordSpacing()
Gets the "wordSpacing" style attribute.

Overrides:
jsxGet_wordSpacing in class CSSStyleDeclaration
Returns:
the style attribute

jsxGet_zIndex

public Object jsxGet_zIndex()
Gets the "zIndex" style attribute.

Overrides:
jsxGet_zIndex in class CSSStyleDeclaration
Returns:
the style attribute

jsxFunction_getPropertyValue

public String jsxFunction_getPropertyValue(String name)
Gets the value of the specified property of the style.

Overrides:
jsxFunction_getPropertyValue in class CSSStyleDeclaration
Parameters:
name - the style property name
Returns:
empty string if nothing found

pixelString

protected String pixelString(String value)
Returns the specified length value as a pixel length value, as long as we're not emulating IE. This method does NOT handle percentages correctly; use CSSStyleDeclaration.pixelValue(HTMLElement, CssValue) if you need percentage support).

Parameters:
value - the length value to convert to a pixel length value
Returns:
the specified length value as a pixel length value
See Also:
#pixelString(HTMLElement, CssValue)

pixelString

protected String pixelString(HTMLElement element,
                             CSSStyleDeclaration.CssValue value)
Returns the specified length CSS attribute value value as a pixel length value, as long as we're not emulating IE. If the specified CSS attribute value is a percentage, this method uses the specified value object to recursively retrieve the base (parent) CSS attribute value.

Parameters:
element - the element for which the CSS attribute value is to be retrieved
value - the CSS attribute value which is to be retrieved
Returns:
the specified length CSS attribute value as a pixel length value
See Also:
pixelString(String)


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