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

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

public class CSSStyleDeclaration
extends SimpleScriptable
implements ScriptableWithFallbackGetter

A JavaScript object for a CSSStyleDeclaration.

Version:
$Revision: 8461 $
Author:
Mike Bowler, Christian Sell, Daniel Gredler, Chris Erskine, Ahmed Ashour, Rodney Gitzel, Sudhan Moghe, Ronald Brill
See Also:
Serialized Form

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.
 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 getPixelLeft()
          Gets the "pixelLeft" style attribute.
 int getPixelRight()
          Gets the "pixelRight" style attribute.
 int getPixelTop()
          Gets the "pixelTop" 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 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 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 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

PRIORITY_IMPORTANT

protected static final String PRIORITY_IMPORTANT
Css important property constant.

See Also:
Constant Field Values

WIDTH

protected static final String WIDTH
The width style attribute.

See Also:
Constant Field Values
Constructor Detail

CSSStyleDeclaration

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


CSSStyleDeclaration

public CSSStyleDeclaration(Element element)
Creates an instance and sets its parent scope to the one of the provided element.

Parameters:
element - the element to which this style is bound
Method Detail

getWithFallback

public Object getWithFallback(String name)
IE makes unknown style properties accessible.

Specified by:
getWithFallback in interface ScriptableWithFallbackGetter
Parameters:
name - the name of the requested property
Returns:
the object value, Scriptable.NOT_FOUND if nothing is found

getElement

protected Element getElement()
Returns the element to which this style belongs.

Returns:
the element to which this style belongs

getStyleAttribute

protected String getStyleAttribute(String name)
Returns the value of the named style attribute, or an empty string if it is not found.

Parameters:
name - the name of the style attribute whose value is to be retrieved
Returns:
the named style attribute value, or an empty string if it is not found

getStyleElement

protected CSSStyleDeclaration.StyleElement getStyleElement(String name)
Determines the StyleElement for the given name.

Parameters:
name - the name of the requested StyleElement
Returns:
the StyleElement or null if not found

setStyleAttribute

protected void setStyleAttribute(String name,
                                 String newValue)
Sets the specified style attribute.

Parameters:
name - the attribute name (camel-cased)
newValue - the attribute value

getCurrentElementIndex

protected long getCurrentElementIndex()
Returns the current style element index. An index is assigned to each style element so that we can determine which style elements have precedence over others. This method also takes care of incrementing the index for the next use.

Returns:
the current style element index

camelize

protected static String camelize(String string)
Transforms the specified string from delimiter-separated (e.g. font-size) to camel-cased (e.g. fontSize).

Parameters:
string - the string to camelize
Returns:
the transformed string
See Also:
DOMStringMap.decamelize(String)

getBackground

public String getBackground()
Gets the "background" style attribute.

Returns:
the style attribute

setBackground

public void setBackground(String background)
Sets the "background" style attribute.

Parameters:
background - the new attribute

getBackgroundAttachment

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

Returns:
the style attribute

setBackgroundAttachment

public void setBackgroundAttachment(String backgroundAttachment)
Sets the "backgroundAttachment" style attribute.

Parameters:
backgroundAttachment - the new attribute

getBackgroundColor

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

Returns:
the style attribute

setBackgroundColor

public void setBackgroundColor(String backgroundColor)
Sets the "backgroundColor" style attribute.

Parameters:
backgroundColor - the new attribute

getBackgroundImage

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

Returns:
the style attribute

setBackgroundImage

public void setBackgroundImage(String backgroundImage)
Sets the "backgroundImage" style attribute.

Parameters:
backgroundImage - the new attribute

getBackgroundPosition

public String getBackgroundPosition()
Gets the "backgroundPosition" style attribute.

Returns:
the style attribute

setBackgroundPosition

public void setBackgroundPosition(String backgroundPosition)
Sets the "backgroundPosition" style attribute.

Parameters:
backgroundPosition - the new attribute

getBackgroundPositionX

public String getBackgroundPositionX()
Gets the "backgroundPositionX" style attribute.

Returns:
the style attribute

setBackgroundPositionX

public void setBackgroundPositionX(String backgroundPositionX)
Sets the "backgroundPositionX" style attribute.

Parameters:
backgroundPositionX - the new attribute

getBackgroundPositionY

public String getBackgroundPositionY()
Gets the "backgroundPositionY" style attribute.

Returns:
the style attribute

setBackgroundPositionY

public void setBackgroundPositionY(String backgroundPositionY)
Sets the "backgroundPositionY" style attribute.

Parameters:
backgroundPositionY - the new attribute

getBackgroundRepeat

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

Returns:
the style attribute

setBackgroundRepeat

public void setBackgroundRepeat(String backgroundRepeat)
Sets the "backgroundRepeat" style attribute.

Parameters:
backgroundRepeat - the new attribute

getBehavior

public String getBehavior()
Gets the object's behavior (IE only).

Returns:
the object's behavior

setBehavior

public void setBehavior(String behavior)
Sets the object's behavior (IE only).

Parameters:
behavior - the new behavior

getBorder

public String getBorder()
Gets the "border" style attribute.

Returns:
the style attribute

setBorder

public void setBorder(String border)
Sets the "border" style attribute.

Parameters:
border - the new attribute

getBorderBottom

public String getBorderBottom()
Gets the "borderBottom" style attribute.

Returns:
the style attribute

setBorderBottom

public void setBorderBottom(String borderBottom)
Sets the "borderBottom" style attribute.

Parameters:
borderBottom - the new attribute

getBorderBottomColor

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

Returns:
the style attribute

setBorderBottomColor

