|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleDeclaration
public class CSSStyleDeclaration
A JavaScript object for a CSSStyleDeclaration.
| Nested Class Summary | |
|---|---|
protected static class |
CSSStyleDeclaration.CssValue
Encapsulates the retrieval of a style attribute, given a DOM element from which to retrieve it. |
static class |
CSSStyleDeclaration.StyleElement
Contains information about a single style element, including its name, its value, and an index which can be compared against other indices in order to determine precedence. |
| Field Summary | |
|---|---|
protected static String |
PRIORITY_IMPORTANT
Css important property constant. |
protected static String |
WIDTH
The width style attribute. |
| Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
CSSStyleDeclaration()
Creates an instance. |
|
CSSStyleDeclaration(Element element)
Creates an instance and sets its parent scope to the one of the provided element. |
|
| Method Summary | |
|---|---|
protected static String |
camelize(String string)
Transforms the specified string from delimiter-separated (e.g. |
Object |
get(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
Gets a named property from the object. |
String |
getAccelerator()
Gets the "accelerator" style attribute. |
Object |
getAttribute(String name,
int flag)
Returns the value of the specified attribute, or an empty string if it does not exist. |
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 |
getBehavior()
Gets the object's behavior (IE only). |
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. |
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. |
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. |
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. |
String |
getBorderTopWidth()
Gets the "borderTopWidth" style attribute. |
String |
getBorderWidth()
Gets the "borderWidth" style attribute. |
String |
getBottom()
Gets the "bottom" style attribute. |
String |
getBoxSizing()
Gets the "boxSizing" style attribute. |
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. |
String |
getCounterIncrement()
Gets the "counterIncrement" style attribute. |
String |
getCounterReset()
Gets the "counterReset" style attribute. |
String |
getCssFloat()
Gets the "cssFloat" style attribute. |
String |
getCssText()
Returns the actual text of the style. |
protected long |
getCurrentElementIndex()
Returns the current style element index. |
String |
getCursor()
Gets the "cursor" style attribute. |
String |
getDirection()
Gets the "direction" style attribute. |
String |
getDisplay()
Gets the "display" style attribute. |
protected Element |
getElement()
Returns the element to which this style belongs. |
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. |
Object[] |
getIds()
|
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 |
getLength()
Gets the "length", not yet implemented. |
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. |
String |
getMarginLeft()
Gets the "marginLeft" style attribute. |
String |
getMarginRight()
Gets the "marginRight" style attribute. |
String |
getMarginTop()
Gets the "marginTop" style attribute. |
String |
getMarkerOffset()
Gets the "markerOffset" style attribute. |
String |
getMarks()
Gets the "marks" 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 |
getMsInterpolationMode()
Gets the "msInterpolationMode" style attribute. |
String |
getOpacity()
Gets the "opacity" style attribute. |
String |
getOrphans()
Gets the "orphans" style attribute. |
String |
getOutline()
Gets the "outline" 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. |
String |
getPaddingLeft()
Gets the "paddingLeft" style attribute. |
String |
getPaddingRight()
Gets the "paddingRight" style attribute. |
String |
getPaddingTop()
Gets the "paddingTop" style attribute. |
String |
getPage()
Gets the "page" style attribute. |
String |
getPageBreakAfter()
Gets the "pageBreakAfter" style attribute. |
String |
getPageBreakBefore()
Gets the "pageBreakBefore" style attribute. |
String |
getPageBreakInside()
Gets the "pageBreakInside" style attribute. |
int |
getPixelBottom()
Gets the "pixelBottom" style attribute. |
int |
getPixelHeight()
Gets the "pixelHeight" style attribute. |
int |
getPixelLeft()
Gets the "pixelLeft" style attribute. |
int |
getPixelRight()
Gets the "pixelRight" style attribute. |
int |
getPixelTop()
Gets the "pixelTop" style attribute. |
int |
getPixelWidth()
Gets the "pixelWidth" style attribute. |
String |
getPointerEvents()
Gets the "pointerEvents" style attribute. |
int |
getPosBottom()
Gets the "posBottom" style attribute. |
int |
getPosHeight()
Gets the "posHeight" style attribute. |
String |
getPosition()
Gets the "position" style attribute. |
int |
getPosLeft()
Gets the "posLeft" style attribute. |
int |
getPosRight()
Gets the "posRight" style attribute. |
int |
getPosTop()
Gets the "posTop" style attribute. |
int |
getPosWidth()
Gets the "posWidth" style attribute. |
CSSValue |
getPropertyCSSValue(String name)
Gets the CSS property value. |
String |
getPropertyValue(String name)
Gets the value of the specified property of the style. |
String |
getRight()
Gets the "right" style attribute. |
String |
getRubyAlign()
Gets the "rubyAlign" style attribute. |
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. |
String |
getSize()
Gets the "size" 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. |
boolean |
getTextDecorationBlink()
Gets the "textDecorationBlink" style attribute. |
boolean |
getTextDecorationLineThrough()
Gets the "textDecorationLineThrough" style attribute. |
boolean |
getTextDecorationNone()
Gets the "textDecorationNone" style attribute. |
boolean |
getTextDecorationOverline()
Gets the "textDecorationOverline" style attribute. |
boolean |
getTextDecorationUnderline()
Gets the "textDecorationUnderline" 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. |
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. |
Object |
getWithFallback(String name)
IE makes unknown style properties accessible. |
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 |
has(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
|
protected static int |
pixelValue(Element element,
CSSStyleDeclaration.CssValue value)
Converts the specified length CSS attribute value into an integer number of pixels. |
protected static int |
pixelValue(String value)
Converts the specified length string value into an integer number of pixels. |
void |
put(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start,
Object value)
|
boolean |
removeAttribute(String name,
Object flag)
Removes the specified attribute. |
boolean |
removeExpression(String propertyName)
Removes the expression from the specified property. |
String |
removeProperty(String name)
Removes the named property. |
void |
setAccelerator(String accelerator)
Sets the "accelerator" style attribute. |
void |
setAttribute(String name,
String value,
Object flag)
Sets the value of the specified attribute. |
void |
setBackground(String background)
Sets the "background" style attribute. |
void |
setBackgroundAttachment(String backgroundAttachment)
Sets the "backgroundAttachment" style attribute. |
void |
setBackgroundColor(String backgroundColor)
Sets the "backgroundColor" style attribute. |
void |
setBackgroundImage(String backgroundImage)
Sets the "backgroundImage" style attribute. |
void |
setBackgroundPosition(String backgroundPosition)
Sets the "backgroundPosition" style attribute. |
void |
setBackgroundPositionX(String backgroundPositionX)
Sets the "backgroundPositionX" style attribute. |
void |
setBackgroundPositionY(String backgroundPositionY)
Sets the "backgroundPositionY" style attribute. |
void |
setBackgroundRepeat(String backgroundRepeat)
Sets the "backgroundRepeat" style attribute. |
void |
setBehavior(String behavior)
Sets the object's behavior (IE only). |
void |
setBorder(String border)
Sets the "border" style attribute. |
void |
setBorderBottom(String borderBottom)
Sets the "borderBottom" style attribute. |
void |
setBorderBottomColor(String borderBottomColor)
Sets the "borderBottomColor" style attribute. |
void |
setBorderBottomStyle(String borderBottomStyle)
Sets the "borderBottomStyle" style attribute. |
void |
setBorderBottomWidth(String borderBottomWidth)
Sets the "borderBottomWidth" style attribute. |
void |
setBorderCollapse(String borderCollapse)
Sets the "borderCollapse" style attribute. |
void |
setBorderColor(String borderColor)
Sets the "borderColor" style attribute. |
void |
setBorderLeft(String borderLeft)
Sets the "borderLeft" style attribute. |
void |
setBorderLeftColor(String borderLeftColor)
Sets the "borderLeftColor" style attribute. |
void |
setBorderLeftStyle(String borderLeftStyle)
Sets the "borderLeftStyle" style attribute. |
void |
setBorderLeftWidth(String borderLeftWidth)
Sets the "borderLeftWidth" style attribute. |
void |
setBorderRight(String borderRight)
Sets the "borderRight" style attribute. |
void |
setBorderRightColor(String borderRightColor)
Sets the "borderRightColor" style attribute. |
void |
setBorderRightStyle(String borderRightStyle)
Sets the "borderRightStyle" style attribute. |
void |
setBorderRightWidth(String borderRightWidth)
Sets the "borderRightWidth" style attribute. |
void |
setBorderSpacing(String borderSpacing)
Sets the "borderSpacing" style attribute. |
void |
setBorderStyle(String borderStyle)
Sets the "borderStyle" style attribute. |
void |
setBorderTop(String borderTop)
Sets the "borderTop" style attribute. |
void |
setBorderTopColor(String borderTopColor)
Sets the "borderTopColor" style attribute. |
void |
setBorderTopStyle(String borderTopStyle)
Sets the "borderTopStyle" style attribute. |
void |
setBorderTopWidth(String borderTopWidth)
Sets the "borderTopWidth" style attribute. |
void |
setBorderWidth(String borderWidth)
Sets the "borderWidth" style attribute. |
void |
setBottom(String bottom)
Sets the "bottom" style attribute. |
void |
setBoxSizing(String boxSizing)
Sets the "boxSizing" style attribute. |
void |
setCaptionSide(String captionSide)
Sets the "captionSide" style attribute. |
void |
setClear(String clear)
Sets the "clear" style attribute. |
void |
setClip(String clip)
Sets the "clip" style attribute. |
void |
setColor(String color)
Sets the "color" style attribute. |
void |
setContent(String content)
Sets the "content" style attribute. |
void |
setCounterIncrement(String counterIncrement)
Sets the "counterIncrement" style attribute. |
void |
setCounterReset(String counterReset)
Sets the "counterReset" style attribute. |
void |
setCssFloat(String value)
Sets the "cssFloat" style attribute. |
void |
setCssText(String value)
Sets the actual text of the style. |
void |
setCursor(String cursor)
Sets the "cursor" style attribute. |
void |
setDirection(String direction)
Sets the "direction" style attribute. |
void |
setDisplay(String display)
Sets the "display" style attribute. |
void |
setEmptyCells(String emptyCells)
Sets the "emptyCells" style attribute. |
void |
setExpression(String propertyName,
String expression,
String language)
Sets an expression for the specified Style. |
void |
setFont(String font)
Sets the "font" style attribute. |
void |
setFontFamily(String fontFamily)
Sets the "fontFamily" style attribute. |
void |
setFontSize(String fontSize)
Sets the "fontSize" style attribute. |
void |
setFontSizeAdjust(String fontSizeAdjust)
Sets the "fontSizeAdjust" style attribute. |
void |
setFontStretch(String fontStretch)
Sets the "fontStretch" style attribute. |
void |
setFontStyle(String fontStyle)
Sets the "fontStyle" style attribute. |
void |
setFontVariant(String fontVariant)
Sets the "fontVariant" style attribute. |
void |
setFontWeight(String fontWeight)
Sets the "fontWeight" style attribute. |
void |
setHeight(String height)
Sets the "height" style attribute. |
void |
setImeMode(String imeMode)
Sets the "imeMode" style attribute. |
void |
setLayoutFlow(String layoutFlow)
Sets the "layoutFlow" style attribute. |
void |
setLayoutGrid(String layoutGrid)
Sets the "layoutGrid" style attribute. |
void |
setLayoutGridChar(String layoutGridChar)
Sets the "layoutGridChar" style attribute. |
void |
setLayoutGridLine(String layoutGridLine)
Sets the "layoutGridLine" style attribute. |
void |
setLayoutGridMode(String layoutGridMode)
Sets the "layoutGridMode" style attribute. |
void |
setLayoutGridType(String layoutGridType)
Sets the "layoutGridType" style attribute. |
void |
setLeft(String left)
Sets the "left" style attribute. |
void |
setLetterSpacing(String letterSpacing)
Sets the "letterSpacing" style attribute. |
void |
setLineBreak(String lineBreak)
Sets the "lineBreak" style attribute. |
void |
setListStyle(String listStyle)
Sets the "listStyle" style attribute. |
void |
setListStyleImage(String listStyleImage)
Sets the "listStyleImage" style attribute. |
void |
setListStylePosition(String listStylePosition)
Sets the "listStylePosition" style attribute. |
void |
setListStyleType(String listStyleType)
Sets the "listStyleType" style attribute. |
void |
setMargin(String margin)
Sets the "margin" style attribute. |
void |
setMarginBottom(String marginBottom)
Sets the "marginBottom" style attribute. |
void |
setMarginLeft(String marginLeft)
Sets the "marginLeft" style attribute. |
void |
setMarginRight(String marginRight)
Sets the "marginRight" style attribute. |
void |
setMarginTop(String marginTop)
Sets the "marginTop" style attribute. |
void |
setMarkerOffset(String markerOffset)
Sets the "markerOffset" style attribute. |
void |
setMarks(String marks)
Sets the "marks" style attribute. |
void |
setMaxHeight(String maxHeight)
Sets the "maxHeight" style attribute. |
void |
setMaxWidth(String maxWidth)
Sets the "maxWidth" style attribute. |
void |
setMinHeight(String minHeight)
Sets the "minHeight" style attribute. |
void |
setMinWidth(String minWidth)
Sets the "minWidth" style attribute. |
void |
setMsBlockProgression(String msBlockProgression)
Sets the "msBlockProgression" style attribute. |
void |
setMsInterpolationMode(String msInterpolationMode)
Sets the "msInterpolationMode" style attribute. |
void |
setOpacity(String opacity)
Sets the "opacity" style attribute. |
void |
setOrphans(String orphans)
Sets the "orphans" style attribute. |
void |
setOutline(String outline)
Sets the "outline" style attribute. |
void |
setOutlineColor(String outlineColor)
Sets the "outlineColor" style attribute. |
void |
setOutlineOffset(String outlineOffset)
Sets the "outlineOffset" style attribute. |
void |
setOutlineStyle(String outlineStyle)
Sets the "outlineStyle" style attribute. |
void |
setOutlineWidth(String outlineWidth)
Sets the "outlineWidth" style attribute. |
void |
setOverflow(String overflow)
Sets the "overflow" style attribute. |
void |
setOverflowX(String overflowX)
Sets the "overflowX" style attribute. |
void |
setOverflowY(String overflowY)
Sets the "overflowY" style attribute. |
void |
setPadding(String padding)
Sets the "padding" style attribute. |
void |
setPaddingBottom(String paddingBottom)
Sets the "paddingBottom" style attribute. |
void |
setPaddingLeft(String paddingLeft)
Sets the "paddingLeft" style attribute. |
void |
setPaddingRight(String paddingRight)
Sets the "paddingRight" style attribute. |
void |
setPaddingTop(String paddingTop)
Sets the "paddingTop" style attribute. |
void |
setPage(String page)
Sets the "page" style attribute. |
void |
setPageBreakAfter(String pageBreakAfter)
Sets the "pageBreakAfter" style attribute. |
void |
setPageBreakBefore(String pageBreakBefore)
Sets the "pageBreakBefore" style attribute. |
void |
setPageBreakInside(String pageBreakInside)
Sets the "pageBreakInside" style attribute. |
void |
setPixelBottom(int pixelBottom)
Sets the "pixelBottom" style attribute. |
void |
setPixelHeight(int pixelHeight)
Sets the "pixelHeight" style attribute. |
void |
setPixelLeft(int pixelLeft)
Sets the "pixelLeft" style attribute. |
void |
setPixelRight(int pixelRight)
Sets the "pixelRight" style attribute. |
void |
setPixelTop(int pixelTop)
Sets the "pixelTop" style attribute. |
void |
setPixelWidth(int pixelWidth)
Sets the "pixelWidth" style attribute. |
void |
setPointerEvents(String pointerEvents)
Sets the "pointerEvents" style attribute. |
void |
setPosBottom(int posBottom)
Sets the "posBottom" style attribute. |
void |
setPosHeight(int posHeight)
Sets the "posHeight" style attribute. |
void |
setPosition(String position)
Sets the "position" style attribute. |
void |
setPosLeft(int posLeft)
Sets the "posLeft" style attribute. |
void |
setPosRight(int posRight)
Sets the "posRight" style attribute. |
void |
setPosTop(int posTop)
Sets the "posTop" style attribute. |
void |
setPosWidth(int posWidth)
Sets the "posWidth" style attribute. |
void |
setRight(String right)
Sets the "right" style attribute. |
void |
setRubyAlign(String rubyAlign)
Sets the "rubyAlign" style attribute. |
void |
setRubyOverhang(String rubyOverhang)
Sets the "rubyOverhang" style attribute. |
void |
setRubyPosition(String rubyPosition)
Sets the "rubyPosition" style attribute. |
void |
setScrollbar3dLightColor(String scrollbar3dLightColor)
Sets the "scrollbar3dLightColor" style attribute. |
void |
setScrollbarArrowColor(String scrollbarArrowColor)
Sets the "scrollbarArrowColor" style attribute. |
void |
setScrollbarBaseColor(String scrollbarBaseColor)
Sets the "scrollbarBaseColor" style attribute. |
void |
setScrollbarDarkShadowColor(String scrollbarDarkShadowColor)
Sets the "scrollbarDarkShadowColor" style attribute. |
void |
setScrollbarFaceColor(String scrollbarFaceColor)
Sets the "scrollbarFaceColor" style attribute. |
void |
setScrollbarHighlightColor(String scrollbarHighlightColor)
Sets the "scrollbarHighlightColor" style attribute. |
void |
setScrollbarShadowColor(String scrollbarShadowColor)
Sets the "scrollbarShadowColor" style attribute. |
void |
setScrollbarTrackColor(String scrollbarTrackColor)
Sets the "scrollbarTrackColor" style attribute. |
void |
setSize(String size)
Sets the "size" style attribute. |
protected void |
setStyleAttribute(String name,
String newValue)
Sets the specified style attribute. |
protected void |
setStyleAttributePixel(String name,
String value)
Sets the style attribute which should be treated as an integer in pixels. |
void |
setStyleFloat(String value)
Sets the "styleFloat" style attribute. |
void |
setTableLayout(String tableLayout)
Sets the "tableLayout" style attribute. |
void |
setTextAlign(String textAlign)
Sets the "textAlign" style attribute. |
void |
setTextAlignLast(String textAlignLast)
Sets the "textAlignLast" style attribute. |
void |
setTextAutospace(String textAutospace)
Sets the "textAutospace" style attribute. |
void |
setTextDecoration(String textDecoration)
Sets the "textDecoration" style attribute. |
void |
setTextDecorationBlink(boolean textDecorationBlink)
Sets the "textDecorationBlink" style attribute. |
void |
setTextDecorationLineThrough(boolean textDecorationLineThrough)
Sets the "textDecorationLineThrough" style attribute. |
void |
setTextDecorationNone(boolean textDecorationNone)
Sets the "textDecorationNone" style attribute. |
void |
setTextDecorationOverline(boolean textDecorationOverline)
Sets the "textDecorationOverline" style attribute. |
void |
setTextDecorationUnderline(boolean textDecorationUnderline)
Sets the "textDecorationUnderline" style attribute. |
void |
setTextIndent(String textIndent)
Sets the "textIndent" style attribute. |
void |
setTextJustify(String textJustify)
Sets the "textJustify" style attribute. |
void |
setTextJustifyTrim(String textJustifyTrim)
Sets the "textJustifyTrim" style attribute. |
void |
setTextKashida(String textKashida)
Sets the "textKashida" style attribute. |
void |
setTextKashidaSpace(String textKashidaSpace)
Sets the "textKashidaSpace" style attribute. |
void |
setTextOverflow(String textOverflow)
Sets the "textOverflow" style attribute. |
void |
setTextShadow(String textShadow)
Sets the "textShadow" style attribute. |
void |
setTextTransform(String textTransform)
Sets the "textTransform" style attribute. |
void |
setTextUnderlinePosition(String textUnderlinePosition)
Sets the "textUnderlinePosition" style attribute. |
void |
setTop(String top)
Sets the "top" style attribute. |
void |
setVerticalAlign(String verticalAlign)
Sets the "verticalAlign" style attribute. |
void |
setVisibility(String visibility)
Sets the "visibility" style attribute. |
void |
setWhiteSpace(String whiteSpace)
Sets the "whiteSpace" style attribute. |
void |
setWidows(String widows)
Sets the "widows" style attribute. |
void |
setWidth(String width)
Sets the "width" style attribute. |
void |
setWordSpacing(String wordSpacing)
Sets the "wordSpacing" style attribute. |
void |
setWordWrap(String wordWrap)
Sets the "wordWrap" style attribute. |
void |
setWritingMode(String writingMode)
Sets the "writingMode" style attribute. |
void |
setZIndex(Object zIndex)
Sets the "zIndex" style attribute. |
void |
setZoom(String zoom)
Sets the "zoom" style attribute. |
static String |
toRGBColor(String color)
Gets the RGB equivalent of a CSS color if the provided color is recognized. |
String |
toString()
|
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
|---|
clone, defineFunctionProperties, defineProperty, equivalentValues, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement, setParentScope |
| Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
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, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, 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, setGetterOrSetter, setPrototype, size |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
delete, delete, get, getClassName, getDefaultValue, getParentScope, getPrototype, has, hasInstance, put, setParentScope, setPrototype |
| Field Detail |
|---|
protected static final String PRIORITY_IMPORTANT
protected static final String WIDTH
| Constructor Detail |
|---|
public CSSStyleDeclaration()
public CSSStyleDeclaration(Element element)
element - the element to which this style is bound| Method Detail |
|---|
public Object getWithFallback(String name)
getWithFallback in interface ScriptableWithFallbackGettername - the name of the requested property
Scriptable.NOT_FOUND if nothing is foundprotected Element getElement()
protected String getStyleAttribute(String name)
name - the name of the style attribute whose value is to be retrieved
protected CSSStyleDeclaration.StyleElement getStyleElement(String name)
name - the name of the requested StyleElement
protected void setStyleAttribute(String name,
String newValue)
name - the attribute name (camel-cased)newValue - the attribute valueprotected long getCurrentElementIndex()
protected static String camelize(String string)
string - the string to camelize
DOMStringMap.decamelize(String)public String getAccelerator()
public void setAccelerator(String accelerator)
accelerator - the new attributepublic String getBackground()
public void setBackground(String background)
background - the new attributepublic String getBackgroundAttachment()
public void setBackgroundAttachment(String backgroundAttachment)
backgroundAttachment - the new attributepublic String getBackgroundColor()
public void setBackgroundColor(String backgroundColor)
backgroundColor - the new attributepublic String getBackgroundImage()
public void setBackgroundImage(String backgroundImage)
backgroundImage - the new attributepublic String getBackgroundPosition()
public void setBackgroundPosition(String backgroundPosition)
backgroundPosition - the new attributepublic String getBackgroundPositionX()
public void setBackgroundPositionX(String backgroundPositionX)
backgroundPositionX - the new attributepublic String getBackgroundPositionY()
public void setBackgroundPositionY(String backgroundPositionY)
backgroundPositionY - the new attributepublic String getBackgroundRepeat()
public void setBackgroundRepeat(String backgroundRepeat)
backgroundRepeat - the new attributepublic String getBehavior()
public void setBehavior(String behavior)
behavior - the new behaviorpublic String getBorder()
public void setBorder(String border)
border - the new attributepublic String getBorderBottom()
public void setBorderBottom(String borderBottom)
borderBottom - the new attributepublic String getBorderBottomColor()
public void setBorderBottomColor(String borderBottomColor)
borderBottomColor - the new attributepublic String getBorderBottomStyle()
public void setBorderBottomStyle(String borderBottomStyle)
borderBottomStyle - the new attributepublic String getBorderBottomWidth()
public void setBorderBottomWidth(String borderBottomWidth)
borderBottomWidth - the new attributepublic String getBorderCollapse()
public void setBorderCollapse(String borderCollapse)
borderCollapse - the new attributepublic String getBorderColor()
public void setBorderColor(String borderColor)
borderColor - the new attributepublic String getBorderLeft()
public void setBorderLeft(String borderLeft)
borderLeft - the new attributepublic String getBorderLeftColor()
public void setBorderLeftColor(String borderLeftColor)
borderLeftColor - the new attributepublic String getBorderLeftStyle()
public void setBorderLeftStyle(String borderLeftStyle)
borderLeftStyle - the new attributepublic String getBorderLeftWidth()
public void setBorderLeftWidth(String borderLeftWidth)
borderLeftWidth - the new attributepublic String getBorderRight()
public void setBorderRight(String borderRight)
borderRight - the new attributepublic String getBorderRightColor()
public void setBorderRightColor(String borderRightColor)
borderRightColor - the new attributepublic String getBorderRightStyle()
public void setBorderRightStyle(String borderRightStyle)
borderRightStyle - the new attributepublic String getBorderRightWidth()
public void setBorderRightWidth(String borderRightWidth)
borderRightWidth - the new attributepublic String getBorderSpacing()
public void setBorderSpacing(String borderSpacing)
borderSpacing - the new attributepublic String getBorderStyle()
public void setBorderStyle(String borderStyle)
borderStyle - the new attributepublic String getBorderTop()
public void setBorderTop(String borderTop)
borderTop - the new attributepublic String getBorderTopColor()
public void setBorderTopColor(String borderTopColor)
borderTopColor - the new attributepublic String getBorderTopStyle()
public void setBorderTopStyle(String borderTopStyle)
borderTopStyle - the new attributepublic String getBorderTopWidth()
public void setBorderTopWidth(String borderTopWidth)
borderTopWidth - the new attributepublic String getBorderWidth()
public void setBorderWidth(String borderWidth)
borderWidth - the new attributepublic String getBottom()
public void setBottom(String bottom)
bottom - the new attributepublic String getBoxSizing()
public void setBoxSizing(String boxSizing)
boxSizing - the new attributepublic String getCaptionSide()
public void setCaptionSide(String captionSide)
captionSide - the new attributepublic String getClear()
public void setClear(String clear)
clear - the new attributepublic String getClip()
public void setClip(String clip)
clip - the new attributepublic String getColor()
public void setColor(String color)
color - the new attributepublic String getContent()
public void setContent(String content)
content - the new attributepublic String getCounterIncrement()
public void setCounterIncrement(String counterIncrement)
counterIncrement - the new attributepublic String getCounterReset()
public void setCounterReset(String counterReset)
counterReset - the new attributepublic String getCssFloat()
public void setCssFloat(String value)
value - the new attributepublic String getCssText()
public void setCssText(String value)
value - the new textpublic String getCursor()
public void setCursor(String cursor)
cursor - the new attributepublic String getDirection()
public void setDirection(String direction)
direction - the new attributepublic String getDisplay()
public void setDisplay(String display)
display - the new attributepublic String getEmptyCells()
public void setEmptyCells(String emptyCells)
emptyCells - the new attributepublic String getFont()
public void setFont(String font)
font - the new attributepublic String getFontFamily()
public void setFontFamily(String fontFamily)
fontFamily - the new attributepublic String getFontSize()
public void setFontSize(String fontSize)
fontSize - the new attributepublic String getFontSizeAdjust()
public void setFontSizeAdjust(String fontSizeAdjust)
fontSizeAdjust - the new attributepublic String getFontStretch()
public void setFontStretch(String fontStretch)
fontStretch - the new attributepublic String getFontStyle()
public void setFontStyle(String fontStyle)
fontStyle - the new attributepublic String getFontVariant()
public void setFontVariant(String fontVariant)
fontVariant - the new attributepublic String getFontWeight()
public void setFontWeight(String fontWeight)
fontWeight - the new attributepublic String getHeight()
public void setHeight(String height)
height - the new attributepublic String getImeMode()
public void setImeMode(String imeMode)
imeMode - the new attributepublic String getLayoutFlow()
public void setLayoutFlow(String layoutFlow)
layoutFlow - the new attributepublic String getLayoutGrid()
public void setLayoutGrid(String layoutGrid)
layoutGrid - the new attributepublic String getLayoutGridChar()
public void setLayoutGridChar(String layoutGridChar)
layoutGridChar - the new attributepublic String getLayoutGridLine()
public void setLayoutGridLine(String layoutGridLine)
layoutGridLine - the new attributepublic String getLayoutGridMode()
public void setLayoutGridMode(String layoutGridMode)
layoutGridMode - the new attributepublic String getLayoutGridType()
public void setLayoutGridType(String layoutGridType)
layoutGridType - the new attributepublic String getLeft()
public void setLeft(String left)
left - the new attributepublic int getLength()
public String getLetterSpacing()
public void setLetterSpacing(String letterSpacing)
letterSpacing - the new attributepublic String getLineBreak()
public void setLineBreak(String lineBreak)
lineBreak - the new attributepublic String getListStyle()
public void setListStyle(String listStyle)
listStyle - the new attributepublic String getListStyleImage()
public void setListStyleImage(String listStyleImage)
listStyleImage - the new attributepublic String getListStylePosition()
public void setListStylePosition(String listStylePosition)
listStylePosition - the new attributepublic String getListStyleType()
public void setListStyleType(String listStyleType)
listStyleType - the new attributepublic String getMargin()
public void setMargin(String margin)
margin - the new attributepublic String getMarginBottom()
public void setMarginBottom(String marginBottom)
marginBottom - the new attributepublic String getMarginLeft()
public void setMarginLeft(String marginLeft)
marginLeft - the new attributepublic String getMarginRight()
public void setMarginRight(String marginRight)
marginRight - the new attributepublic String getMarginTop()
public void setMarginTop(String marginTop)
marginTop - the new attributepublic String getMarkerOffset()
public void setMarkerOffset(String markerOffset)
markerOffset - the new attributepublic String getMarks()
public void setMarks(String marks)
marks - the new attributepublic String getMaxHeight()
public void setMaxHeight(String maxHeight)
maxHeight - the new attributepublic String getMaxWidth()
public void setMaxWidth(String maxWidth)
maxWidth - the new attributepublic String getMinHeight()
public void setMinHeight(String minHeight)
minHeight - the new attributepublic String getMinWidth()
public void setMinWidth(String minWidth)
minWidth - the new attribute
public Object get(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
SimpleScriptableSimpleScriptable.getWithPreemption(String).
For fallback case just implement ScriptableWithFallbackGetter.
get in interface net.sourceforge.htmlunit.corejs.javascript.Scriptableget in class SimpleScriptableprotected String getStyleAttributeValue(StyleAttributes.Definition style)
style - the style
public void put(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start,
Object value)
put in interface net.sourceforge.htmlunit.corejs.javascript.Scriptableput in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
public boolean has(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
has in interface net.sourceforge.htmlunit.corejs.javascript.Scriptablehas in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectpublic Object[] getIds()
getIds in interface net.sourceforge.htmlunit.corejs.javascript.ScriptablegetIds in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectpublic String getMsBlockProgression()
public void setMsBlockProgression(String msBlockProgression)
msBlockProgression - the new attributepublic String getMsInterpolationMode()
public void setMsInterpolationMode(String msInterpolationMode)
msInterpolationMode - the new attributepublic String getOpacity()
public void setOpacity(String opacity)
opacity - the new attributepublic String getOrphans()
public void setOrphans(String orphans)
orphans - the new attributepublic String getOutline()
public void setOutline(String outline)
outline - the new attributepublic String getOutlineColor()
public void setOutlineColor(String outlineColor)
outlineColor - the new attributepublic String getOutlineOffset()
public void setOutlineOffset(String outlineOffset)
outlineOffset - the new attributepublic String getOutlineStyle()
public void setOutlineStyle(String outlineStyle)
outlineStyle - the new attributepublic String getOutlineWidth()
public void setOutlineWidth(String outlineWidth)
outlineWidth - the new attributepublic String getOverflow()
public void setOverflow(String overflow)
overflow - the new attributepublic String getOverflowX()
public void setOverflowX(String overflowX)
overflowX - the new attributepublic String getOverflowY()
public void setOverflowY(String overflowY)
overflowY - the new attributepublic String getPadding()
public void setPadding(String padding)
padding - the new attributepublic String getPaddingBottom()
public void setPaddingBottom(String paddingBottom)
paddingBottom - the new attributepublic String getPaddingLeft()
public void setPaddingLeft(String paddingLeft)
paddingLeft - the new attributepublic String getPaddingRight()
public void setPaddingRight(String paddingRight)
paddingRight - the new attributepublic String getPaddingTop()
public void setPaddingTop(String paddingTop)
paddingTop - the new attributepublic String getPage()
public void setPage(String page)
page - the new attributepublic String getPageBreakAfter()
public void setPageBreakAfter(String pageBreakAfter)
pageBreakAfter - the new attributepublic String getPageBreakBefore()
public void setPageBreakBefore(String pageBreakBefore)
pageBreakBefore - the new attributepublic String getPageBreakInside()
public void setPageBreakInside(String pageBreakInside)
pageBreakInside - the new attributepublic String getPointerEvents()
public void setPointerEvents(String pointerEvents)
pointerEvents - the new attributepublic int getPixelBottom()
public void setPixelBottom(int pixelBottom)
pixelBottom - the new attributepublic int getPixelHeight()
public void setPixelHeight(int pixelHeight)
pixelHeight - the new attributepublic int getPixelLeft()
public void setPixelLeft(int pixelLeft)
pixelLeft - the new attributepublic int getPixelRight()
public void setPixelRight(int pixelRight)
pixelRight - the new attributepublic int getPixelTop()
public void setPixelTop(int pixelTop)
pixelTop - the new attributepublic int getPixelWidth()
public void setPixelWidth(int pixelWidth)
pixelWidth - the new attributepublic int getPosBottom()
public void setPosBottom(int posBottom)
posBottom - the new attributepublic int getPosHeight()
public void setPosHeight(int posHeight)
posHeight - the new attributepublic String getPosition()
public void setPosition(String position)
position - the new attributepublic int getPosLeft()
public void setPosLeft(int posLeft)
posLeft - the new attributepublic int getPosRight()
public void setPosRight(int posRight)
posRight - the new attributepublic int getPosTop()
public void setPosTop(int posTop)
posTop - the new attributepublic int getPosWidth()
public void setPosWidth(int posWidth)
posWidth - the new attributepublic String getRight()
public void setRight(String right)
right - the new attributepublic String getRubyAlign()
public void setRubyAlign(String rubyAlign)
rubyAlign - the new attributepublic String getRubyOverhang()
public void setRubyOverhang(String rubyOverhang)
rubyOverhang - the new attributepublic String getRubyPosition()
public void setRubyPosition(String rubyPosition)
rubyPosition - the new attributepublic String getScrollbar3dLightColor()
public void setScrollbar3dLightColor(String scrollbar3dLightColor)
scrollbar3dLightColor - the new attributepublic String getScrollbarArrowColor()
public void setScrollbarArrowColor(String scrollbarArrowColor)
scrollbarArrowColor - the new attributepublic String getScrollbarBaseColor()
public void setScrollbarBaseColor(String scrollbarBaseColor)
scrollbarBaseColor - the new attributepublic String getScrollbarDarkShadowColor()
public void setScrollbarDarkShadowColor(String scrollbarDarkShadowColor)
scrollbarDarkShadowColor - the new attributepublic String getScrollbarFaceColor()
public void setScrollbarFaceColor(String scrollbarFaceColor)
scrollbarFaceColor - the new attributepublic String getScrollbarHighlightColor()
public void setScrollbarHighlightColor(String scrollbarHighlightColor)
scrollbarHighlightColor - the new attributepublic String getScrollbarShadowColor()
public void setScrollbarShadowColor(String scrollbarShadowColor)
scrollbarShadowColor - the new attributepublic String getScrollbarTrackColor()
public void setScrollbarTrackColor(String scrollbarTrackColor)
scrollbarTrackColor - the new attributepublic String getSize()
public void setSize(String size)
size - the new attributepublic String getStyleFloat()
public void setStyleFloat(String value)
value - the new attributepublic String getTableLayout()
public void setTableLayout(String tableLayout)
tableLayout - the new attributepublic String getTextAlign()
public void setTextAlign(String textAlign)
textAlign - the new attributepublic String getTextAlignLast()
public void setTextAlignLast(String textAlignLast)
textAlignLast - the new attributepublic String getTextAutospace()
public void setTextAutospace(String textAutospace)
textAutospace - the new attributepublic String getTextDecoration()
public void setTextDecoration(String textDecoration)
textDecoration - the new attributepublic boolean getTextDecorationBlink()
public void setTextDecorationBlink(boolean textDecorationBlink)
textDecorationBlink - the new attributepublic boolean getTextDecorationLineThrough()
public void setTextDecorationLineThrough(boolean textDecorationLineThrough)
textDecorationLineThrough - the new attributepublic boolean getTextDecorationNone()
public void setTextDecorationNone(boolean textDecorationNone)
textDecorationNone - the new attributepublic boolean getTextDecorationOverline()
public void setTextDecorationOverline(boolean textDecorationOverline)
textDecorationOverline - the new attributepublic boolean getTextDecorationUnderline()
public void setTextDecorationUnderline(boolean textDecorationUnderline)
textDecorationUnderline - the new attributepublic String getTextIndent()
public void setTextIndent(String textIndent)
textIndent - the new attributepublic String getTextJustify()
public void setTextJustify(String textJustify)
textJustify - the new attributepublic String getTextJustifyTrim()
public void setTextJustifyTrim(String textJustifyTrim)
textJustifyTrim - the new attributepublic String getTextKashida()
public void setTextKashida(String textKashida)
textKashida - the new attributepublic String getTextKashidaSpace()
public void setTextKashidaSpace(String textKashidaSpace)
textKashidaSpace - the new attributepublic String getTextOverflow()
public void setTextOverflow(String textOverflow)
textOverflow - the new attributepublic String getTextShadow()
public void setTextShadow(String textShadow)
textShadow - the new attributepublic String getTextTransform()
public void setTextTransform(String textTransform)
textTransform - the new attributepublic String getTextUnderlinePosition()
public void setTextUnderlinePosition(String textUnderlinePosition)
textUnderlinePosition - the new attributepublic String getTop()
public void setTop(String top)
top - the new attributepublic String getVerticalAlign()
public void setVerticalAlign(String verticalAlign)
verticalAlign - the new attributepublic String getVisibility()
public void setVisibility(String visibility)
visibility - the new attributepublic String getWhiteSpace()
public void setWhiteSpace(String whiteSpace)
whiteSpace - the new attributepublic String getWidows()
public void setWidows(String widows)
widows - the new attributepublic String getWidth()
public void setWidth(String width)
width - the new attributepublic String getWordSpacing()
public void setWordSpacing(String wordSpacing)
wordSpacing - the new attributepublic String getWordWrap()
public void setWordWrap(String wordWrap)
wordWrap - the new attributepublic String getWritingMode()
public void setWritingMode(String writingMode)
writingMode - the new attributepublic Object getZIndex()
public void setZIndex(Object zIndex)
zIndex - the new attributepublic String getZoom()
public void setZoom(String zoom)
zoom - the new attributepublic String getPropertyValue(String name)
name - the style property name
public CSSValue getPropertyCSSValue(String name)
name - the name of the property to retrieve
public String removeProperty(String name)
name - the name of the property to remove
public void setExpression(String propertyName,
String expression,
String language)
propertyName - Specifies the name of the property to which expression is addedexpression - specifies any valid script statement without quotations or semicolons;
this string can include references to other properties on the current page.
Array references are not allowed on object properties included in this script.language - specified the language usedpublic boolean removeExpression(String propertyName)
propertyName - the name of the property from which to remove an expression
public Object getAttribute(String name,
int flag)
name - the name of the attributeflag - 0 for case insensitive, 1 (default) for case sensitive
public void setAttribute(String name,
String value,
Object flag)
name - the name of the attributevalue - the value to assign to the attributeflag - 0 for case insensitive, 1 (default) for case sensitive
public boolean removeAttribute(String name,
Object flag)
name - the name of the attributeflag - 0 for case insensitive, 1 (default) for case sensitive
public static String toRGBColor(String color)
color - the color
protected static int pixelValue(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 retrieved
pixelValue(String)protected static int pixelValue(String value)
#pixelValue(HTMLElement, CssValue) if you
need percentage support).
value - the length string value to convert to an integer number of pixels
#pixelValue(HTMLElement, CssValue)public String toString()
toString in class Object
protected void setStyleAttributePixel(String name,
String value)
name - the attribute namevalue - the attribute value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||