public class ComputedCSSStyleDeclaration extends CSSStyleDeclaration
Window.getComputedStyle(Object, String)
,
Serialized Formorg.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
Modifier and Type | Field and Description |
---|---|
static String |
TO_STRING_TAG
Symbol.toStringTag support.
|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
ComputedCSSStyleDeclaration()
Creates an instance.
|
ComputedCSSStyleDeclaration(Element element,
ComputedCssStyleDeclaration cssStyleDeclaration)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getBackgroundAttachment()
Gets the
backgroundAttachment style attribute. |
String |
getBackgroundColor()
Gets the
backgroundColor style attribute. |
String |
getBackgroundImage()
Gets the
backgroundImage style attribute. |
String |
getBackgroundPosition()
Gets the
backgroundPosition style attribute. |
String |
getBackgroundRepeat()
Gets the
backgroundRepeat style attribute. |
String |
getBorderBottomColor()
Gets the
borderBottomColor style attribute. |
String |
getBorderBottomStyle()
Gets the
borderBottomStyle style attribute. |
String |
getBorderBottomWidth()
Gets the
borderBottomWidth style attribute. |
String |
getBorderLeftColor()
Gets the
borderLeftColor style attribute. |
String |
getBorderLeftStyle()
Gets the
borderLeftStyle style attribute. |
String |
getBorderLeftWidth()
Gets the
borderLeftWidth style attribute. |
String |
getBorderRightColor()
Gets the
borderRightColor style attribute. |
String |
getBorderRightStyle()
Gets the
borderRightStyle style attribute. |
String |
getBorderRightWidth()
Gets the
borderRightWidth style attribute. |
String |
getBorderTopColor()
Gets the
borderTopColor style attribute. |
String |
getBorderTopStyle()
Gets the
borderTopStyle style attribute. |
String |
getBorderTopWidth()
Gets the
borderTopWidth style attribute. |
String |
getBottom()
Gets the
bottom style attribute. |
String |
getColor()
Gets the
color style attribute. |
String |
getCssFloat()
Gets the
cssFloat style attribute. |
protected ComputedCssStyleDeclaration |
getCssStyleDeclaration() |
String |
getDisplay()
Gets the
display style attribute. |
String |
getFont()
Gets the
font style attribute. |
String |
getFontFamily()
Gets the
fontFamily style attribute. |
String |
getFontSize()
Gets the
fontSize style attribute. |
String |
getHeight()
Gets the
height style attribute. |
String |
getLeft()
Gets the
left style attribute. |
String |
getLetterSpacing()
Gets the
letterSpacing style attribute. |
String |
getLineHeight()
Gets the
lineHeight style attribute. |
String |
getMargin()
Gets the
margin style attribute. |
String |
getMarginBottom()
Gets the
marginBottom style attribute. |
String |
getMarginLeft()
Gets the
marginLeft style attribute. |
String |
getMarginRight()
Gets the
marginRight style attribute. |
String |
getMarginTop()
Gets the
marginTop style attribute. |
String |
getMaxHeight()
Gets the
maxHeight style attribute. |
String |
getMaxWidth()
Gets the
maxWidth style attribute. |
String |
getMinHeight()
Gets the
minHeight style attribute. |
String |
getMinWidth()
Gets the
minWidth style attribute. |
String |
getOpacity()
Gets the
opacity style attribute. |
String |
getOrphans()
Gets the
orphans style attribute. |
String |
getOutlineWidth()
Gets the
outlineWidth style attribute. |
String |
getPadding()
Gets the
padding style attribute. |
String |
getPaddingBottom()
Gets the
paddingBottom style attribute. |
String |
getPaddingLeft()
Gets the
paddingLeft style attribute. |
String |
getPaddingRight()
Gets the
paddingRight style attribute. |
String |
getPaddingTop()
Gets the
paddingTop style attribute. |
String |
getPosition()
Gets the
position style attribute. |
String |
getPropertyValue(String name)
Gets the value of the specified property of the style.
|
String |
getRight()
Gets the
right style attribute. |
String |
getTextIndent()
Gets the
textIndent style attribute. |
String |
getTop()
Gets the
top style attribute. |
String |
getVerticalAlign()
Gets the
verticalAlign style attribute. |
String |
getWidows()
Gets the
widows style attribute. |
String |
getWordSpacing()
Gets the
wordSpacing style attribute. |
String |
getZIndex()
Gets the
zIndex style attribute. |
void |
jsConstructor()
JavaScript constructor.
|
protected void |
setStyleAttribute(String name,
String newValue)
Sets the specified style attribute.
|
org.htmlunit.corejs.javascript.Scriptable |
values()
Returns an Iterator allowing to go through all keys contained in this object.
|
get, get, getBorderTop, getCssText, getIds, getLength, getOutline, getParentRule, getPropertyPriority, getRubyAlign, getSize, getStyleAttribute, getStyleAttribute, getStylePriority, getWidth, has, item, jsConstructor, put, removeProperty, setBackgroundAttachment, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorderBottomColor, setBorderBottomStyle, setBorderBottomWidth, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderTop, setBorderTopColor, setBorderTopStyle, setBorderTopWidth, setBottom, setColor, setCssFloat, setCssText, setDisplay, setFont, setFontFamily, setFontSize, setHeight, setLeft, setLetterSpacing, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setOrphans, setOutline, setOutlineWidth, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setParentRule, setPosition, setProperty, setRight, setRubyAlign, setSize, setStyleAttribute, setTextIndent, setTop, setVerticalAlign, setWidows, setWidth, setWordSpacing, setZIndex, toString
clone, equivalentValues, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
public static final String TO_STRING_TAG
public ComputedCSSStyleDeclaration()
public ComputedCSSStyleDeclaration(Element element, ComputedCssStyleDeclaration cssStyleDeclaration)
element
- the element this belongs tocssStyleDeclaration
- the ComputedCssStyleDeclaration
this is base onpublic void jsConstructor()
protected ComputedCssStyleDeclaration getCssStyleDeclaration()
getCssStyleDeclaration
in class CSSStyleDeclaration
public org.htmlunit.corejs.javascript.Scriptable values()
values
in class CSSStyleDeclaration
protected void setStyleAttribute(String name, String newValue)
setStyleAttribute
in class CSSStyleDeclaration
name
- the attribute name (camel-cased)newValue
- the attribute valuepublic String getBackgroundAttachment()
backgroundAttachment
style attribute.getBackgroundAttachment
in class CSSStyleDeclaration
public String getBackgroundColor()
backgroundColor
style attribute.getBackgroundColor
in class CSSStyleDeclaration
public String getBackgroundImage()
backgroundImage
style attribute.getBackgroundImage
in class CSSStyleDeclaration
public String getBackgroundPosition()
backgroundPosition
style attribute.getBackgroundPosition
in class CSSStyleDeclaration
public String getBackgroundRepeat()
backgroundRepeat
style attribute.getBackgroundRepeat
in class CSSStyleDeclaration
public String getBorderBottomColor()
borderBottomColor
style attribute.getBorderBottomColor
in class CSSStyleDeclaration
public String getBorderBottomStyle()
borderBottomStyle
style attribute.getBorderBottomStyle
in class CSSStyleDeclaration
public String getBorderBottomWidth()
borderBottomWidth
style attribute.getBorderBottomWidth
in class CSSStyleDeclaration
public String getBorderLeftColor()
borderLeftColor
style attribute.getBorderLeftColor
in class CSSStyleDeclaration
public String getBorderLeftStyle()
borderLeftStyle
style attribute.getBorderLeftStyle
in class CSSStyleDeclaration
public String getBorderLeftWidth()
borderLeftWidth
style attribute.getBorderLeftWidth
in class CSSStyleDeclaration
public String getBorderRightColor()
borderRightColor
style attribute.getBorderRightColor
in class CSSStyleDeclaration
public String getBorderRightStyle()
borderRightStyle
style attribute.getBorderRightStyle
in class CSSStyleDeclaration
public String getBorderRightWidth()
borderRightWidth
style attribute.getBorderRightWidth
in class CSSStyleDeclaration
public String getBorderTopColor()
borderTopColor
style attribute.getBorderTopColor
in class CSSStyleDeclaration
public String getBorderTopStyle()
borderTopStyle
style attribute.getBorderTopStyle
in class CSSStyleDeclaration
public String getBorderTopWidth()
borderTopWidth
style attribute.getBorderTopWidth
in class CSSStyleDeclaration
public String getBottom()
bottom
style attribute.getBottom
in class CSSStyleDeclaration
public String getColor()
color
style attribute.getColor
in class CSSStyleDeclaration
public String getCssFloat()
cssFloat
style attribute.getCssFloat
in class CSSStyleDeclaration
public String getDisplay()
display
style attribute.getDisplay
in class CSSStyleDeclaration
public String getFont()
font
style attribute.getFont
in class CSSStyleDeclaration
public String getFontFamily()
fontFamily
style attribute.getFontFamily
in class CSSStyleDeclaration
public String getFontSize()
fontSize
style attribute.getFontSize
in class CSSStyleDeclaration
public String getLineHeight()
lineHeight
style attribute.getLineHeight
in class CSSStyleDeclaration
public String getHeight()
height
style attribute.getHeight
in class CSSStyleDeclaration
public String getLeft()
left
style attribute.getLeft
in class CSSStyleDeclaration
public String getLetterSpacing()
letterSpacing
style attribute.getLetterSpacing
in class CSSStyleDeclaration
public String getMargin()
margin
style attribute.getMargin
in class CSSStyleDeclaration
public String getMarginBottom()
marginBottom
style attribute.getMarginBottom
in class CSSStyleDeclaration
public String getMarginLeft()
marginLeft
style attribute.getMarginLeft
in class CSSStyleDeclaration
public String getMarginRight()
marginRight
style attribute.getMarginRight
in class CSSStyleDeclaration
public String getMarginTop()
marginTop
style attribute.getMarginTop
in class CSSStyleDeclaration
public String getMaxHeight()
maxHeight
style attribute.getMaxHeight
in class CSSStyleDeclaration
public String getMaxWidth()
maxWidth
style attribute.getMaxWidth
in class CSSStyleDeclaration
public String getMinHeight()
minHeight
style attribute.getMinHeight
in class CSSStyleDeclaration
public String getMinWidth()
minWidth
style attribute.getMinWidth
in class CSSStyleDeclaration
public String getOpacity()
opacity
style attribute.getOpacity
in class CSSStyleDeclaration
public String getOutlineWidth()
outlineWidth
style attribute.getOutlineWidth
in class CSSStyleDeclaration
public String getPadding()
padding
style attribute.getPadding
in class CSSStyleDeclaration
public String getPaddingBottom()
paddingBottom
style attribute.getPaddingBottom
in class CSSStyleDeclaration
public String getPaddingLeft()
paddingLeft
style attribute.getPaddingLeft
in class CSSStyleDeclaration
public String getPaddingRight()
paddingRight
style attribute.getPaddingRight
in class CSSStyleDeclaration
public String getPaddingTop()
paddingTop
style attribute.getPaddingTop
in class CSSStyleDeclaration
public String getRight()
right
style attribute.getRight
in class CSSStyleDeclaration
public String getTextIndent()
textIndent
style attribute.getTextIndent
in class CSSStyleDeclaration
public String getTop()
top
style attribute.getTop
in class CSSStyleDeclaration
public String getVerticalAlign()
verticalAlign
style attribute.getVerticalAlign
in class CSSStyleDeclaration
public String getWidows()
widows
style attribute.getWidows
in class CSSStyleDeclaration
public String getOrphans()
orphans
style attribute.getOrphans
in class CSSStyleDeclaration
public String getPosition()
position
style attribute.getPosition
in class CSSStyleDeclaration
public String getWordSpacing()
wordSpacing
style attribute.getWordSpacing
in class CSSStyleDeclaration
public String getZIndex()
zIndex
style attribute.getZIndex
in class CSSStyleDeclaration
public String getPropertyValue(String name)
getPropertyValue
in class CSSStyleDeclaration
name
- the style property nameCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.