public void setBorderBottomColor(String borderBottomColor)
Sets the "borderBottomColor" style attribute.

Parameters:
borderBottomColor - the new attribute

getBorderBottomStyle

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

Returns:
the style attribute

setBorderBottomStyle

public void setBorderBottomStyle(String borderBottomStyle)
Sets the "borderBottomStyle" style attribute.

Parameters:
borderBottomStyle - the new attribute

getBorderBottomWidth

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

Returns:
the style attribute

setBorderBottomWidth

public void setBorderBottomWidth(String borderBottomWidth)
Sets the "borderBottomWidth" style attribute.

Parameters:
borderBottomWidth - the new attribute

getBorderCollapse

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

Returns:
the style attribute

setBorderCollapse

public void setBorderCollapse(String borderCollapse)
Sets the "borderCollapse" style attribute.

Parameters:
borderCollapse - the new attribute

getBorderColor

public String getBorderColor()
Gets the "borderColor" style attribute.

Returns:
the style attribute

setBorderColor

public void setBorderColor(String borderColor)
Sets the "borderColor" style attribute.

Parameters:
borderColor - the new attribute

getBorderLeft

public String getBorderLeft()
Gets the "borderLeft" style attribute.

Returns:
the style attribute

setBorderLeft

public void setBorderLeft(String borderLeft)
Sets the "borderLeft" style attribute.

Parameters:
borderLeft - the new attribute

getBorderLeftColor

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

Returns:
the style attribute

setBorderLeftColor

public void setBorderLeftColor(String borderLeftColor)
Sets the "borderLeftColor" style attribute.

Parameters:
borderLeftColor - the new attribute

getBorderLeftStyle

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

Returns:
the style attribute

setBorderLeftStyle

public void setBorderLeftStyle(String borderLeftStyle)
Sets the "borderLeftStyle" style attribute.

Parameters:
borderLeftStyle - the new attribute

getBorderLeftWidth

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

Returns:
the style attribute

setBorderLeftWidth

public void setBorderLeftWidth(String borderLeftWidth)
Sets the "borderLeftWidth" style attribute.

Parameters:
borderLeftWidth - the new attribute

getBorderRight

public String getBorderRight()
Gets the "borderRight" style attribute.

Returns:
the style attribute

setBorderRight

public void setBorderRight(String borderRight)
Sets the "borderRight" style attribute.

Parameters:
borderRight - the new attribute

getBorderRightColor

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

Returns:
the style attribute

setBorderRightColor

public void setBorderRightColor(String borderRightColor)
Sets the "borderRightColor" style attribute.

Parameters:
borderRightColor - the new attribute

getBorderRightStyle

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

Returns:
the style attribute

setBorderRightStyle

public void setBorderRightStyle(String borderRightStyle)
Sets the "borderRightStyle" style attribute.

Parameters:
borderRightStyle - the new attribute

getBorderRightWidth

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

Returns:
the style attribute

setBorderRightWidth

public void setBorderRightWidth(String borderRightWidth)
Sets the "borderRightWidth" style attribute.

Parameters:
borderRightWidth - the new attribute

getBorderSpacing

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

Returns:
the style attribute

setBorderSpacing

public void setBorderSpacing(String borderSpacing)
Sets the "borderSpacing" style attribute.

Parameters:
borderSpacing - the new attribute

getBorderStyle

public String getBorderStyle()
Gets the "borderStyle" style attribute.

Returns:
the style attribute

setBorderStyle

public void setBorderStyle(String borderStyle)
Sets the "borderStyle" style attribute.

Parameters:
borderStyle - the new attribute

getBorderTop

public String getBorderTop()
Gets the "borderTop" style attribute.

Returns:
the style attribute

setBorderTop

public void setBorderTop(String borderTop)
Sets the "borderTop" style attribute.

Parameters:
borderTop - the new attribute

getBorderTopColor

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

Returns:
the style attribute

setBorderTopColor

public void setBorderTopColor(String borderTopColor)
Sets the "borderTopColor" style attribute.

Parameters:
borderTopColor - the new attribute

getBorderTopStyle

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

Returns:
the style attribute

setBorderTopStyle

public void setBorderTopStyle(String borderTopStyle)
Sets the "borderTopStyle" style attribute.

Parameters:
borderTopStyle - the new attribute

getBorderTopWidth

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

Returns:
the style attribute

setBorderTopWidth

public void setBorderTopWidth(String borderTopWidth)
Sets the "borderTopWidth" style attribute.

Parameters:
borderTopWidth - the new attribute

getBorderWidth

public String getBorderWidth()
Gets the "borderWidth" style attribute.

Returns:
the style attribute

setBorderWidth

public void setBorderWidth(String borderWidth)
Sets the "borderWidth" style attribute.

Parameters:
borderWidth - the new attribute

getBottom

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

Returns:
the style attribute

setBottom

public void setBottom(String bottom)
Sets the "bottom" style attribute.

Parameters:
bottom - the new attribute

getBoxSizing

public String getBoxSizing()
Gets the "boxSizing" style attribute.

Returns:
the style attribute

setBoxSizing

public void setBoxSizing(String boxSizing)
Sets the "boxSizing" style attribute.

Parameters:
boxSizing - the new attribute

getCaptionSide

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

Returns:
the style attribute

setCaptionSide

public void setCaptionSide(String captionSide)
Sets the "captionSide" style attribute.

Parameters:
captionSide - the new attribute

getClear

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

Returns:
the style attribute

setClear

public void setClear(String clear)
Sets the "clear" style attribute.

Parameters:
clear - the new attribute

getClip

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

Returns:
the style attribute

setClip

