public class ComputedCSSStyleDeclaration extends CSSStyleDeclaration
CSSStyleDeclaration.CssValue, CSSStyleDeclaration.StyleElementWIDTH| Constructor and Description |
|---|
ComputedCSSStyleDeclaration()
Creates an instance.
|
ComputedCSSStyleDeclaration(CSSStyleDeclaration style) |
| Modifier and Type | Method and Description |
|---|---|
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,
Map<String,CSSStyleDeclaration.StyleElement> styleMap)
Returns the value of the named style attribute, or an empty string if it is not found.
|
protected Map<String,CSSStyleDeclaration.StyleElement> |
getStyleMap()
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_backgroundPosition()
Gets the "backgroundPosition" 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.
|
camelize, getCurrentElementIndex, getElement, jsxFunction_getAttribute, jsxFunction_getPropertyCSSValue, jsxFunction_removeAttribute, jsxFunction_removeExpression, jsxFunction_setAttribute, jsxFunction_setExpression, jsxGet_azimuth, jsxGet_background, 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, setStyleAttributePixelInt, toRGBColor, toStringclone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElementapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, sizepublic ComputedCSSStyleDeclaration()
public ComputedCSSStyleDeclaration(CSSStyleDeclaration style)
style - the original Styleprotected String getStyleAttribute(String name, Map<String,CSSStyleDeclaration.StyleElement> styleMap)
getStyleAttribute in class CSSStyleDeclarationname - the name of the style attribute whose value is to be retrievedstyleMap - if the style map was calculated before, you can provide it here
for performanceprotected void setStyleAttribute(String name, String newValue)
setStyleAttribute in class CSSStyleDeclarationname - the attribute name (camel-cased)newValue - the attribute valuepublic void applyStyleFromSelector(org.w3c.dom.css.CSSStyleDeclaration declaration, org.w3c.css.sac.Selector selector)
declaration - the style declarationselector - the selector determining that the style applies to this elementpublic void setDefaultLocalStyleAttribute(String name, String newValue)
name - the name of the style attribute to setnewValue - the value of the style attribute to setprotected Map<String,CSSStyleDeclaration.StyleElement> getStyleMap()
LinkedHashMap map so that results are deterministic and are thus testable.getStyleMap in class CSSStyleDeclarationpublic String jsxGet_backgroundAttachment()
jsxGet_backgroundAttachment in class CSSStyleDeclarationpublic String jsxGet_backgroundColor()
jsxGet_backgroundColor in class CSSStyleDeclarationpublic String jsxGet_backgroundImage()
jsxGet_backgroundImage in class CSSStyleDeclarationpublic String jsxGet_backgroundPosition()
jsxGet_backgroundPosition in class CSSStyleDeclarationpublic String jsxGet_backgroundRepeat()
jsxGet_backgroundRepeat in class CSSStyleDeclarationpublic String jsxGet_borderBottomColor()
jsxGet_borderBottomColor in class CSSStyleDeclarationpublic String jsxGet_borderBottomStyle()
jsxGet_borderBottomStyle in class CSSStyleDeclarationpublic String jsxGet_borderBottomWidth()
jsxGet_borderBottomWidth in class CSSStyleDeclarationpublic String jsxGet_borderCollapse()
jsxGet_borderCollapse in class CSSStyleDeclarationpublic String jsxGet_borderLeftColor()
jsxGet_borderLeftColor in class CSSStyleDeclarationpublic String jsxGet_borderLeftStyle()
jsxGet_borderLeftStyle in class CSSStyleDeclarationpublic String jsxGet_borderLeftWidth()
jsxGet_borderLeftWidth in class CSSStyleDeclarationpublic String jsxGet_borderRightColor()
jsxGet_borderRightColor in class CSSStyleDeclarationpublic String jsxGet_borderRightStyle()
jsxGet_borderRightStyle in class CSSStyleDeclarationpublic String jsxGet_borderRightWidth()
jsxGet_borderRightWidth in class CSSStyleDeclarationpublic String jsxGet_borderSpacing()
jsxGet_borderSpacing in class CSSStyleDeclarationpublic String jsxGet_borderTopColor()
jsxGet_borderTopColor in class CSSStyleDeclarationpublic String jsxGet_borderTopStyle()
jsxGet_borderTopStyle in class CSSStyleDeclarationpublic String jsxGet_borderTopWidth()
jsxGet_borderTopWidth in class CSSStyleDeclarationpublic String jsxGet_bottom()
jsxGet_bottom in class CSSStyleDeclarationpublic String jsxGet_captionSide()
jsxGet_captionSide in class CSSStyleDeclarationpublic String jsxGet_clear()
jsxGet_clear in class CSSStyleDeclarationpublic String jsxGet_clip()
jsxGet_clip in class CSSStyleDeclarationpublic String jsxGet_color()
jsxGet_color in class CSSStyleDeclarationpublic String jsxGet_counterIncrement()
jsxGet_counterIncrement in class CSSStyleDeclarationpublic String jsxGet_counterReset()
jsxGet_counterReset in class CSSStyleDeclarationpublic String jsxGet_cssFloat()
jsxGet_cssFloat in class CSSStyleDeclarationpublic String jsxGet_cursor()
jsxGet_cursor in class CSSStyleDeclarationpublic String jsxGet_direction()
jsxGet_direction in class CSSStyleDeclarationpublic String jsxGet_display()
jsxGet_display in class CSSStyleDeclarationpublic String jsxGet_emptyCells()
jsxGet_emptyCells in class CSSStyleDeclarationpublic String jsxGet_fontFamily()
jsxGet_fontFamily in class CSSStyleDeclarationpublic String jsxGet_fontSize()
jsxGet_fontSize in class CSSStyleDeclarationpublic String jsxGet_fontSizeAdjust()
jsxGet_fontSizeAdjust in class CSSStyleDeclarationpublic String jsxGet_fontStyle()
jsxGet_fontStyle in class CSSStyleDeclarationpublic String jsxGet_fontVariant()
jsxGet_fontVariant in class CSSStyleDeclarationpublic String jsxGet_fontWeight()
jsxGet_fontWeight in class CSSStyleDeclarationpublic String jsxGet_height()
jsxGet_height in class CSSStyleDeclarationpublic String jsxGet_left()
jsxGet_left in class CSSStyleDeclarationpublic String jsxGet_letterSpacing()
jsxGet_letterSpacing in class CSSStyleDeclarationpublic String jsxGet_lineHeight()
jsxGet_lineHeight in class CSSStyleDeclarationpublic String jsxGet_listStyleImage()
jsxGet_listStyleImage in class CSSStyleDeclarationpublic String jsxGet_listStylePosition()
jsxGet_listStylePosition in class CSSStyleDeclarationpublic String jsxGet_listStyleType()
jsxGet_listStyleType in class CSSStyleDeclarationpublic String jsxGet_marginBottom()
jsxGet_marginBottom in class CSSStyleDeclarationpublic String jsxGet_marginLeft()
jsxGet_marginLeft in class CSSStyleDeclarationpublic String jsxGet_marginRight()
jsxGet_marginRight in class CSSStyleDeclarationpublic String jsxGet_marginTop()
jsxGet_marginTop in class CSSStyleDeclarationpublic String jsxGet_markerOffset()
jsxGet_markerOffset in class CSSStyleDeclarationpublic String jsxGet_maxHeight()
jsxGet_maxHeight in class CSSStyleDeclarationpublic String jsxGet_maxWidth()
jsxGet_maxWidth in class CSSStyleDeclarationpublic String jsxGet_minHeight()
jsxGet_minHeight in class CSSStyleDeclarationpublic String jsxGet_minWidth()
jsxGet_minWidth in class CSSStyleDeclarationpublic String jsxGet_MozAppearance()
jsxGet_MozAppearance in class CSSStyleDeclarationpublic String jsxGet_MozBackgroundClip()
jsxGet_MozBackgroundClip in class CSSStyleDeclarationpublic String jsxGet_MozBackgroundInlinePolicy()
jsxGet_MozBackgroundInlinePolicy in class CSSStyleDeclarationpublic String jsxGet_MozBackgroundOrigin()
jsxGet_MozBackgroundOrigin in class CSSStyleDeclarationpublic String jsxGet_MozBinding()
jsxGet_MozBinding in class CSSStyleDeclarationpublic String jsxGet_MozBorderBottomColors()
jsxGet_MozBorderBottomColors in class CSSStyleDeclarationpublic String jsxGet_MozBorderLeftColors()
jsxGet_MozBorderLeftColors in class CSSStyleDeclarationpublic String jsxGet_MozBorderRadiusBottomleft()
jsxGet_MozBorderRadiusBottomleft in class CSSStyleDeclarationpublic String jsxGet_MozBorderRadiusBottomright()
jsxGet_MozBorderRadiusBottomright in class CSSStyleDeclarationpublic String jsxGet_MozBorderRadiusTopleft()
jsxGet_MozBorderRadiusTopleft in class CSSStyleDeclarationpublic String jsxGet_MozBorderRadiusTopright()
jsxGet_MozBorderRadiusTopright in class CSSStyleDeclarationpublic String jsxGet_MozBorderRightColors()
jsxGet_MozBorderRightColors in class CSSStyleDeclarationpublic String jsxGet_MozBorderTopColors()
jsxGet_MozBorderTopColors in class CSSStyleDeclarationpublic String jsxGet_MozBoxAlign()
jsxGet_MozBoxAlign in class CSSStyleDeclarationpublic String jsxGet_MozBoxDirection()
jsxGet_MozBoxDirection in class CSSStyleDeclarationpublic String jsxGet_MozBoxFlex()
jsxGet_MozBoxFlex in class CSSStyleDeclarationpublic String jsxGet_MozBoxOrdinalGroup()
jsxGet_MozBoxOrdinalGroup in class CSSStyleDeclarationpublic String jsxGet_MozBoxOrient()
jsxGet_MozBoxOrient in class CSSStyleDeclarationpublic String jsxGet_MozBoxPack()
jsxGet_MozBoxPack in class CSSStyleDeclarationpublic String jsxGet_MozBoxSizing()
jsxGet_MozBoxSizing in class CSSStyleDeclarationpublic String jsxGet_MozColumnCount()
jsxGet_MozColumnCount in class CSSStyleDeclarationpublic String jsxGet_MozColumnGap()
jsxGet_MozColumnGap in class CSSStyleDeclarationpublic String jsxGet_MozColumnWidth()
jsxGet_MozColumnWidth in class CSSStyleDeclarationpublic String jsxGet_MozFloatEdge()
jsxGet_MozFloatEdge in class CSSStyleDeclarationpublic String jsxGet_MozImageRegion()
jsxGet_MozImageRegion in class CSSStyleDeclarationpublic String jsxGet_MozOpacity()
jsxGet_MozOpacity in class CSSStyleDeclarationpublic String jsxGet_MozOutlineColor()
jsxGet_MozOutlineColor in class CSSStyleDeclarationpublic String jsxGet_MozOutlineOffset()
jsxGet_MozOutlineOffset in class CSSStyleDeclarationpublic String jsxGet_MozOutlineRadiusBottomleft()
jsxGet_MozOutlineRadiusBottomleft in class CSSStyleDeclarationpublic String jsxGet_MozOutlineRadiusBottomright()
jsxGet_MozOutlineRadiusBottomright in class CSSStyleDeclarationpublic String jsxGet_MozOutlineRadiusTopleft()
jsxGet_MozOutlineRadiusTopleft in class CSSStyleDeclarationpublic String jsxGet_MozOutlineRadiusTopright()
jsxGet_MozOutlineRadiusTopright in class CSSStyleDeclarationpublic String jsxGet_MozOutlineStyle()
jsxGet_MozOutlineStyle in class CSSStyleDeclarationpublic String jsxGet_MozOutlineWidth()
jsxGet_MozOutlineWidth in class CSSStyleDeclarationpublic String jsxGet_MozUserFocus()
jsxGet_MozUserFocus in class CSSStyleDeclarationpublic String jsxGet_MozUserInput()
jsxGet_MozUserInput in class CSSStyleDeclarationpublic String jsxGet_MozUserModify()
jsxGet_MozUserModify in class CSSStyleDeclarationpublic String jsxGet_MozUserSelect()
jsxGet_MozUserSelect in class CSSStyleDeclarationpublic String jsxGet_opacity()
jsxGet_opacity in class CSSStyleDeclarationpublic String jsxGet_outlineColor()
jsxGet_outlineColor in class CSSStyleDeclarationpublic String jsxGet_outlineOffset()
jsxGet_outlineOffset in class CSSStyleDeclarationpublic String jsxGet_outlineStyle()
jsxGet_outlineStyle in class CSSStyleDeclarationpublic String jsxGet_outlineWidth()
jsxGet_outlineWidth in class CSSStyleDeclarationpublic String jsxGet_overflow()
jsxGet_overflow in class CSSStyleDeclarationpublic String jsxGet_overflowX()
jsxGet_overflowX in class CSSStyleDeclarationpublic String jsxGet_overflowY()
jsxGet_overflowY in class CSSStyleDeclarationpublic String jsxGet_paddingBottom()
jsxGet_paddingBottom in class CSSStyleDeclarationpublic String jsxGet_paddingLeft()
jsxGet_paddingLeft in class CSSStyleDeclarationpublic String jsxGet_paddingRight()
jsxGet_paddingRight in class CSSStyleDeclarationpublic String jsxGet_paddingTop()
jsxGet_paddingTop in class CSSStyleDeclarationpublic String jsxGet_position()
jsxGet_position in class CSSStyleDeclarationpublic String jsxGet_right()
jsxGet_right in class CSSStyleDeclarationpublic String jsxGet_tableLayout()
jsxGet_tableLayout in class CSSStyleDeclarationpublic String jsxGet_textAlign()
jsxGet_textAlign in class CSSStyleDeclarationpublic String jsxGet_textDecoration()
jsxGet_textDecoration in class CSSStyleDeclarationpublic String jsxGet_textIndent()
jsxGet_textIndent in class CSSStyleDeclarationpublic String jsxGet_textTransform()
jsxGet_textTransform in class CSSStyleDeclarationpublic String jsxGet_top()
jsxGet_top in class CSSStyleDeclarationpublic String jsxGet_unicodeBidi()
jsxGet_unicodeBidi in class CSSStyleDeclarationpublic String jsxGet_verticalAlign()
jsxGet_verticalAlign in class CSSStyleDeclarationpublic String jsxGet_visibility()
jsxGet_visibility in class CSSStyleDeclarationpublic String jsxGet_whiteSpace()
jsxGet_whiteSpace in class CSSStyleDeclarationpublic String jsxGet_width()
jsxGet_width in class CSSStyleDeclarationpublic int getCalculatedWidth(boolean includeBorder,
boolean includePadding)
includeBorder - whether or not to include the border width in the returned valueincludePadding - whether or not to include the padding width in the returned valuepublic int getContentWidth()
public int getCalculatedHeight(boolean includeBorder,
boolean includePadding)
includeBorder - whether or not to include the border height in the returned valueincludePadding - whether or not to include the padding height in the returned valuepublic int getContentHeight()
public boolean isScrollable(boolean horizontal)
horizontal - if true, the caller is interested in scrollability along the x-axis;
if false, the caller is interested in scrollability along the y-axispublic int getTop(boolean includeMargin,
boolean includeBorder,
boolean includePadding)
includeMargin - whether or not to take the margin into account in the calculationincludeBorder - whether or not to take the border into account in the calculationincludePadding - whether or not to take the padding into account in the calculationpublic int getLeft(boolean includeMargin,
boolean includeBorder,
boolean includePadding)
includeMargin - whether or not to take the margin into account in the calculationincludeBorder - whether or not to take the border into account in the calculationincludePadding - whether or not to take the padding into account in the calculationpublic String getPositionWithInheritance()
public String getLeftWithInheritance()
public String getRightWithInheritance()
public String getTopWithInheritance()
public String getBottomWithInheritance()
public int getMarginLeft()
public int getMarginRight()
public int getMarginTop()
public int getMarginBottom()
public int getPaddingLeft()
public int getPaddingRight()
public int getPaddingTop()
public int getPaddingBottom()
public int getBorderLeft()
public int getBorderRight()
public int getBorderTop()
public int getBorderBottom()
public String jsxGet_wordSpacing()
jsxGet_wordSpacing in class CSSStyleDeclarationpublic Object jsxGet_zIndex()
jsxGet_zIndex in class CSSStyleDeclarationpublic String jsxFunction_getPropertyValue(String name)
jsxFunction_getPropertyValue in class CSSStyleDeclarationname - the style property nameprotected String pixelString(String value)
CSSStyleDeclaration.pixelValue(HTMLElement, CssValue)
if you need percentage support).value - the length value to convert to a pixel length value#pixelString(HTMLElement, CssValue)protected String pixelString(HTMLElement element, CSSStyleDeclaration.CssValue value)
element - the element for which the CSS attribute value is to be retrievedvalue - the CSS attribute value which is to be retrievedpixelString(String)Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.