public class ComputedCSSStyleDeclaration extends CSSStyleDeclaration
Window.getComputedStyle(Element, String)
,
Serialized FormCSSStyleDeclaration.CssValue, CSSStyleDeclaration.StyleElement
PRIORITY_IMPORTANT, WIDTH
Constructor and Description |
---|
ComputedCSSStyleDeclaration()
Creates an instance.
|
ComputedCSSStyleDeclaration(CSSStyleDeclaration style)
Creates an instance.
|
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.
|
String |
getAccelerator()
Gets the
accelerator style attribute. |
String |
getBackground()
Gets the
background style attribute. |
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 |
getBackgroundPositionX()
Gets the
backgroundPositionX style attribute. |
String |
getBackgroundPositionY()
Gets the
backgroundPositionY style attribute. |
String |
getBackgroundRepeat()
Gets the
backgroundRepeat style attribute. |
String |
getBorder()
Gets the
border style attribute. |
String |
getBorderBottom()
Gets the
borderBottom style attribute. |
String |
getBorderBottomColor()
Gets the
borderBottomColor style attribute. |
String |
getBorderBottomStyle()
Gets the
borderBottomStyle style attribute. |
int |
getBorderBottomValue()
Gets the size of the bottom border of the element.
|
String |
getBorderBottomWidth()
Gets the
borderBottomWidth style attribute. |
String |
getBorderCollapse()
Gets the
borderCollapse style attribute. |
String |
getBorderColor()
Gets the
borderColor style attribute. |
String |
getBorderLeft()
Gets the
borderLeft style attribute. |
String |
getBorderLeftColor()
Gets the
borderLeftColor style attribute. |
String |
getBorderLeftStyle()
Gets the
borderLeftStyle style attribute. |
int |
getBorderLeftValue()
Gets the size of the left border of the element.
|
String |
getBorderLeftWidth()
Gets the
borderLeftWidth style attribute. |
String |
getBorderRight()
Gets the
borderRight style attribute. |
String |
getBorderRightColor()
Gets the
borderRightColor style attribute. |
String |
getBorderRightStyle()
Gets the
borderRightStyle style attribute. |
int |
getBorderRightValue()
Gets the size of the right border of the element.
|
String |
getBorderRightWidth()
Gets the
borderRightWidth style attribute. |
String |
getBorderSpacing()
Gets the
borderSpacing style attribute. |
String |
getBorderStyle()
Gets the
borderStyle style attribute. |
String |
getBorderTop()
Gets the
borderTop style attribute. |
String |
getBorderTopColor()
Gets the
borderTopColor style attribute. |
String |
getBorderTopStyle()
Gets the
borderTopStyle style attribute. |
int |
getBorderTopValue()
Gets the size of the top border of the element.
|
String |
getBorderTopWidth()
Gets the
borderTopWidth style attribute. |
String |
getBorderWidth()
Gets the
borderWidth style attribute. |
String |
getBottom()
Gets the
bottom style attribute. |
String |
getBottomWithInheritance()
Returns the CSS
bottom attribute, replacing inherited values with the actual parent values. |
String |
getBoxSizing()
Gets the
boxSizing style attribute. |
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.
|
String |
getCaptionSide()
Gets the
captionSide style attribute. |
String |
getClear()
Gets the
clear style attribute. |
String |
getClip()
Gets the
clip style attribute. |
String |
getColor()
Gets the
color style attribute. |
String |
getContent()
Gets the
content style attribute. |
int |
getContentHeight()
Returns the total height of the element's children.
|
int |
getContentWidth()
Returns the total width of the element's children.
|
String |
getCounterIncrement()
Gets the
counterIncrement style attribute. |
String |
getCounterReset()
Gets the
counterReset style attribute. |
String |
getCssFloat()
Gets the
cssFloat style attribute. |
String |
getCursor()
Gets the
cursor style attribute. |
String |
getDirection()
Gets the
direction style attribute. |
String |
getDisplay()
Gets the
display style attribute. |
String |
getEmptyCells()
Gets the
emptyCells style attribute. |
String |
getFont()
Gets the
font style attribute. |
String |
getFontFamily()
Gets the
fontFamily style attribute. |
String |
getFontSize()
Gets the
fontSize style attribute. |
String |
getFontSizeAdjust()
Gets the
fontSizeAdjust style attribute. |
String |
getFontStretch()
Gets the
fontStretch style attribute. |
String |
getFontStyle()
Gets the
fontStyle style attribute. |
String |
getFontVariant()
Gets the
fontVariant style attribute. |
String |
getFontWeight()
Gets the
fontWeight style attribute. |
String |
getHeight()
Gets the
height style attribute. |
String |
getImeMode()
Gets the
imeMode style attribute. |
String |
getLayoutFlow()
Gets the
layoutFlow style attribute. |
String |
getLayoutGrid()
Gets the
layoutGrid style attribute. |
String |
getLayoutGridChar()
Gets the
layoutGridChar style attribute. |
String |
getLayoutGridLine()
Gets the
layoutGridLine style attribute. |
String |
getLayoutGridMode()
Gets the
layoutGridMode style attribute. |
String |
getLayoutGridType()
Gets the
layoutGridType style attribute. |
String |
getLeft()
Gets the
left style attribute. |
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. |
String |
getLetterSpacing()
Gets the
letterSpacing style attribute. |
String |
getLineBreak()
Gets the
lineBreak style attribute. |
String |
getListStyle()
Gets the
listStyle style attribute. |
String |
getListStyleImage()
Gets the
listStyleImage style attribute. |
String |
getListStylePosition()
Gets the
listStylePosition style attribute. |
String |
getListStyleType()
Gets the
listStyleType style attribute. |
String |
getMargin()
Gets the
margin style attribute. |
String |
getMarginBottom()
Gets the
marginBottom style attribute. |
int |
getMarginBottomValue()
Gets the bottom margin of the element.
|
String |
getMarginLeft()
Gets the
marginLeft style attribute. |
int |
getMarginLeftValue()
Gets the left margin of the element.
|
String |
getMarginRight()
Gets the
marginRight style attribute. |
int |
getMarginRightValue()
Gets the right margin of the element.
|
String |
getMarginTop()
Gets the
marginTop style attribute. |
int |
getMarginTopValue()
Gets the top margin of the element.
|
String |
getMarkerOffset()
Gets the
markerOffset 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 |
getMsBlockProgression()
Gets the
msBlockProgression style attribute. |
String |
getMsContentZoomChaining()
Returns the
msContentZoomChaining style attribute. |
String |
getMsContentZooming()
Returns the
msContentZooming style attribute. |
String |
getMsContentZoomLimit()
Returns the
msContentZoomLimit style attribute. |
String |
getMsContentZoomLimitMax()
Returns the
msContentZoomLimitMax style attribute. |
String |
getMsContentZoomLimitMin()
Returns the
msContentZoomLimitMin style attribute. |
String |
getMsContentZoomSnap()
Returns the
msContentZoomSnap style attribute. |
String |
getMsContentZoomSnapPoints()
Returns the
msContentZoomSnapPoints style attribute. |
String |
getMsContentZoomSnapType()
Returns the
msContentZoomSnapType style attribute. |
String |
getMsFlex()
Returns the
msFlex style attribute. |
String |
getMsFlexAlign()
Returns the
msFlexAlign style attribute. |
String |
getMsFlexDirection()
Returns the
msFlexDirection style attribute. |
String |
getMsFlexFlow()
Returns the
msFlexFlow style attribute. |
String |
getMsFlexItemAlign()
Returns the
msFlexItemAlign style attribute. |
String |
getMsFlexLinePack()
Returns the
msFlexLinePack style attribute. |
String |
getMsFlexNegative()
Returns the
msFlexNegative style attribute. |
String |
getMsFlexOrder()
Returns the
msFlexOrder style attribute. |
String |
getMsFlexPack()
Returns the
msFlexPack style attribute. |
String |
getMsFlexPositive()
Returns the
msFlexPositive style attribute. |
String |
getMsFlexPreferredSize()
Returns the
msFlexPreferredSize style attribute. |
String |
getMsFlexWrap()
Returns the
msFlexWrap style attribute. |
String |
getMsFlowFrom()
Returns the
msFlowFrom style attribute. |
String |
getMsFlowInto()
Returns the
msFlowInto style attribute. |
String |
getMsFontFeatureSettings()
Returns the
msFontFeatureSettings style attribute. |
String |
getMsGridColumn()
Returns the
msGridColumn style attribute. |
String |
getMsGridColumnAlign()
Returns the
msGridColumnAlign style attribute. |
String |
getMsGridColumns()
Returns the
msGridColumns style attribute. |
String |
getMsGridColumnSpan()
Returns the
msGridColumnSpan style attribute. |
String |
getMsGridRow()
Returns the
msGridRow style attribute. |
String |
getMsGridRowAlign()
Returns the
msGridRowAlign style attribute. |
String |
getMsGridRows()
Returns the
msGridRows style attribute. |
String |
getMsGridRowSpan()
Returns the
msGridRowSpan style attribute. |
String |
getMsHighContrastAdjust()
Returns the
msHighContrastAdjust style attribute. |
String |
getMsHyphenateLimitChars()
Returns the
msHyphenateLimitChars style attribute. |
String |
getMsHyphenateLimitLines()
Returns the
msHyphenateLimitLines style attribute. |
String |
getMsHyphenateLimitZone()
Returns the
msHyphenateLimitZone style attribute. |
String |
getMsHyphens()
Returns the
msHyphens style attribute. |
String |
getMsImeAlign()
Returns the
msImeAlign style attribute. |
String |
getMsInterpolationMode()
Gets the
msInterpolationMode style attribute. |
String |
getMsOverflowStyle()
Returns the
msOverflowStyle style attribute. |
String |
getMsPerspective()
Returns the
msPerspective style attribute. |
String |
getMsPerspectiveOrigin()
Returns the
msPerspectiveOrigin style attribute. |
String |
getMsScrollChaining()
Returns the
msScrollChaining style attribute. |
String |
getMsScrollLimit()
Returns the
msScrollLimit style attribute. |
String |
getMsScrollLimitXMax()
Returns the
msScrollLimitXMax style attribute. |
String |
getMsScrollLimitXMin()
Returns the
msScrollLimitXMin style attribute. |
String |
getMsScrollLimitYMax()
Returns the
msScrollLimitYMax style attribute. |
String |
getMsScrollLimitYMin()
Returns the
msScrollLimitYMin style attribute. |
String |
getMsScrollRails()
Returns the
msScrollRails style attribute. |
String |
getMsScrollSnapPointsX()
Returns the
msScrollSnapPointsX style attribute. |
String |
getMsScrollSnapPointsY()
Returns the
msScrollSnapPointsY style attribute. |
String |
getMsScrollSnapType()
Returns the
msScrollSnapType style attribute. |
String |
getMsScrollSnapX()
Returns the
msScrollSnapX style attribute. |
String |
getMsScrollSnapY()
Returns the
msScrollSnapY style attribute. |
String |
getMsScrollTranslation()
Returns the
msScrollTranslation style attribute. |
String |
getMsTextCombineHorizontal()
Returns the
msTextCombineHorizontal style attribute. |
String |
getMsTouchAction()
Returns the
msTouchAction style attribute. |
String |
getMsTouchSelect()
Returns the
msTouchSelect style attribute. |
String |
getMsTransform()
Returns the
msTransform style attribute. |
String |
getMsTransformOrigin()
Returns the
msTransformOrigin style attribute. |
String |
getMsTransformStyle()
Returns the
msTransformStyle style attribute. |
String |
getMsTransition()
Returns the
msTransition style attribute. |
String |
getMsTransitionDelay()
Returns the
msTransitionDelay style attribute. |
String |
getMsTransitionDuration()
Returns the
msTransitionDuration style attribute. |
String |
getMsTransitionProperty()
Returns the
msTransitionProperty style attribute. |
String |
getMsTransitionTimingFunction()
Returns the
msTransitionTimingFunction style attribute. |
String |
getMsUserSelect()
Returns the
msUserSelect style attribute. |
String |
getMsWrapFlow()
Returns the
msWrapFlow style attribute. |
String |
getMsWrapMargin()
Returns the
msWrapMargin style attribute. |
String |
getMsWrapThrough()
Returns the
msWrapThrough style attribute. |
String |
getOpacity()
Gets the
opacity style attribute. |
String |
getOrphans()
Gets the
orphans style attribute. |
String |
getOutlineColor()
Gets the
outlineColor style attribute. |
String |
getOutlineOffset()
Gets the
outlineOffset style attribute. |
String |
getOutlineStyle()
Gets the
outlineStyle style attribute. |
String |
getOutlineWidth()
Gets the
outlineWidth style attribute. |
String |
getOverflow()
Gets the
overflow style attribute. |
String |
getOverflowX()
Gets the
overflowX style attribute. |
String |
getOverflowY()
Gets the
overflowY style attribute. |
String |
getPadding()
Gets the
padding style attribute. |
String |
getPaddingBottom()
Gets the
paddingBottom style attribute. |
int |
getPaddingBottomValue()
Gets the bottom padding of the element.
|
String |
getPaddingLeft()
Gets the
paddingLeft style attribute. |
int |
getPaddingLeftValue()
Gets the left padding of the element.
|
String |
getPaddingRight()
Gets the
paddingRight style attribute. |
int |
getPaddingRightValue()
Gets the right padding of the element.
|
String |
getPaddingTop()
Gets the
paddingTop style attribute. |
int |
getPaddingTopValue()
Gets the top padding of the element.
|
String |
getPageBreakAfter()
Gets the
pageBreakAfter style attribute. |
String |
getPageBreakBefore()
Gets the
pageBreakBefore style attribute. |
String |
getPageBreakInside()
Gets the
pageBreakInside style attribute. |
String |
getPointerEvents()
Gets the
pointerEvents style attribute. |
String |
getPosition()
Gets the
position style attribute. |
String |
getPositionWithInheritance()
Returns the CSS
position attribute, replacing inherited values with the actual parent values. |
String |
getPropertyValue(String name)
Gets the value of the specified property of the style.
|
String |
getRight()
Gets the
right style attribute. |
String |
getRightWithInheritance()
Returns the CSS
right attribute, replacing inherited values with the actual parent values. |
String |
getRubyOverhang()
Gets the
rubyOverhang style attribute. |
String |
getRubyPosition()
Gets the
rubyPosition style attribute. |
String |
getScrollbar3dLightColor()
Gets the
scrollbar3dLightColor style attribute. |
String |
getScrollbarArrowColor()
Gets the
scrollbarArrowColor style attribute. |
String |
getScrollbarBaseColor()
Gets the
scrollbarBaseColor style attribute. |
String |
getScrollbarDarkShadowColor()
Gets the
scrollbarDarkShadowColor style attribute. |
String |
getScrollbarFaceColor()
Gets the
scrollbarFaceColor style attribute. |
String |
getScrollbarHighlightColor()
Gets the
scrollbarHighlightColor style attribute. |
String |
getScrollbarShadowColor()
Gets the
scrollbarShadowColor style attribute. |
String |
getScrollbarTrackColor()
Gets the
scrollbarTrackColor style attribute. |
protected String |
getStyleAttribute(String name)
Returns the value of the named style attribute, or an empty string if it is not found.
|
protected String |
getStyleAttributeValue(StyleAttributes.Definition style)
Get the value for the style attribute.
|
protected CSSStyleDeclaration.StyleElement |
getStyleElement(String name)
Determines the StyleElement for the given name.
|
String |
getStyleFloat()
Gets the
styleFloat style attribute. |
String |
getTableLayout()
Gets the
tableLayout style attribute. |
String |
getTextAlign()
Gets the
textAlign style attribute. |
String |
getTextAlignLast()
Gets the
textAlignLast style attribute. |
String |
getTextAutospace()
Gets the
textAutospace style attribute. |
String |
getTextDecoration()
Gets the
textDecoration style attribute. |
String |
getTextIndent()
Gets the
textIndent style attribute. |
String |
getTextJustify()
Gets the
textJustify style attribute. |
String |
getTextJustifyTrim()
Gets the
textJustifyTrim style attribute. |
String |
getTextKashida()
Gets the
textKashida style attribute. |
String |
getTextKashidaSpace()
Gets the
textKashidaSpace style attribute. |
String |
getTextOverflow()
Gets the
textOverflow style attribute. |
String |
getTextShadow()
Gets the
textShadow style attribute. |
String |
getTextTransform()
Gets the
textTransform style attribute. |
String |
getTextUnderlinePosition()
Gets the
textUnderlinePosition style attribute. |
String |
getTop()
Gets the
top style attribute. |
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. |
String |
getVerticalAlign()
Gets the
verticalAlign style attribute. |
String |
getVisibility()
Gets the
visibility style attribute. |
String |
getWhiteSpace()
Gets the
whiteSpace style attribute. |
String |
getWidows()
Gets the
widows style attribute. |
String |
getWidth()
Gets the
width style attribute. |
String |
getWordSpacing()
Gets the
wordSpacing style attribute. |
String |
getWordWrap()
Gets the
wordWrap style attribute. |
String |
getWritingMode()
Gets the
writingMode style attribute. |
Object |
getZIndex()
Gets the
zIndex style attribute. |
String |
getZoom()
Gets the
zoom style attribute. |
boolean |
isScrollable(boolean horizontal)
Returns
true if the element is scrollable along the specified axis. |
protected String |
pixelString(Element 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, get, get, getAttribute, getBehavior, getCssText, getCurrentElementIndex, getElement, getIds, getLength, getMarks, getOutline, getPage, getPixelBottom, getPixelHeight, getPixelLeft, getPixelRight, getPixelTop, getPixelWidth, getPosBottom, getPosHeight, getPosLeft, getPosRight, getPosTop, getPosWidth, getPropertyCSSValue, getPropertyPriority, getRubyAlign, getSize, getStylePriority, getTextDecorationBlink, getTextDecorationLineThrough, getTextDecorationNone, getTextDecorationOverline, getTextDecorationUnderline, getWithFallback, has, pixelValue, pixelValue, put, removeAttribute, removeExpression, removeProperty, setAccelerator, setAttribute, setBackground, setBackgroundAttachment, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundPositionX, setBackgroundPositionY, setBackgroundRepeat, setBehavior, setBorder, setBorderBottom, setBorderBottomColor, setBorderBottomStyle, setBorderBottomWidth, setBorderCollapse, setBorderColor, setBorderLeft, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRight, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderSpacing, setBorderStyle, setBorderTop, setBorderTopColor, setBorderTopStyle, setBorderTopWidth, setBorderWidth, setBottom, setBoxSizing, setCaptionSide, setClear, setClip, setColor, setContent, setCounterIncrement, setCounterReset, setCssFloat, setCssText, setCursor, setDirection, setDisplay, setEmptyCells, setExpression, setFont, setFontFamily, setFontSize, setFontSizeAdjust, setFontStretch, setFontStyle, setFontVariant, setFontWeight, setHeight, setImeMode, setLayoutFlow, setLayoutGrid, setLayoutGridChar, setLayoutGridLine, setLayoutGridMode, setLayoutGridType, setLeft, setLetterSpacing, setLineBreak, setListStyle, setListStyleImage, setListStylePosition, setListStyleType, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMarkerOffset, setMarks, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setMsBlockProgression, setMsContentZoomChaining, setMsContentZooming, setMsContentZoomLimit, setMsContentZoomLimitMax, setMsContentZoomLimitMin, setMsContentZoomSnap, setMsContentZoomSnapPoints, setMsContentZoomSnapType, setMsFlex, setMsFlexAlign, setMsFlexDirection, setMsFlexFlow, setMsFlexItemAlign, setMsFlexLinePack, setMsFlexNegative, setMsFlexOrder, setMsFlexPack, setMsFlexPositive, setMsFlexPreferredSize, setMsFlexWrap, setMsFlowFrom, setMsFlowInto, setMsFontFeatureSettings, setMsGridColumn, setMsGridColumnAlign, setMsGridColumns, setMsGridColumnSpan, setMsGridRow, setMsGridRowAlign, setMsGridRows, setMsGridRowSpan, setMsHighContrastAdjust, setMsHyphenateLimitChars, setMsHyphenateLimitLines, setMsHyphenateLimitZone, setMsHyphens, setMsImeAlign, setMsInterpolationMode, setMsOverflowStyle, setMsPerspective, setMsPerspectiveOrigin, setMsScrollChaining, setMsScrollLimit, setMsScrollLimitXMax, setMsScrollLimitXMin, setMsScrollLimitYMax, setMsScrollLimitYMin, setMsScrollRails, setMsScrollSnapPointsX, setMsScrollSnapPointsY, setMsScrollSnapType, setMsScrollSnapX, setMsScrollSnapY, setMsScrollTranslation, setMsTextCombineHorizontal, setMsTouchAction, setMsTouchSelect, setMsTransform, setMsTransformOrigin, setMsTransformStyle, setMsTransition, setMsTransitionDelay, setMsTransitionDuration, setMsTransitionProperty, setMsTransitionTimingFunction, setMsUserSelect, setMsWrapFlow, setMsWrapMargin, setMsWrapThrough, setOpacity, setOrphans, setOutline, setOutlineColor, setOutlineOffset, setOutlineStyle, setOutlineWidth, setOverflow, setOverflowX, setOverflowY, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPage, setPageBreakAfter, setPageBreakBefore, setPageBreakInside, setPixelBottom, setPixelHeight, setPixelLeft, setPixelRight, setPixelTop, setPixelWidth, setPointerEvents, setPosBottom, setPosHeight, setPosition, setPosLeft, setPosRight, setPosTop, setPosWidth, setProperty, setRight, setRubyAlign, setRubyOverhang, setRubyPosition, setScrollbar3dLightColor, setScrollbarArrowColor, setScrollbarBaseColor, setScrollbarDarkShadowColor, setScrollbarFaceColor, setScrollbarHighlightColor, setScrollbarShadowColor, setScrollbarTrackColor, setSize, setStyleAttribute, setStyleAttributePixel, setStyleFloat, setTableLayout, setTextAlign, setTextAlignLast, setTextAutospace, setTextDecoration, setTextDecorationBlink, setTextDecorationLineThrough, setTextDecorationNone, setTextDecorationOverline, setTextDecorationUnderline, setTextIndent, setTextJustify, setTextJustifyTrim, setTextKashida, setTextKashidaSpace, setTextOverflow, setTextShadow, setTextTransform, setTextUnderlinePosition, setTop, setVerticalAlign, setVisibility, setWhiteSpace, setWidows, setWidth, setWordSpacing, setWordWrap, setWritingMode, setZIndex, setZoom, toRGBColor, toString
clone, equivalentValues, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, setClassName, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public ComputedCSSStyleDeclaration()
public ComputedCSSStyleDeclaration(CSSStyleDeclaration style)
style
- the original Styleprotected String getStyleAttribute(String name)
getStyleAttribute
in class CSSStyleDeclaration
name
- the name of the style attribute whose value is to be retrievedprotected void setStyleAttribute(String name, String newValue)
setStyleAttribute
in class CSSStyleDeclaration
name
- 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 CSSStyleDeclaration.StyleElement getStyleElement(String name)
CSSStyleDeclaration
getStyleElement
in class CSSStyleDeclaration
name
- the name of the requested StyleElementpublic String getAccelerator()
accelerator
style attribute.getAccelerator
in class CSSStyleDeclaration
public String getBackground()
background
style attribute.getBackground
in class CSSStyleDeclaration
public 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 getBackgroundPositionX()
backgroundPositionX
style attribute.getBackgroundPositionX
in class CSSStyleDeclaration
public String getBackgroundPositionY()
backgroundPositionY
style attribute.getBackgroundPositionY
in class CSSStyleDeclaration
public String getBackgroundRepeat()
backgroundRepeat
style attribute.getBackgroundRepeat
in class CSSStyleDeclaration
public String getBorder()
border
style attribute.getBorder
in class CSSStyleDeclaration
public String getBorderBottom()
borderBottom
style attribute.getBorderBottom
in class CSSStyleDeclaration
public String getBorderColor()
borderColor
style attribute.getBorderColor
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 getBorderCollapse()
borderCollapse
style attribute.getBorderCollapse
in class CSSStyleDeclaration
public String getBorderLeft()
borderLeft
style attribute.getBorderLeft
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 getBorderRight()
borderRight
style attribute.getBorderRight
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 getBorderSpacing()
borderSpacing
style attribute.getBorderSpacing
in class CSSStyleDeclaration
public String getBorderStyle()
borderStyle
style attribute.getBorderStyle
in class CSSStyleDeclaration
public String getBorderTop()
borderTop
style attribute.getBorderTop
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 getBorderWidth()
borderWidth
style attribute.getBorderWidth
in class CSSStyleDeclaration
public String getBottom()
bottom
style attribute.getBottom
in class CSSStyleDeclaration
public String getBoxSizing()
boxSizing
style attribute.getBoxSizing
in class CSSStyleDeclaration
public String getCaptionSide()
captionSide
style attribute.getCaptionSide
in class CSSStyleDeclaration
public String getClear()
clear
style attribute.getClear
in class CSSStyleDeclaration
public String getClip()
clip
style attribute.getClip
in class CSSStyleDeclaration
public String getContent()
content
style attribute.getContent
in class CSSStyleDeclaration
public String getColor()
color
style attribute.getColor
in class CSSStyleDeclaration
public String getCounterIncrement()
counterIncrement
style attribute.getCounterIncrement
in class CSSStyleDeclaration
public String getCounterReset()
counterReset
style attribute.getCounterReset
in class CSSStyleDeclaration
public String getCssFloat()
cssFloat
style attribute.getCssFloat
in class CSSStyleDeclaration
public String getCursor()
cursor
style attribute.getCursor
in class CSSStyleDeclaration
public String getDirection()
direction
style attribute.getDirection
in class CSSStyleDeclaration
public String getDisplay()
display
style attribute.getDisplay
in class CSSStyleDeclaration
public String getEmptyCells()
emptyCells
style attribute.getEmptyCells
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 getFontSizeAdjust()
fontSizeAdjust
style attribute.getFontSizeAdjust
in class CSSStyleDeclaration
public String getFontStretch()
fontStretch
style attribute.getFontStretch
in class CSSStyleDeclaration
public String getFontStyle()
fontStyle
style attribute.getFontStyle
in class CSSStyleDeclaration
public String getFontVariant()
fontVariant
style attribute.getFontVariant
in class CSSStyleDeclaration
public String getFontWeight()
fontWeight
style attribute.getFontWeight
in class CSSStyleDeclaration
public String getHeight()
height
style attribute.getHeight
in class CSSStyleDeclaration
public String getImeMode()
imeMode
style attribute.getImeMode
in class CSSStyleDeclaration
public String getLayoutFlow()
layoutFlow
style attribute.getLayoutFlow
in class CSSStyleDeclaration
public String getLayoutGrid()
layoutGrid
style attribute.getLayoutGrid
in class CSSStyleDeclaration
public String getLayoutGridChar()
layoutGridChar
style attribute.getLayoutGridChar
in class CSSStyleDeclaration
public String getLayoutGridLine()
layoutGridLine
style attribute.getLayoutGridLine
in class CSSStyleDeclaration
public String getLayoutGridMode()
layoutGridMode
style attribute.getLayoutGridMode
in class CSSStyleDeclaration
public String getLayoutGridType()
layoutGridType
style attribute.getLayoutGridType
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 getLineBreak()
lineBreak
style attribute.getLineBreak
in class CSSStyleDeclaration
public String getListStyle()
listStyle
style attribute.getListStyle
in class CSSStyleDeclaration
public String getListStyleImage()
listStyleImage
style attribute.getListStyleImage
in class CSSStyleDeclaration
public String getListStylePosition()
listStylePosition
style attribute.getListStylePosition
in class CSSStyleDeclaration
public String getListStyleType()
listStyleType
style attribute.getListStyleType
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 getMarkerOffset()
markerOffset
style attribute.getMarkerOffset
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 getMsBlockProgression()
msBlockProgression
style attribute.getMsBlockProgression
in class CSSStyleDeclaration
public String getMsContentZoomChaining()
msContentZoomChaining
style attribute.getMsContentZoomChaining
in class CSSStyleDeclaration
public String getMsContentZoomLimit()
msContentZoomLimit
style attribute.getMsContentZoomLimit
in class CSSStyleDeclaration
public String getMsContentZoomLimitMax()
msContentZoomLimitMax
style attribute.getMsContentZoomLimitMax
in class CSSStyleDeclaration
public String getMsContentZoomLimitMin()
msContentZoomLimitMin
style attribute.getMsContentZoomLimitMin
in class CSSStyleDeclaration
public String getMsContentZoomSnap()
msContentZoomSnap
style attribute.getMsContentZoomSnap
in class CSSStyleDeclaration
public String getMsContentZoomSnapPoints()
msContentZoomSnapPoints
style attribute.getMsContentZoomSnapPoints
in class CSSStyleDeclaration
public String getMsContentZoomSnapType()
msContentZoomSnapType
style attribute.getMsContentZoomSnapType
in class CSSStyleDeclaration
public String getMsContentZooming()
msContentZooming
style attribute.getMsContentZooming
in class CSSStyleDeclaration
public String getMsFlex()
msFlex
style attribute.getMsFlex
in class CSSStyleDeclaration
public String getMsFlexAlign()
msFlexAlign
style attribute.getMsFlexAlign
in class CSSStyleDeclaration
public String getMsFlexDirection()
msFlexDirection
style attribute.getMsFlexDirection
in class CSSStyleDeclaration
public String getMsFlexFlow()
msFlexFlow
style attribute.getMsFlexFlow
in class CSSStyleDeclaration
public String getMsFlexItemAlign()
msFlexItemAlign
style attribute.getMsFlexItemAlign
in class CSSStyleDeclaration
public String getMsFlexLinePack()
msFlexLinePack
style attribute.getMsFlexLinePack
in class CSSStyleDeclaration
public String getMsFlexNegative()
msFlexNegative
style attribute.getMsFlexNegative
in class CSSStyleDeclaration
public String getMsFlexOrder()
msFlexOrder
style attribute.getMsFlexOrder
in class CSSStyleDeclaration
public String getMsFlexPack()
msFlexPack
style attribute.getMsFlexPack
in class CSSStyleDeclaration
public String getMsFlexPositive()
msFlexPositive
style attribute.getMsFlexPositive
in class CSSStyleDeclaration
public String getMsFlexPreferredSize()
msFlexPreferredSize
style attribute.getMsFlexPreferredSize
in class CSSStyleDeclaration
public String getMsFlexWrap()
msFlexWrap
style attribute.getMsFlexWrap
in class CSSStyleDeclaration
public String getMsFlowFrom()
msFlowFrom
style attribute.getMsFlowFrom
in class CSSStyleDeclaration
public String getMsFlowInto()
msFlowInto
style attribute.getMsFlowInto
in class CSSStyleDeclaration
public String getMsFontFeatureSettings()
msFontFeatureSettings
style attribute.getMsFontFeatureSettings
in class CSSStyleDeclaration
public String getMsGridColumn()
msGridColumn
style attribute.getMsGridColumn
in class CSSStyleDeclaration
public String getMsGridColumnAlign()
msGridColumnAlign
style attribute.getMsGridColumnAlign
in class CSSStyleDeclaration
public String getMsGridColumnSpan()
msGridColumnSpan
style attribute.getMsGridColumnSpan
in class CSSStyleDeclaration
public String getMsGridColumns()
msGridColumns
style attribute.getMsGridColumns
in class CSSStyleDeclaration
public String getMsGridRow()
msGridRow
style attribute.getMsGridRow
in class CSSStyleDeclaration
public String getMsGridRowAlign()
msGridRowAlign
style attribute.getMsGridRowAlign
in class CSSStyleDeclaration
public String getMsGridRowSpan()
msGridRowSpan
style attribute.getMsGridRowSpan
in class CSSStyleDeclaration
public String getMsGridRows()
msGridRows
style attribute.getMsGridRows
in class CSSStyleDeclaration
public String getMsHighContrastAdjust()
msHighContrastAdjust
style attribute.getMsHighContrastAdjust
in class CSSStyleDeclaration
public String getMsHyphenateLimitChars()
msHyphenateLimitChars
style attribute.getMsHyphenateLimitChars
in class CSSStyleDeclaration
public String getMsHyphenateLimitLines()
msHyphenateLimitLines
style attribute.getMsHyphenateLimitLines
in class CSSStyleDeclaration
public String getMsHyphenateLimitZone()
msHyphenateLimitZone
style attribute.getMsHyphenateLimitZone
in class CSSStyleDeclaration
public String getMsHyphens()
msHyphens
style attribute.getMsHyphens
in class CSSStyleDeclaration
public String getMsImeAlign()
msImeAlign
style attribute.getMsImeAlign
in class CSSStyleDeclaration
public String getMsInterpolationMode()
msInterpolationMode
style attribute.getMsInterpolationMode
in class CSSStyleDeclaration
public String getMsOverflowStyle()
msOverflowStyle
style attribute.getMsOverflowStyle
in class CSSStyleDeclaration
public String getMsPerspective()
msPerspective
style attribute.getMsPerspective
in class CSSStyleDeclaration
public String getMsPerspectiveOrigin()
msPerspectiveOrigin
style attribute.getMsPerspectiveOrigin
in class CSSStyleDeclaration
public String getMsScrollChaining()
msScrollChaining
style attribute.getMsScrollChaining
in class CSSStyleDeclaration
public String getMsScrollLimit()
msScrollLimit
style attribute.getMsScrollLimit
in class CSSStyleDeclaration
public String getMsScrollLimitXMax()
msScrollLimitXMax
style attribute.getMsScrollLimitXMax
in class CSSStyleDeclaration
public String getMsScrollLimitXMin()
msScrollLimitXMin
style attribute.getMsScrollLimitXMin
in class CSSStyleDeclaration
public String getMsScrollLimitYMax()
msScrollLimitYMax
style attribute.getMsScrollLimitYMax
in class CSSStyleDeclaration
public String getMsScrollLimitYMin()
msScrollLimitYMin
style attribute.getMsScrollLimitYMin
in class CSSStyleDeclaration
public String getMsScrollRails()
msScrollRails
style attribute.getMsScrollRails
in class CSSStyleDeclaration
public String getMsScrollSnapPointsX()
msScrollSnapPointsX
style attribute.getMsScrollSnapPointsX
in class CSSStyleDeclaration
public String getMsScrollSnapPointsY()
msScrollSnapPointsY
style attribute.getMsScrollSnapPointsY
in class CSSStyleDeclaration
public String getMsScrollSnapType()
msScrollSnapType
style attribute.getMsScrollSnapType
in class CSSStyleDeclaration
public String getMsScrollSnapX()
msScrollSnapX
style attribute.getMsScrollSnapX
in class CSSStyleDeclaration
public String getMsScrollSnapY()
msScrollSnapY
style attribute.getMsScrollSnapY
in class CSSStyleDeclaration
public String getMsScrollTranslation()
msScrollTranslation
style attribute.getMsScrollTranslation
in class CSSStyleDeclaration
public String getMsTextCombineHorizontal()
msTextCombineHorizontal
style attribute.getMsTextCombineHorizontal
in class CSSStyleDeclaration
public String getMsTouchAction()
msTouchAction
style attribute.getMsTouchAction
in class CSSStyleDeclaration
public String getMsTouchSelect()
msTouchSelect
style attribute.getMsTouchSelect
in class CSSStyleDeclaration
public String getMsTransform()
msTransform
style attribute.getMsTransform
in class CSSStyleDeclaration
public String getMsTransformOrigin()
msTransformOrigin
style attribute.getMsTransformOrigin
in class CSSStyleDeclaration
public String getMsTransformStyle()
msTransformStyle
style attribute.getMsTransformStyle
in class CSSStyleDeclaration
public String getMsTransition()
msTransition
style attribute.getMsTransition
in class CSSStyleDeclaration
public String getMsTransitionDelay()
msTransitionDelay
style attribute.getMsTransitionDelay
in class CSSStyleDeclaration
public String getMsTransitionDuration()
msTransitionDuration
style attribute.getMsTransitionDuration
in class CSSStyleDeclaration
public String getMsTransitionProperty()
msTransitionProperty
style attribute.getMsTransitionProperty
in class CSSStyleDeclaration
public String getMsTransitionTimingFunction()
msTransitionTimingFunction
style attribute.getMsTransitionTimingFunction
in class CSSStyleDeclaration
public String getMsUserSelect()
msUserSelect
style attribute.getMsUserSelect
in class CSSStyleDeclaration
public String getMsWrapFlow()
msWrapFlow
style attribute.getMsWrapFlow
in class CSSStyleDeclaration
public String getMsWrapMargin()
msWrapMargin
style attribute.getMsWrapMargin
in class CSSStyleDeclaration
public String getMsWrapThrough()
msWrapThrough
style attribute.getMsWrapThrough
in class CSSStyleDeclaration
public String getOpacity()
opacity
style attribute.getOpacity
in class CSSStyleDeclaration
public String getOrphans()
orphans
style attribute.getOrphans
in class CSSStyleDeclaration
public String getOutlineColor()
outlineColor
style attribute.getOutlineColor
in class CSSStyleDeclaration
public String getOutlineOffset()
outlineOffset
style attribute.getOutlineOffset
in class CSSStyleDeclaration
public String getOutlineStyle()
outlineStyle
style attribute.getOutlineStyle
in class CSSStyleDeclaration
public String getOutlineWidth()
outlineWidth
style attribute.getOutlineWidth
in class CSSStyleDeclaration
public String getOverflow()
overflow
style attribute.getOverflow
in class CSSStyleDeclaration
public String getOverflowX()
overflowX
style attribute.getOverflowX
in class CSSStyleDeclaration
public String getOverflowY()
overflowY
style attribute.getOverflowY
in class CSSStyleDeclaration
public String getPageBreakAfter()
pageBreakAfter
style attribute.getPageBreakAfter
in class CSSStyleDeclaration
public String getPageBreakBefore()
pageBreakBefore
style attribute.getPageBreakBefore
in class CSSStyleDeclaration
public String getPageBreakInside()
pageBreakInside
style attribute.getPageBreakInside
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 getPointerEvents()
pointerEvents
style attribute.getPointerEvents
in class CSSStyleDeclaration
public String getPosition()
position
style attribute.getPosition
in class CSSStyleDeclaration
public String getRight()
right
style attribute.getRight
in class CSSStyleDeclaration
public String getScrollbar3dLightColor()
scrollbar3dLightColor
style attribute.getScrollbar3dLightColor
in class CSSStyleDeclaration
public String getScrollbarArrowColor()
scrollbarArrowColor
style attribute.getScrollbarArrowColor
in class CSSStyleDeclaration
public String getScrollbarBaseColor()
scrollbarBaseColor
style attribute.getScrollbarBaseColor
in class CSSStyleDeclaration
public String getScrollbarDarkShadowColor()
scrollbarDarkShadowColor
style attribute.getScrollbarDarkShadowColor
in class CSSStyleDeclaration
public String getScrollbarFaceColor()
scrollbarFaceColor
style attribute.getScrollbarFaceColor
in class CSSStyleDeclaration
public String getScrollbarHighlightColor()
scrollbarHighlightColor
style attribute.getScrollbarHighlightColor
in class CSSStyleDeclaration
public String getScrollbarShadowColor()
scrollbarShadowColor
style attribute.getScrollbarShadowColor
in class CSSStyleDeclaration
public String getScrollbarTrackColor()
scrollbarTrackColor
style attribute.getScrollbarTrackColor
in class CSSStyleDeclaration
public String getStyleFloat()
styleFloat
style attribute.getStyleFloat
in class CSSStyleDeclaration
public String getTableLayout()
tableLayout
style attribute.getTableLayout
in class CSSStyleDeclaration
public String getTextAlign()
textAlign
style attribute.getTextAlign
in class CSSStyleDeclaration
public String getTextAlignLast()
textAlignLast
style attribute.getTextAlignLast
in class CSSStyleDeclaration
public String getTextAutospace()
textAutospace
style attribute.getTextAutospace
in class CSSStyleDeclaration
public String getTextDecoration()
textDecoration
style attribute.getTextDecoration
in class CSSStyleDeclaration
public String getTextIndent()
textIndent
style attribute.getTextIndent
in class CSSStyleDeclaration
public String getTextJustify()
textJustify
style attribute.getTextJustify
in class CSSStyleDeclaration
public String getTextJustifyTrim()
textJustifyTrim
style attribute.getTextJustifyTrim
in class CSSStyleDeclaration
public String getTextKashida()
textKashida
style attribute.getTextKashida
in class CSSStyleDeclaration
public String getTextKashidaSpace()
textKashidaSpace
style attribute.getTextKashidaSpace
in class CSSStyleDeclaration
public String getTextOverflow()
textOverflow
style attribute.getTextOverflow
in class CSSStyleDeclaration
public String getTextShadow()
textShadow
style attribute.getTextShadow
in class CSSStyleDeclaration
public String getTextTransform()
textTransform
style attribute.getTextTransform
in class CSSStyleDeclaration
public String getTextUnderlinePosition()
textUnderlinePosition
style attribute.getTextUnderlinePosition
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 getVisibility()
visibility
style attribute.getVisibility
in class CSSStyleDeclaration
public String getWhiteSpace()
whiteSpace
style attribute.getWhiteSpace
in class CSSStyleDeclaration
public String getWidows()
widows
style attribute.getWidows
in class CSSStyleDeclaration
public String getWritingMode()
writingMode
style attribute.getWritingMode
in class CSSStyleDeclaration
public String getWidth()
width
style attribute.getWidth
in class CSSStyleDeclaration
public 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)
true
if the element is scrollable along the specified axis.horizontal
- if true
, the caller is interested in scrollability along the x-axis;
if false
, the caller is interested in scrollability along the y-axistrue
if the element is scrollable along the specified 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()
position
attribute, replacing inherited values with the actual parent values.position
attribute, replacing inherited values with the actual parent valuespublic String getLeftWithInheritance()
left
attribute, replacing inherited values with the actual parent values.left
attribute, replacing inherited values with the actual parent valuespublic String getRightWithInheritance()
right
attribute, replacing inherited values with the actual parent values.right
attribute, replacing inherited values with the actual parent valuespublic String getTopWithInheritance()
top
attribute, replacing inherited values with the actual parent values.top
attribute, replacing inherited values with the actual parent valuespublic String getBottomWithInheritance()
bottom
attribute, replacing inherited values with the actual parent values.bottom
attribute, replacing inherited values with the actual parent valuespublic String getRubyOverhang()
rubyOverhang
style attribute.getRubyOverhang
in class CSSStyleDeclaration
public String getRubyPosition()
rubyPosition
style attribute.getRubyPosition
in class CSSStyleDeclaration
public int getMarginLeftValue()
public int getMarginRightValue()
public int getMarginTopValue()
public int getMarginBottomValue()
public int getPaddingLeftValue()
public int getPaddingRightValue()
public int getPaddingTopValue()
public int getPaddingBottomValue()
public int getBorderLeftValue()
public int getBorderRightValue()
public int getBorderTopValue()
public int getBorderBottomValue()
public String getWordSpacing()
wordSpacing
style attribute.getWordSpacing
in class CSSStyleDeclaration
public String getWordWrap()
wordWrap
style attribute.getWordWrap
in class CSSStyleDeclaration
protected String getStyleAttributeValue(StyleAttributes.Definition style)
getStyleAttributeValue
in class CSSStyleDeclaration
style
- the stylepublic Object getZIndex()
zIndex
style attribute.getZIndex
in class CSSStyleDeclaration
public String getZoom()
zoom
style attribute.getZoom
in class CSSStyleDeclaration
public String getPropertyValue(String name)
getPropertyValue
in class CSSStyleDeclaration
name
- the style property nameprotected String pixelString(String value)
CSSStyleDeclaration.pixelValue(Element, CssValue)
if you need percentage support).value
- the length value to convert to a pixel length valuepixelString(Element, CSSStyleDeclaration.CssValue)
protected String pixelString(Element 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–2017 Gargoyle Software Inc.. All rights reserved.