public void setClip(String clip)
Sets the "clip" style attribute.

Parameters:
clip - the new attribute

getColor

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

Returns:
the style attribute

setColor

public void setColor(String color)
Sets the "color" style attribute.

Parameters:
color - the new attribute

getContent

public String getContent()
Gets the "content" style attribute.

Returns:
the style attribute

setContent

public void setContent(String content)
Sets the "content" style attribute.

Parameters:
content - the new attribute

getCounterIncrement

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

Returns:
the style attribute

setCounterIncrement

public void setCounterIncrement(String counterIncrement)
Sets the "counterIncrement" style attribute.

Parameters:
counterIncrement - the new attribute

getCounterReset

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

Returns:
the style attribute

setCounterReset

public void setCounterReset(String counterReset)
Sets the "counterReset" style attribute.

Parameters:
counterReset - the new attribute

getCssFloat

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

Returns:
the style attribute

setCssFloat

public void setCssFloat(String value)
Sets the "cssFloat" style attribute.

Parameters:
value - the new attribute

getCssText

public String getCssText()
Returns the actual text of the style.

Returns:
the actual text of the style

setCssText

public void setCssText(String value)
Sets the actual text of the style.

Parameters:
value - the new text

getCursor

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

Returns:
the style attribute

setCursor

public void setCursor(String cursor)
Sets the "cursor" style attribute.

Parameters:
cursor - the new attribute

getDirection

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

Returns:
the style attribute

setDirection

public void setDirection(String direction)
Sets the "direction" style attribute.

Parameters:
direction - the new attribute

getDisplay

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

Returns:
the style attribute

setDisplay

public void setDisplay(String display)
Sets the "display" style attribute.

Parameters:
display - the new attribute

getEmptyCells

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

Returns:
the style attribute

setEmptyCells

public void setEmptyCells(String emptyCells)
Sets the "emptyCells" style attribute.

Parameters:
emptyCells - the new attribute

getFont

public String getFont()
Gets the "font" style attribute.

Returns:
the style attribute

setFont

public void setFont(String font)
Sets the "font" style attribute.

Parameters:
font - the new attribute

getFontFamily

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

Returns:
the style attribute

setFontFamily

public void setFontFamily(String fontFamily)
Sets the "fontFamily" style attribute.

Parameters:
fontFamily - the new attribute

getFontSize

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

Returns:
the style attribute

setFontSize

public void setFontSize(String fontSize)
Sets the "fontSize" style attribute.

Parameters:
fontSize - the new attribute

getFontSizeAdjust

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

Returns:
the style attribute

setFontSizeAdjust

public void setFontSizeAdjust(String fontSizeAdjust)
Sets the "fontSizeAdjust" style attribute.

Parameters:
fontSizeAdjust - the new attribute

getFontStretch

public String getFontStretch()
Gets the "fontStretch" style attribute.

Returns:
the style attribute

setFontStretch

public void setFontStretch(String fontStretch)
Sets the "fontStretch" style attribute.

Parameters:
fontStretch - the new attribute

getFontStyle

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

Returns:
the style attribute

setFontStyle

public void setFontStyle(String fontStyle)
Sets the "fontStyle" style attribute.

Parameters:
fontStyle - the new attribute

getFontVariant

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

Returns:
the style attribute

setFontVariant

public void setFontVariant(String fontVariant)
Sets the "fontVariant" style attribute.

Parameters:
fontVariant - the new attribute

getFontWeight

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

Returns:
the style attribute

setFontWeight

public void setFontWeight(String fontWeight)
Sets the "fontWeight" style attribute.

Parameters:
fontWeight - the new attribute

getHeight

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

Returns:
the style attribute

setHeight

public void setHeight(String height)
Sets the "height" style attribute.

Parameters:
height - the new attribute

getImeMode

public String getImeMode()
Gets the "imeMode" style attribute.

Returns:
the style attribute

setImeMode

public void setImeMode(String imeMode)
Sets the "imeMode" style attribute.

Parameters:
imeMode - the new attribute

getLayoutFlow

public String getLayoutFlow()
Gets the "layoutFlow" style attribute.

Returns:
the style attribute

setLayoutFlow

public void setLayoutFlow(String layoutFlow)
Sets the "layoutFlow" style attribute.

Parameters:
layoutFlow - the new attribute

getLayoutGrid

public String getLayoutGrid()
Gets the "layoutGrid" style attribute.

Returns:
the style attribute

setLayoutGrid

public void setLayoutGrid(String layoutGrid)
Sets the "layoutGrid" style attribute.

Parameters:
layoutGrid - the new attribute

getLayoutGridChar

public String getLayoutGridChar()
Gets the "layoutGridChar" style attribute.

Returns:
the style attribute

setLayoutGridChar

public void setLayoutGridChar(String layoutGridChar)
Sets the "layoutGridChar" style attribute.

Parameters:
layoutGridChar - the new attribute

getLayoutGridLine

public String getLayoutGridLine()
Gets the "layoutGridLine" style attribute.

Returns:
the style attribute

setLayoutGridLine

public void setLayoutGridLine(String layoutGridLine)
Sets the "layoutGridLine" style attribute.

Parameters:
layoutGridLine - the new attribute

getLayoutGridMode

public String getLayoutGridMode()
Gets the "layoutGridMode" style attribute.

Returns:
the style attribute

setLayoutGridMode

public void setLayoutGridMode(String layoutGridMode)
Sets the "layoutGridMode" style attribute.

Parameters:
layoutGridMode - the new attribute

getLayoutGridType

public String getLayoutGridType()
Gets the "layoutGridType" style attribute.

Returns:
the style attribute

setLayoutGridType

public void setLayoutGridType(String layoutGridType)
Sets the "layoutGridType" style attribute.

Parameters:
layoutGridType - the new attribute

getLeft

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

Returns:
the style attribute

setLeft

public void setLeft(String left)
Sets the "left" style attribute.

Parameters:
left - the new attribute

getLength

public int getLength()
Gets the "length", not yet implemented.

Returns:
the length

getLetterSpacing

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

Returns:
the style attribute

setLetterSpacing

public void setLetterSpacing(String letterSpacing)
Sets the "letterSpacing" style attribute.

Parameters:
letterSpacing - the new attribute

getLineBreak

public String getLineBreak()
Gets the "lineBreak" style attribute.

Returns:
the style attribute

setLineBreak

public void setLineBreak(String lineBreak)
Sets the "lineBreak" style attribute.

Parameters:
lineBreak - the new attribute

getListStyle

public String getListStyle()
Gets the "listStyle" style attribute.

Returns:
the style attribute

setListStyle

public void setListStyle(String listStyle)
Sets the "listStyle" style attribute.

Parameters:
listStyle - the new attribute

getListStyleImage

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

Returns:
the style attribute

setListStyleImage

public void setListStyleImage(String listStyleImage)
Sets the "listStyleImage" style attribute.

Parameters:
listStyleImage - the new attribute

getListStylePosition

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

Returns:
the style attribute

setListStylePosition

public void setListStylePosition(String listStylePosition)
Sets the "listStylePosition" style attribute.

Parameters:
listStylePosition - the new attribute

getListStyleType

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

Returns:
the style attribute

setListStyleType

public void setListStyleType(String listStyleType)
Sets the "listStyleType" style attribute.

Parameters:
listStyleType - the new attribute

getMargin

public String getMargin()
Gets the "margin" style attribute.

Returns:
the style attribute

setMargin

public void setMargin(String margin)
Sets the "margin" style attribute.

Parameters:
margin - the new attribute

getMarginBottom

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

Returns:
the style attribute

setMarginBottom

public void setMarginBottom(String marginBottom)
Sets the "marginBottom" style attribute.

Parameters:
marginBottom - the new attribute

getMarginLeft

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

Returns:
the style attribute

setMarginLeft

public void setMarginLeft(String marginLeft)
Sets the "marginLeft" style attribute.

Parameters:
marginLeft - the new attribute

getMarginRight

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

Returns:
the style attribute

setMarginRight

public void setMarginRight(String marginRight)
Sets the "marginRight" style attribute.

Parameters:
marginRight - the new attribute

getMarginTop

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

Returns:
the style attribute

setMarginTop

public void setMarginTop(String marginTop)
Sets the "marginTop" style attribute.

Parameters:
marginTop - the new attribute

getMarkerOffset

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

Returns:
the style attribute

setMarkerOffset

public void setMarkerOffset(String markerOffset)
Sets the "markerOffset" style attribute.

Parameters:
markerOffset - the new attribute

getMarks

public String getMarks()
Gets the "marks" style attribute.

Returns:
the style attribute

setMarks

public void setMarks(String marks)
Sets the "marks" style attribute.

Parameters:
marks - the new attribute

getMaxHeight

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

Returns:
the style attribute

setMaxHeight

public void setMaxHeight(String maxHeight)
Sets the "maxHeight" style attribute.

Parameters:
maxHeight - the new attribute

getMaxWidth

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

Returns:
the style attribute

setMaxWidth

public void setMaxWidth(String maxWidth)
Sets the "maxWidth" style attribute.

Parameters:
maxWidth - the new attribute

getMinHeight

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

Returns:
the style attribute

setMinHeight

public void setMinHeight(String minHeight)
Sets the "minHeight" style attribute.

Parameters:
minHeight - the new attribute

getMinWidth

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

Returns:
the style attribute

setMinWidth

public void setMinWidth(String minWidth)
Sets the "minWidth" style attribute.

Parameters:
minWidth - the new attribute

get

public Object get(String name,
                  net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
Description copied from class: SimpleScriptable
Gets a named property from the object. Normally HtmlUnit objects don't need to overwrite this method as properties are defined on the prototypes from the XML configuration. In some cases where "content" of object has priority compared to the properties consider using utility SimpleScriptable.getWithPreemption(String). For fallback case just implement ScriptableWithFallbackGetter.

Specified by:
get in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
Overrides:
get in class SimpleScriptable

getStyleAttributeValue

protected String getStyleAttributeValue(StyleAttributes.Definition style)
Get the value for the style attribute.

Parameters:
style - the style
Returns:
the value

put

public void put(String name,
                net.sourceforge.htmlunit.corejs.javascript.Scriptable start,
                Object value)
Specified by:
put in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
Overrides:
put in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject

has

public boolean has(String name,
                   net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
Specified by:
has in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
Overrides:
has in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject

getIds

public Object[] getIds()
Specified by:
getIds in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
Overrides:
getIds in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject

getMsBlockProgression

public String getMsBlockProgression()
Gets the "msBlockProgression" style attribute.

Returns:
the style attribute

setMsBlockProgression

public void setMsBlockProgression(String msBlockProgression)
Sets the "msBlockProgression" style attribute.

Parameters:
msBlockProgression - the new attribute

getMsInterpolationMode

public String getMsInterpolationMode()
Gets the "msInterpolationMode" style attribute.

Returns:
the style attribute

setMsInterpolationMode

public void setMsInterpolationMode(String msInterpolationMode)
Sets the "msInterpolationMode" style attribute.

Parameters:
msInterpolationMode - the new attribute

getOpacity

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

Returns:
the style attribute

setOpacity

public void setOpacity(String opacity)
Sets the "opacity" style attribute.

Parameters:
opacity - the new attribute

getOrphans

public String getOrphans()
Gets the "orphans" style attribute.

Returns:
the style attribute

setOrphans

public void setOrphans(String orphans)
Sets the "orphans" style attribute.

Parameters:
orphans - the new attribute

getOutline

public String getOutline()
Gets the "outline" style attribute.

Returns:
the style attribute

setOutline

public void setOutline(String outline)
Sets the "outline" style attribute.

Parameters:
outline - the new attribute

getOutlineColor

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

Returns:
the style attribute

setOutlineColor

public void setOutlineColor(String outlineColor)
Sets the "outlineColor" style attribute.

Parameters:
outlineColor - the new attribute

getOutlineOffset

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

Returns:
the style attribute

setOutlineOffset

public void setOutlineOffset(String outlineOffset)
Sets the "outlineOffset" style attribute.

Parameters:
outlineOffset - the new attribute

getOutlineStyle

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

Returns:
the style attribute

setOutlineStyle

public void setOutlineStyle(String outlineStyle)
Sets the "outlineStyle" style attribute.

Parameters:
outlineStyle - the new attribute

getOutlineWidth

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

Returns:
the style attribute

setOutlineWidth

public void setOutlineWidth(String outlineWidth)
Sets the "outlineWidth" style attribute.

Parameters:
outlineWidth - the new attribute

getOverflow

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

Returns:
the style attribute

setOverflow

public void setOverflow(String overflow)
Sets the "overflow" style attribute.

Parameters:
overflow - the new attribute

getOverflowX

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

Returns:
the style attribute

setOverflowX

public void setOverflowX(String overflowX)
Sets the "overflowX" style attribute.

Parameters:
overflowX - the new attribute

getOverflowY

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

Returns:
the style attribute

setOverflowY

public void setOverflowY(String overflowY)
Sets the "overflowY" style attribute.

Parameters:
overflowY - the new attribute

getPadding

public String getPadding()
Gets the "padding" style attribute.

Returns:
the style attribute

setPadding

public void setPadding(String padding)
Sets the "padding" style attribute.

Parameters:
padding - the new attribute

getPaddingBottom

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

Returns:
the style attribute

setPaddingBottom

public void setPaddingBottom(String paddingBottom)
Sets the "paddingBottom" style attribute.

Parameters:
paddingBottom - the new attribute

getPaddingLeft

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

Returns:
the style attribute

setPaddingLeft

public void setPaddingLeft(String paddingLeft)
Sets the "paddingLeft" style attribute.

Parameters:
paddingLeft - the new attribute

getPaddingRight

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

Returns:
the style attribute

setPaddingRight

public void setPaddingRight(String paddingRight)
Sets the "paddingRight" style attribute.

Parameters:
paddingRight - the new attribute

getPaddingTop

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

Returns:
the style attribute

setPaddingTop

public void setPaddingTop(String paddingTop)
Sets the "paddingTop" style attribute.

Parameters:
paddingTop - the new attribute

getPage

public String getPage()
Gets the "page" style attribute.

Returns:
the style attribute

setPage

public void setPage(String page)
Sets the "page" style attribute.

Parameters:
page - the new attribute

getPageBreakAfter

public String getPageBreakAfter()
Gets the "pageBreakAfter" style attribute.

Returns:
the style attribute

setPageBreakAfter

public void setPageBreakAfter(String pageBreakAfter)
Sets the "pageBreakAfter" style attribute.

Parameters:
pageBreakAfter - the new attribute

getPageBreakBefore

public String getPageBreakBefore()
Gets the "pageBreakBefore" style attribute.

Returns:
the style attribute

setPageBreakBefore

public void setPageBreakBefore(String pageBreakBefore)
Sets the "pageBreakBefore" style attribute.

Parameters:
pageBreakBefore - the new attribute

getPageBreakInside

public String getPageBreakInside()
Gets the "pageBreakInside" style attribute.

Returns:
the style attribute

setPageBreakInside

public void setPageBreakInside(String pageBreakInside)
Sets the "pageBreakInside" style attribute.

Parameters:
pageBreakInside - the new attribute

getPointerEvents

public String getPointerEvents()
Gets the "pointerEvents" style attribute.

Returns:
the style attribute

setPointerEvents

public void setPointerEvents(String pointerEvents)
Sets the "pointerEvents" style attribute.

Parameters:
pointerEvents - the new attribute

getPixelBottom

public int getPixelBottom()
Gets the "pixelBottom" style attribute.

Returns:
the style attribute

setPixelBottom

public void setPixelBottom(int pixelBottom)
Sets the "pixelBottom" style attribute.

Parameters:
pixelBottom - the new attribute

getPixelLeft

public int getPixelLeft()
Gets the "pixelLeft" style attribute.

Returns:
the style attribute

setPixelLeft

public void setPixelLeft(int pixelLeft)
Sets the "pixelLeft" style attribute.

Parameters:
pixelLeft - the new attribute

getPixelRight

public int getPixelRight()
Gets the "pixelRight" style attribute.

Returns:
the style attribute

setPixelRight

public void setPixelRight(int pixelRight)
Sets the "pixelRight" style attribute.

Parameters:
pixelRight - the new attribute

getPixelTop

public int getPixelTop()
Gets the "pixelTop" style attribute.

Returns:
the style attribute

setPixelTop

public void setPixelTop(int pixelTop)
Sets the "pixelTop" style attribute.

Parameters:
pixelTop - the new attribute

getPosBottom

public int getPosBottom()
Gets the "posBottom" style attribute.

Returns:
the style attribute

setPosBottom

public void setPosBottom(int posBottom)
Sets the "posBottom" style attribute.

Parameters:
posBottom - the new attribute

getPosHeight

public int getPosHeight()
Gets the "posHeight" style attribute.

Returns:
the style attribute

setPosHeight

public void setPosHeight(int posHeight)
Sets the "posHeight" style attribute.

Parameters:
posHeight - the new attribute

getPosition

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

Returns:
the style attribute

setPosition

public void setPosition(String position)
Sets the "position" style attribute.

Parameters:
position - the new attribute

getPosLeft

public int getPosLeft()
Gets the "posLeft" style attribute.

Returns:
the style attribute

setPosLeft

public void setPosLeft(int posLeft)
Sets the "posLeft" style attribute.

Parameters:
posLeft - the new attribute

getPosRight

public int getPosRight()
Gets the "posRight" style attribute.

Returns:
the style attribute

setPosRight

public void setPosRight(int posRight)
Sets the "posRight" style attribute.

Parameters:
posRight - the new attribute

getPosTop

public int getPosTop()
Gets the "posTop" style attribute.

Returns:
the style attribute

setPosTop

public void setPosTop(int posTop)
Sets the "posTop" style attribute.

Parameters:
posTop - the new attribute

getPosWidth

public int getPosWidth()
Gets the "posWidth" style attribute.

Returns:
the style attribute

setPosWidth

public void setPosWidth(int posWidth)
Sets the "posWidth" style attribute.

Parameters:
posWidth - the new attribute

getRight

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

Returns:
the style attribute

setRight

public void setRight(String right)
Sets the "right" style attribute.

Parameters:
right - the new attribute

getRubyAlign

public String getRubyAlign()
Gets the "rubyAlign" style attribute.

Returns:
the style attribute

setRubyAlign

public void setRubyAlign(String rubyAlign)
Sets the "rubyAlign" style attribute.

Parameters:
rubyAlign - the new attribute

getRubyOverhang

public String getRubyOverhang()
Gets the "rubyOverhang" style attribute.

Returns:
the style attribute

setRubyOverhang

public void setRubyOverhang(String rubyOverhang)
Sets the "rubyOverhang" style attribute.

Parameters:
rubyOverhang - the new attribute

getRubyPosition

public String getRubyPosition()
Gets the "rubyPosition" style attribute.

Returns:
the style attribute

setRubyPosition

public void setRubyPosition(String rubyPosition)
Sets the "rubyPosition" style attribute.

Parameters:
rubyPosition - the new attribute

getScrollbar3dLightColor

public String getScrollbar3dLightColor()
Gets the "scrollbar3dLightColor" style attribute.

Returns:
the style attribute

setScrollbar3dLightColor

public void setScrollbar3dLightColor(String scrollbar3dLightColor)
Sets the "scrollbar3dLightColor" style attribute.

Parameters:
scrollbar3dLightColor - the new attribute

getScrollbarArrowColor

public String getScrollbarArrowColor()
Gets the "scrollbarArrowColor" style attribute.

Returns:
the style attribute

setScrollbarArrowColor

public void setScrollbarArrowColor(String scrollbarArrowColor)
Sets the "scrollbarArrowColor" style attribute.

Parameters:
scrollbarArrowColor - the new attribute

getScrollbarBaseColor

public String getScrollbarBaseColor()
Gets the "scrollbarBaseColor" style attribute.

Returns:
the style attribute

setScrollbarBaseColor

public void setScrollbarBaseColor(String scrollbarBaseColor)
Sets the "scrollbarBaseColor" style attribute.

Parameters:
scrollbarBaseColor - the new attribute

getScrollbarDarkShadowColor

public String getScrollbarDarkShadowColor()
Gets the "scrollbarDarkShadowColor" style attribute.

Returns:
the style attribute

setScrollbarDarkShadowColor

public void setScrollbarDarkShadowColor(String scrollbarDarkShadowColor)
Sets the "scrollbarDarkShadowColor" style attribute.

Parameters:
scrollbarDarkShadowColor - the new attribute

getScrollbarFaceColor

public String getScrollbarFaceColor()
Gets the "scrollbarFaceColor" style attribute.

Returns:
the style attribute

setScrollbarFaceColor

public void setScrollbarFaceColor(String scrollbarFaceColor)
Sets the "scrollbarFaceColor" style attribute.

Parameters:
scrollbarFaceColor - the new attribute

getScrollbarHighlightColor

public String getScrollbarHighlightColor()
Gets the "scrollbarHighlightColor" style attribute.

Returns:
the style attribute

setScrollbarHighlightColor

public void setScrollbarHighlightColor(String scrollbarHighlightColor)
Sets the "scrollbarHighlightColor" style attribute.

Parameters:
scrollbarHighlightColor - the new attribute

getScrollbarShadowColor

public String getScrollbarShadowColor()
Gets the "scrollbarShadowColor" style attribute.

Returns:
the style attribute

setScrollbarShadowColor

public void setScrollbarShadowColor(String scrollbarShadowColor)
Sets the "scrollbarShadowColor" style attribute.

Parameters:
scrollbarShadowColor - the new attribute

getScrollbarTrackColor

public String getScrollbarTrackColor()
Gets the "scrollbarTrackColor" style attribute.

Returns:
the style attribute

setScrollbarTrackColor

public void setScrollbarTrackColor(String scrollbarTrackColor)
Sets the "scrollbarTrackColor" style attribute.

Parameters:
scrollbarTrackColor - the new attribute

getSize

public String getSize()
Gets the "size" style attribute.

Returns:
the style attribute

setSize

public void setSize(String size)
Sets the "size" style attribute.

Parameters:
size - the new attribute

getStyleFloat

public String getStyleFloat()
Gets the "styleFloat" style attribute.

Returns:
the style attribute

setStyleFloat

public void setStyleFloat(String value)
Sets the "styleFloat" style attribute.

Parameters:
value - the new attribute

getTableLayout

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

Returns:
the style attribute

setTableLayout

public void setTableLayout(String tableLayout)
Sets the "tableLayout" style attribute.

Parameters:
tableLayout - the new attribute

getTextAlign

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

Returns:
the style attribute

setTextAlign

public void setTextAlign(String textAlign)
Sets the "textAlign" style attribute.

Parameters:
textAlign - the new attribute

getTextAlignLast

public String getTextAlignLast()
Gets the "textAlignLast" style attribute.

Returns:
the style attribute

setTextAlignLast

public void setTextAlignLast(String textAlignLast)
Sets the "textAlignLast" style attribute.

Parameters:
textAlignLast - the new attribute

getTextAutospace

public String getTextAutospace()
Gets the "textAutospace" style attribute.

Returns:
the style attribute

setTextAutospace

public void setTextAutospace(String textAutospace)
Sets the "textAutospace" style attribute.

Parameters:
textAutospace - the new attribute

getTextDecoration

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

Returns:
the style attribute

setTextDecoration

public void setTextDecoration(String textDecoration)
Sets the "textDecoration" style attribute.

Parameters:
textDecoration - the new attribute

getTextDecorationBlink

public boolean getTextDecorationBlink()
Gets the "textDecorationBlink" style attribute.

Returns:
the style attribute

setTextDecorationBlink

public void setTextDecorationBlink(boolean textDecorationBlink)
Sets the "textDecorationBlink" style attribute.

Parameters:
textDecorationBlink - the new attribute

getTextDecorationLineThrough

public boolean getTextDecorationLineThrough()
Gets the "textDecorationLineThrough" style attribute.

Returns:
the style attribute

setTextDecorationLineThrough

public void setTextDecorationLineThrough(boolean textDecorationLineThrough)
Sets the "textDecorationLineThrough" style attribute.

Parameters:
textDecorationLineThrough - the new attribute

getTextDecorationNone

public boolean getTextDecorationNone()
Gets the "textDecorationNone" style attribute.

Returns:
the style attribute

setTextDecorationNone

public void setTextDecorationNone(boolean textDecorationNone)
Sets the "textDecorationNone" style attribute.

Parameters:
textDecorationNone - the new attribute

getTextDecorationOverline

public boolean getTextDecorationOverline()
Gets the "textDecorationOverline" style attribute.

Returns:
the style attribute

setTextDecorationOverline

public void setTextDecorationOverline(boolean textDecorationOverline)
Sets the "textDecorationOverline" style attribute.

Parameters:
textDecorationOverline - the new attribute

getTextDecorationUnderline

public boolean getTextDecorationUnderline()
Gets the "textDecorationUnderline" style attribute.

Returns:
the style attribute

setTextDecorationUnderline

public void setTextDecorationUnderline(boolean textDecorationUnderline)
Sets the "textDecorationUnderline" style attribute.

Parameters:
textDecorationUnderline - the new attribute

getTextIndent

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

Returns:
the style attribute

setTextIndent

public void setTextIndent(String textIndent)
Sets the "textIndent" style attribute.

Parameters:
textIndent - the new attribute

getTextJustify

public String getTextJustify()
Gets the "textJustify" style attribute.

Returns:
the style attribute

setTextJustify

public void setTextJustify(String textJustify)
Sets the "textJustify" style attribute.

Parameters:
textJustify - the new attribute

getTextJustifyTrim

public String getTextJustifyTrim()
Gets the "textJustifyTrim" style attribute.

Returns:
the style attribute

setTextJustifyTrim

public void setTextJustifyTrim(String textJustifyTrim)
Sets the "textJustifyTrim" style attribute.

Parameters:
textJustifyTrim - the new attribute

getTextKashida

public String getTextKashida()
Gets the "textKashida" style attribute.

Returns:
the style attribute

setTextKashida

public void setTextKashida(String textKashida)
Sets the "textKashida" style attribute.

Parameters:
textKashida - the new attribute

getTextKashidaSpace

public String getTextKashidaSpace()
Gets the "textKashidaSpace" style attribute.

Returns:
the style attribute

setTextKashidaSpace

public void setTextKashidaSpace(String textKashidaSpace)
Sets the "textKashidaSpace" style attribute.

Parameters:
textKashidaSpace - the new attribute

getTextOverflow

public String getTextOverflow()
Gets the "textOverflow" style attribute.

Returns:
the style attribute

setTextOverflow

public void setTextOverflow(String textOverflow)
Sets the "textOverflow" style attribute.

Parameters:
textOverflow - the new attribute

getTextShadow

public String getTextShadow()
Gets the "textShadow" style attribute.

Returns:
the style attribute

setTextShadow

public void setTextShadow(String textShadow)
Sets the "textShadow" style attribute.

Parameters:
textShadow - the new attribute

getTextTransform

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

Returns:
the style attribute

setTextTransform

public void setTextTransform(String textTransform)
Sets the "textTransform" style attribute.

Parameters:
textTransform - the new attribute

getTextUnderlinePosition

public String getTextUnderlinePosition()
Gets the "textUnderlinePosition" style attribute.

Returns:
the style attribute

setTextUnderlinePosition

public void setTextUnderlinePosition(String textUnderlinePosition)
Sets the "textUnderlinePosition" style attribute.

Parameters:
textUnderlinePosition - the new attribute

getTop

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

Returns:
the style attribute

setTop

public void setTop(String top)
Sets the "top" style attribute.

Parameters:
top - the new attribute

getVerticalAlign

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

Returns:
the style attribute

setVerticalAlign

public void setVerticalAlign(String verticalAlign)
Sets the "verticalAlign" style attribute.

Parameters:
verticalAlign - the new attribute

getVisibility

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

Returns:
the style attribute

setVisibility

public void setVisibility(String visibility)
Sets the "visibility" style attribute.

Parameters:
visibility - the new attribute

getWhiteSpace

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

Returns:
the style attribute

setWhiteSpace

public void setWhiteSpace(String whiteSpace)
Sets the "whiteSpace" style attribute.

Parameters:
whiteSpace - the new attribute

getWidows

public String getWidows()
Gets the "widows" style attribute.

Returns:
the style attribute

setWidows

public void setWidows(String widows)
Sets the "widows" style attribute.

Parameters:
widows - the new attribute

getWidth

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

Returns:
the style attribute

setWidth

public void setWidth(String width)
Sets the "width" style attribute.

Parameters:
width - the new attribute

getWordSpacing

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

Returns:
the style attribute

setWordSpacing

public void setWordSpacing(String wordSpacing)
Sets the "wordSpacing" style attribute.

Parameters:
wordSpacing - the new attribute

getWordWrap

public String getWordWrap()
Gets the "wordWrap" style attribute.

Returns:
the style attribute

setWordWrap

public void setWordWrap(String wordWrap)
Sets the "wordWrap" style attribute.

Parameters:
wordWrap - the new attribute

getWritingMode

public String getWritingMode()
Gets the "writingMode" style attribute.

Returns:
the style attribute

setWritingMode

public void setWritingMode(String writingMode)
Sets the "writingMode" style attribute.

Parameters:
writingMode - the new attribute

getZIndex

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

Returns:
the style attribute

setZIndex

public void setZIndex(Object zIndex)
Sets the "zIndex" style attribute.

Parameters:
zIndex - the new attribute

getZoom

public String getZoom()
Gets the "zoom" style attribute.

Returns:
the style attribute

setZoom

public void setZoom(String zoom)
Sets the "zoom" style attribute.

Parameters:
zoom - the new attribute

getPropertyValue

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

Parameters:
name - the style property name
Returns:
empty string if nothing found

getPropertyCSSValue

public CSSValue getPropertyCSSValue(String name)
Gets the CSS property value.

Parameters:
name - the name of the property to retrieve
Returns:
the value

removeProperty

public String removeProperty(String name)
Removes the named property.

Parameters:
name - the name of the property to remove
Returns:
the value deleted

setExpression

public void setExpression(String propertyName,
                          String expression,
                          String language)
Sets an expression for the specified Style.

Parameters:
propertyName - Specifies the name of the property to which expression is added
expression - 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 used

removeExpression

public boolean removeExpression(String propertyName)
Removes the expression from the specified property.

Parameters:
propertyName - the name of the property from which to remove an expression
Returns:
true if the expression was successfully removed

getAttribute

public Object getAttribute(String name,
                           int flag)
Returns the value of the specified attribute, or an empty string if it does not exist. This method exists only in IE.

Parameters:
name - the name of the attribute
flag - 0 for case insensitive, 1 (default) for case sensitive
Returns:
the value of the specified attribute
See Also:
MSDN Documentation

setAttribute

public void setAttribute(String name,
                         String value,
                         Object flag)
Sets the value of the specified attribute. This method exists only in IE.

Parameters:
name - the name of the attribute
value - the value to assign to the attribute
flag - 0 for case insensitive, 1 (default) for case sensitive
See Also:
MSDN Documentation

removeAttribute

public boolean removeAttribute(String name,
                               Object flag)
Removes the specified attribute. This method exists only in IE.

Parameters:
name - the name of the attribute
flag - 0 for case insensitive, 1 (default) for case sensitive
Returns:
true if the attribute was successfully removed, false otherwise
See Also:
MSDN Documentation

toRGBColor

public static String toRGBColor(String color)
Gets the RGB equivalent of a CSS color if the provided color is recognized.

Parameters:
color - the color
Returns:
the provided color if this is not a recognized color keyword, the RGB value in the form "rgb(x, y, z)" otherwise

pixelValue

protected static int pixelValue(Element element,
                                CSSStyleDeclaration.CssValue value)
Converts the specified length CSS attribute value into an integer number of pixels. If the specified CSS attribute value is a percentage, this method uses the specified value object to recursively retrieve the base (parent) CSS attribute value.

Parameters:
element - the element for which the CSS attribute value is to be retrieved
value - the CSS attribute value which is to be retrieved
Returns:
the integer number of pixels corresponding to the specified length CSS attribute value
See Also:
pixelValue(String)

pixelValue

protected static int pixelValue(String value)
Converts the specified length string value into an integer number of pixels. This method does NOT handle percentages correctly; use #pixelValue(HTMLElement, CssValue) if you need percentage support).

Parameters:
value - the length string value to convert to an integer number of pixels
Returns:
the integer number of pixels corresponding to the specified length string value
See Also:
CSS Units, #pixelValue(HTMLElement, CssValue)

toString

public String toString()

Overrides:
toString in class Object

setStyleAttributePixel

protected void setStyleAttributePixel(String name,
                                      String value)
Sets the style attribute which should be treated as an integer in pixels.

Parameters:
name - the attribute name
value - the attribute value


Copyright © 2002–2013 Gargoyle Software Inc.. All rights reserved.