htmlunit-2.7

ft(String mozBorderRadiusBottomleft)
  {
    setStyleAttribute("MozBorderRadiusBottomleft", mozBorderRadiusBottomleft);
  }
  
  public String jsxGet_MozBorderRadiusBottomright()
  {
    return getStyleAttribute("MozBorderRadiusBottomright", true);
  }
  
  public void jsxSet_MozBorderRadiusBottomright(String mozBorderRadiusBottomright)
  {
    setStyleAttribute("MozBorderRadiusBottomright", mozBorderRadiusBottomright);
  }
  
  public String jsxGet_MozBorderRadiusTopleft()
  {
    return getStyleAttribute("MozBorderRadiusTopleft", true);
  }
  
  public void jsxSet_MozBorderRadiusTopleft(String mozBorderRadiusTopleft)
  {
    setStyleAttribute("MozBorderRadiusTopleft", mozBorderRadiusTopleft);
  }
  
  public String jsxGet_MozBorderRadiusTopright()
  {
    return getStyleAttribute("MozBorderRadiusTopright", true);
  }
  
  public void jsxSet_MozBorderRadiusTopright(String mozBorderRadiusTopright)
  {
    setStyleAttribute("MozBorderRadiusTopright", mozBorderRadiusTopright);
  }
  
  public String jsxGet_MozBorderRightColors()
  {
    return getStyleAttribute("MozBorderRightColors", true);
  }
  
  public void jsxSet_MozBorderRightColors(String mozBorderRightColors)
  {
    setStyleAttribute("MozBorderRightColors", mozBorderRightColors);
  }
  
  public String jsxGet_MozBorderTopColors()
  {
    return getStyleAttribute("MozBorderTopColors", true);
  }
  
  public void jsxSet_MozBorderTopColors(String mozBorderTopColors)
  {
    setStyleAttribute("MozBorderTopColors", mozBorderTopColors);
  }
  
  public String jsxGet_MozBoxAlign()
  {
    return getStyleAttribute("MozBoxAlign", true);
  }
  
  public void jsxSet_MozBoxAlign(String mozBoxAlign)
  {
    setStyleAttribute("MozBoxAlign", mozBoxAlign);
  }
  
  public String jsxGet_MozBoxDirection()
  {
    return getStyleAttribute("MozBoxDirection", true);
  }
  
  public void jsxSet_MozBoxDirection(String mozBoxDirection)
  {
    setStyleAttribute("MozBoxDirection", mozBoxDirection);
  }
  
  public String jsxGet_MozBoxFlex()
  {
    return getStyleAttribute("MozBoxFlex", true);
  }
  
  public void jsxSet_MozBoxFlex(String mozBoxFlex)
  {
    setStyleAttribute("MozBoxFlex", mozBoxFlex);
  }
  
  public String jsxGet_MozBoxOrdinalGroup()
  {
    return getStyleAttribute("MozBoxOrdinalGroup", true);
  }
  
  public void jsxSet_MozBoxOrdinalGroup(String mozBoxOrdinalGroup)
  {
    setStyleAttribute("MozBoxOrdinalGroup", mozBoxOrdinalGroup);
  }
  
  public String jsxGet_MozBoxOrient()
  {
    return getStyleAttribute("MozBoxOrient", true);
  }
  
  public void jsxSet_MozBoxOrient(String mozBoxOrient)
  {
    setStyleAttribute("MozBoxOrient", mozBoxOrient);
  }
  
  public String jsxGet_MozBoxPack()
  {
    return getStyleAttribute("MozBoxPack", true);
  }
  
  public void jsxSet_MozBoxPack(String mozBoxPack)
  {
    setStyleAttribute("MozBoxPack", mozBoxPack);
  }
  
  public String jsxGet_MozBoxSizing()
  {
    return getStyleAttribute("MozBoxSizing", true);
  }
  
  public void jsxSet_MozBoxSizing(String mozBoxSizing)
  {
    setStyleAttribute("MozBoxSizing", mozBoxSizing);
  }
  
  public String jsxGet_MozColumnCount()
  {
    return getStyleAttribute("MozColumnCount", true);
  }
  
  public void jsxSet_MozColumnCount(String mozColumnCount)
  {
    setStyleAttribute("MozColumnCount", mozColumnCount);
  }
  
  public String jsxGet_MozColumnGap()
  {
    return getStyleAttribute("MozColumnGap", true);
  }
  
  public void jsxSet_MozColumnGap(String mozColumnGap)
  {
    setStyleAttribute("MozColumnGap", mozColumnGap);
  }
  
  public String jsxGet_MozColumnWidth()
  {
    return getStyleAttribute("MozColumnWidth", true);
  }
  
  public void jsxSet_MozColumnWidth(String mozColumnWidth)
  {
    setStyleAttribute("MozColumnWidth", mozColumnWidth);
  }
  
  public String jsxGet_MozFloatEdge()
  {
    return getStyleAttribute("MozFloatEdge", true);
  }
  
  public void jsxSet_MozFloatEdge(String mozFloatEdge)
  {
    setStyleAttribute("MozFloatEdge", mozFloatEdge);
  }
  
  public String jsxGet_MozForceBrokenImageIcon()
  {
    return getStyleAttribute("MozForceBrokenImageIcon", true);
  }
  
  public void jsxSet_MozForceBrokenImageIcon(String mozForceBrokenImageIcon)
  {
    setStyleAttribute("MozForceBrokenImageIcon", mozForceBrokenImageIcon);
  }
  
  public String jsxGet_MozImageRegion()
  {
    return getStyleAttribute("MozImageRegion", true);
  }
  
  public void jsxSet_MozImageRegion(String mozImageRegion)
  {
    setStyleAttribute("MozImageRegion", mozImageRegion);
  }
  
  public String jsxGet_MozMarginEnd()
  {
    return getStyleAttribute("MozMarginEnd", true);
  }
  
  public void jsxSet_MozMarginEnd(String mozMarginEnd)
  {
    setStyleAttribute("MozMarginEnd", mozMarginEnd);
  }
  
  public String jsxGet_MozMarginStart()
  {
    return getStyleAttribute("MozMarginStart", true);
  }
  
  public void jsxSet_MozMarginStart(String mozMarginStart)
  {
    setStyleAttribute("MozMarginStart", mozMarginStart);
  }
  
  public String jsxGet_MozOpacity()
  {
    return getStyleAttribute("MozOpacity", true);
  }
  
  public void jsxSet_MozOpacity(String mozOpacity)
  {
    setStyleAttribute("MozOpacity", mozOpacity);
  }
  
  public String jsxGet_MozOutline()
  {
    return getStyleAttribute("MozOutline", true);
  }
  
  public void jsxSet_MozOutline(String mozOutline)
  {
    setStyleAttribute("MozOutline", mozOutline);
  }
  
  public String jsxGet_MozOutlineColor()
  {
    return getStyleAttribute("MozOutlineColor", true);
  }
  
  public void jsxSet_MozOutlineColor(String mozOutlineColor)
  {
    setStyleAttribute("MozOutlineColor", mozOutlineColor);
  }
  
  public String jsxGet_MozOutlineOffset()
  {
    return getStyleAttribute("MozOutlineOffset", true);
  }
  
  public void jsxSet_MozOutlineOffset(String mozOutlineOffset)
  {
    setStyleAttribute("MozOutlineOffset", mozOutlineOffset);
  }
  
  public String jsxGet_MozOutlineRadius()
  {
    return getStyleAttribute("MozOutlineRadius", true);
  }
  
  public void jsxSet_MozOutlineRadius(String mozOutlineRadius)
  {
    setStyleAttribute("MozOutlineRadius", mozOutlineRadius);
  }
  
  public String jsxGet_MozOutlineRadiusBottomleft()
  {
    return getStyleAttribute("MozOutlineRadiusBottomleft", true);
  }
  
  public void jsxSet_MozOutlineRadiusBottomleft(String mozOutlineRadiusBottomleft)
  {
    setStyleAttribute("MozOutlineRadiusBottomleft", mozOutlineRadiusBottomleft);
  }
  
  public String jsxGet_MozOutlineRadiusBottomright()
  {
    return getStyleAttribute("MozOutlineRadiusBottomright", true);
  }
  
  public void jsxSet_MozOutlineRadiusBottomright(String mozOutlineRadiusBottomright)
  {
    setStyleAttribute("MozOutlineRadiusBottomright", mozOutlineRadiusBottomright);
  }
  
  public String jsxGet_MozOutlineRadiusTopleft()
  {
    return getStyleAttribute("MozOutlineRadiusTopleft", true);
  }
  
  public void jsxSet_MozOutlineRadiusTopleft(String mozOutlineRadiusTopleft)
  {
    setStyleAttribute("MozOutlineRadiusTopleft", mozOutlineRadiusTopleft);
  }
  
  public String jsxGet_MozOutlineRadiusTopright()
  {
    return getStyleAttribute("MozOutlineRadiusTopright", true);
  }
  
  public void jsxSet_MozOutlineRadiusTopright(String mozOutlineRadiusTopright)
  {
    setStyleAttribute("MozOutlineRadiusTopright", mozOutlineRadiusTopright);
  }
  
  public String jsxGet_MozOutlineStyle()
  {
    return getStyleAttribute("MozOutlineStyle", true);
  }
  
  public void jsxSet_MozOutlineStyle(String mozOutlineStyle)
  {
    setStyleAttribute("MozOutlineStyle", mozOutlineStyle);
  }
  
  public String jsxGet_MozOutlineWidth()
  {
    return getStyleAttribute("MozOutlineWidth", true);
  }
  
  public void jsxSet_MozOutlineWidth(String mozOutlineWidth)
  {
    setStyleAttribute("MozOutlineWidth", mozOutlineWidth);
  }
  
  public String jsxGet_MozPaddingEnd()
  {
    return getStyleAttribute("MozPaddingEnd", true);
  }
  
  public void jsxSet_MozPaddingEnd(String mozPaddingEnd)
  {
    setStyleAttribute("MozPaddingEnd", mozPaddingEnd);
  }
  
  public String jsxGet_MozPaddingStart()
  {
    return getStyleAttribute("MozPaddingStart", true);
  }
  
  public void jsxSet_MozPaddingStart(String mozPaddingStart)
  {
    setStyleAttribute("MozPaddingStart", mozPaddingStart);
  }
  
  public String jsxGet_MozUserFocus()
  {
    return getStyleAttribute("MozUserFocus", true);
  }
  
  public void jsxSet_MozUserFocus(String mozUserFocus)
  {
    setStyleAttribute("MozUserFocus", mozUserFocus);
  }
  
  public String jsxGet_MozUserInput()
  {
    return getStyleAttribute("MozUserInput", true);
  }
  
  public void jsxSet_MozUserInput(String mozUserInput)
  {
    setStyleAttribute("MozUserInput", mozUserInput);
  }
  
  public String jsxGet_MozUserModify()
  {
    return getStyleAttribute("MozUserModify", true);
  }
  
  public void jsxSet_MozUserModify(String mozUserModify)
  {
    setStyleAttribute("MozUserModify", mozUserModify);
  }
  
  public String jsxGet_MozUserSelect()
  {
    return getStyleAttribute("MozUserSelect", true);
  }
  
  public void jsxSet_MozUserSelect(String mozUserSelect)
  {
    setStyleAttribute("MozUserSelect", mozUserSelect);
  }
  
  public String jsxGet_msInterpolationMode()
  {
    return getStyleAttribute("msInterpolationMode", true);
  }
  
  public void jsxSet_msInterpolationMode(String msInterpolationMode)
  {
    setStyleAttribute("msInterpolationMode", msInterpolationMode);
  }
  
  public String jsxGet_opacity()
  {
    return getStyleAttribute("opacity", true);
  }
  
  public void jsxSet_opacity(String opacity)
  {
    if (getBrowserVersion().isIE()) {
      setStyleAttribute("opacity", opacity);
    } else if ((com.gargoylesoftware.htmlunit.util.StringUtils.isFloat(opacity, true)) || (opacity.length() == 0)) {
      setStyleAttribute("opacity", opacity.trim());
    }
  }
  
  public String jsxGet_orphans()
  {
    return getStyleAttribute("orphans", true);
  }
  
  public void jsxSet_orphans(String orphans)
  {
    setStyleAttribute("orphans", orphans);
  }
  
  public String jsxGet_outline()
  {
    return getStyleAttribute("outline", true);
  }
  
  public void jsxSet_outline(String outline)
  {
    setStyleAttribute("outline", outline);
  }
  
  public String jsxGet_outlineColor()
  {
    return getStyleAttribute("outlineColor", true);
  }
  
  public void jsxSet_outlineColor(String outlineColor)
  {
    setStyleAttribute("outlineColor", outlineColor);
  }
  
  public String jsxGet_outlineOffset()
  {
    return getStyleAttribute("outlineOffset", true);
  }
  
  public void jsxSet_outlineOffset(String outlineOffset)
  {
    setStyleAttribute("outlineOffset", outlineOffset);
  }
  
  public String jsxGet_outlineStyle()
  {
    return getStyleAttribute("outlineStyle", true);
  }
  
  public void jsxSet_outlineStyle(String outlineStyle)
  {
    setStyleAttribute("outlineStyle", outlineStyle);
  }
  
  public String jsxGet_outlineWidth()
  {
    return getStyleAttribute("outlineWidth", true);
  }
  
  public void jsxSet_outlineWidth(String outlineWidth)
  {
    setStyleAttributePixelInt("outlineWidth", outlineWidth);
  }
  
  public String jsxGet_overflow()
  {
    return getStyleAttribute("overflow", true);
  }
  
  public void jsxSet_overflow(String overflow)
  {
    setStyleAttribute("overflow", overflow);
  }
  
  public String jsxGet_overflowX()
  {
    return getStyleAttribute("overflowX", true);
  }
  
  public void jsxSet_overflowX(String overflowX)
  {
    setStyleAttribute("overflowX", overflowX);
  }
  
  public String jsxGet_overflowY()
  {
    return getStyleAttribute("overflowY", true);
  }
  
  public void jsxSet_overflowY(String overflowY)
  {
    setStyleAttribute("overflowY", overflowY);
  }
  
  public String jsxGet_padding()
  {
    return getStyleAttribute("padding", true);
  }
  
  public void jsxSet_padding(String padding)
  {
    setStyleAttribute("padding", padding);
  }
  
  public String jsxGet_paddingBottom()
  {
    return getStyleAttribute("paddingBottom", "padding", Shorthand.BOTTOM, true);
  }
  
  public void jsxSet_paddingBottom(String paddingBottom)
  {
    setStyleAttributePixelInt("paddingBottom", paddingBottom);
  }
  
  public String jsxGet_paddingLeft()
  {
    return getStyleAttribute("paddingLeft", "padding", Shorthand.LEFT, true);
  }
  
  public void jsxSet_paddingLeft(String paddingLeft)
  {
    setStyleAttributePixelInt("paddingLeft", paddingLeft);
  }
  
  public String jsxGet_paddingRight()
  {
    return getStyleAttribute("paddingRight", "padding", Shorthand.RIGHT, true);
  }
  
  public void jsxSet_paddingRight(String paddingRight)
  {
    setStyleAttributePixelInt("paddingRight", paddingRight);
  }
  
  public String jsxGet_paddingTop()
  {
    return getStyleAttribute("paddingTop", "padding", Shorthand.TOP, true);
  }
  
  public void jsxSet_paddingTop(String paddingTop)
  {
    setStyleAttributePixelInt("paddingTop", paddingTop);
  }
  
  public String jsxGet_page()
  {
    return getStyleAttribute("page", true);
  }
  
  public void jsxSet_page(String page)
  {
    setStyleAttribute("page", page);
  }
  
  public String jsxGet_pageBreakAfter()
  {
    return getStyleAttribute("pageBreakAfter", true);
  }
  
  public void jsxSet_pageBreakAfter(String pageBreakAfter)
  {
    setStyleAttribute("pageBreakAfter", pageBreakAfter);
  }
  
  public String jsxGet_pageBreakBefore()
  {
    return getStyleAttribute("pageBreakBefore", true);
  }
  
  public void jsxSet_pageBreakBefore(String pageBreakBefore)
  {
    setStyleAttribute("pageBreakBefore", pageBreakBefore);
  }
  
  public String jsxGet_pageBreakInside()
  {
    return getStyleAttribute("pageBreakInside", true);
  }
  
  public void jsxSet_pageBreakInside(String pageBreakInside)
  {
    setStyleAttribute("pageBreakInside", pageBreakInside);
  }
  
  public String jsxGet_pause()
  {
    return getStyleAttribute("pause", true);
  }
  
  public void jsxSet_pause(String pause)
  {
    setStyleAttribute("pause", pause);
  }
  
  public String jsxGet_pauseAfter()
  {
    return getStyleAttribute("pauseAfter", true);
  }
  
  public void jsxSet_pauseAfter(String pauseAfter)
  {
    setStyleAttribute("pauseAfter", pauseAfter);
  }
  
  public String jsxGet_pauseBefore()
  {
    return getStyleAttribute("pauseBefore", true);
  }
  
  public void jsxSet_pauseBefore(String pauseBefore)
  {
    setStyleAttribute("pauseBefore", pauseBefore);
  }
  
  public String jsxGet_pitch()
  {
    return getStyleAttribute("pitch", true);
  }
  
  public void jsxSet_pitch(String pitch)
  {
    setStyleAttribute("pitch", pitch);
  }
  
  public String jsxGet_pitchRange()
  {
    return getStyleAttribute("pitchRange", true);
  }
  
  public void jsxSet_pitchRange(String pitchRange)
  {
    setStyleAttribute("pitchRange", pitchRange);
  }
  
  public int jsxGet_pixelBottom()
  {
    return pixelValue(jsxGet_bottom());
  }
  
  public void jsxSet_pixelBottom(int pixelBottom)
  {
    jsxSet_bottom(pixelBottom + "px");
  }
  
  public int jsxGet_pixelLeft()
  {
    return pixelValue(jsxGet_left());
  }
  
  public void jsxSet_pixelLeft(int pixelLeft)
  {
    jsxSet_left(pixelLeft + "px");
  }
  
  public int jsxGet_pixelRight()
  {
    return pixelValue(jsxGet_right());
  }
  
  public void jsxSet_pixelRight(int pixelRight)
  {
    jsxSet_right(pixelRight + "px");
  }
  
  public int jsxGet_pixelTop()
  {
    return pixelValue(jsxGet_top());
  }
  
  public void jsxSet_pixelTop(int pixelTop)
  {
    jsxSet_top(pixelTop + "px");
  }
  
  public int jsxGet_posBottom()
  {
    return 0;
  }
  
  public int jsxGet_posHeight()
  {
    return 0;
  }
  
  public String jsxGet_position()
  {
    return getStyleAttribute("position", true);
  }
  
  public void jsxSet_position(String position)
  {
    setStyleAttribute("position", position);
  }
  
  public int jsxGet_posLeft()
  {
    return 0;
  }
  
  public int jsxGet_posRight()
  {
    return 0;
  }
  
  public int jsxGet_posTop()
  {
    return 0;
  }
  
  public int jsxGet_posWidth()
  {
    return 0;
  }
  
  public String jsxGet_quotes()
  {
    return getStyleAttribute("quotes", true);
  }
  
  public void jsxSet_quotes(String quotes)
  {
    setStyleAttribute("quotes", quotes);
  }
  
  public String jsxGet_richness()
  {
    return getStyleAttribute("richness", true);
  }
  
  public void jsxSet_richness(String richness)
  {
    setStyleAttribute("richness", richness);
  }
  
  public String jsxGet_right()
  {
    return getStyleAttribute("right", true);
  }
  
  public void jsxSet_right(String right)
  {
    setStyleAttributePixelInt("right", right);
  }
  
  public String jsxGet_rubyAlign()
  {
    return getStyleAttribute("rubyAlign", true);
  }
  
  public void jsxSet_rubyAlign(String rubyAlign)
  {
    setStyleAttribute("rubyAlign", rubyAlign);
  }
  
  public String jsxGet_rubyOverhang()
  {
    return getStyleAttribute("rubyOverhang", true);
  }
  
  public void jsxSet_rubyOverhang(String rubyOverhang)
  {
    setStyleAttribute("rubyOverhang", rubyOverhang);
  }
  
  public String jsxGet_rubyPosition()
  {
    return getStyleAttribute("rubyPosition", true);
  }
  
  public void jsxSet_rubyPosition(String rubyPosition)
  {
    setStyleAttribute("rubyPosition", rubyPosition);
  }
  
  public String jsxGet_scrollbar3dLightColor()
  {
    return getStyleAttribute("scrollbar3dLightColor", true);
  }
  
  public void jsxSet_scrollbar3dLightColor(String scrollbar3dLightColor)
  {
    setStyleAttribute("scrollbar3dLightColor", scrollbar3dLightColor);
  }
  
  public String jsxGet_scrollbarArrowColor()
  {
    return getStyleAttribute("scrollbarArrowColor", true);
  }
  
  public void jsxSet_scrollbarArrowColor(String scrollbarArrowColor)
  {
    setStyleAttribute("scrollbarArrowColor", scrollbarArrowColor);
  }
  
  public String jsxGet_scrollbarBaseColor()
  {
    return getStyleAttribute("scrollbarBaseColor", true);
  }
  
  public void jsxSet_scrollbarBaseColor(String scrollbarBaseColor)
  {
    setStyleAttribute("scrollbarBaseColor", scrollbarBaseColor);
  }
  
  public String jsxGet_scrollbarDarkShadowColor()
  {
    return getStyleAttribute("scrollbarDarkShadowColor", true);
  }
  
  public void jsxSet_scrollbarDarkShadowColor(String scrollbarDarkShadowColor)
  {
    setStyleAttribute("scrollbarDarkShadowColor", scrollbarDarkShadowColor);
  }
  
  public String jsxGet_scrollbarFaceColor()
  {
    return getStyleAttribute("scrollbarFaceColor", true);
  }
  
  public void jsxSet_scrollbarFaceColor(String scrollbarFaceColor)
  {
    setStyleAttribute("scrollbarFaceColor", scrollbarFaceColor);
  }
  
  public String jsxGet_scrollbarHighlightColor()
  {
    return getStyleAttribute("scrollbarHighlightColor", true);
  }
  
  public void jsxSet_scrollbarHighlightColor(String scrollbarHighlightColor)
  {
    setStyleAttribute("scrollbarHighlightColor", scrollbarHighlightColor);
  }
  
  public String jsxGet_scrollbarShadowColor()
  {
    return getStyleAttribute("scrollbarShadowColor", true);
  }
  
  public void jsxSet_scrollbarShadowColor(String scrollbarShadowColor)
  {
    setStyleAttribute("scrollbarShadowColor", scrollbarShadowColor);
  }
  
  public String jsxGet_scrollbarTrackColor()
  {
    return getStyleAttribute("scrollbarTrackColor", true);
  }
  
  public void jsxSet_scrollbarTrackColor(String scrollbarTrackColor)
  {
    setStyleAttribute("scrollbarTrackColor", scrollbarTrackColor);
  }
  
  public String jsxGet_size()
  {
    return getStyleAttribute("size", true);
  }
  
  public void jsxSet_size(String size)
  {
    setStyleAttribute("size", size);
  }
  
  public String jsxGet_speak()
  {
    return getStyleAttribute("speak", true);
  }
  
  public void jsxSet_speak(String speak)
  {
    setStyleAttribute("speak", speak);
  }
  
  public String jsxGet_speakHeader()
  {
    return getStyleAttribute("speakHeader", true);
  }
  
  public void jsxSet_speakHeader(String speakHeader)
  {
    setStyleAttribute("speakHeader", speakHeader);
  }
  
  public String jsxGet_speakNumeral()
  {
    return getStyleAttribute("speakNumeral", true);
  }
  
  public void jsxSet_speakNumeral(String speakNumeral)
  {
    setStyleAttribute("speakNumeral", speakNumeral);
  }
  
  public String jsxGet_speakPunctuation()
  {
    return getStyleAttribute("speakPunctuation", true);
  }
  
  public void jsxSet_speakPunctuation(String speakPunctuation)
  {
    setStyleAttribute("speakPunctuation", speakPunctuation);
  }
  
  public String jsxGet_speechRate()
  {
    return getStyleAttribute("speechRate", true);
  }
  
  public void jsxSet_speechRate(String speechRate)
  {
    setStyleAttribute("speechRate", speechRate);
  }
  
  public String jsxGet_stress()
  {
    return getStyleAttribute("stress", true);
  }
  
  public void jsxSet_stress(String stress)
  {
    setStyleAttribute("stress", stress);
  }
  
  public String jsxGet_styleFloat()
  {
    return getStyleAttribute("float", true);
  }
  
  public void jsxSet_styleFloat(String value)
  {
    setStyleAttribute("float", value);
  }
  
  public String jsxGet_tableLayout()
  {
    return getStyleAttribute("tableLayout", true);
  }
  
  public void jsxSet_tableLayout(String tableLayout)
  {
    setStyleAttribute("tableLayout", tableLayout);
  }
  
  public String jsxGet_textAlign()
  {
    return getStyleAttribute("textAlign", true);
  }
  
  public void jsxSet_textAlign(String textAlign)
  {
    setStyleAttribute("textAlign", textAlign);
  }
  
  public String jsxGet_textAlignLast()
  {
    return getStyleAttribute("textAlignLast", true);
  }
  
  public void jsxSet_textAlignLast(String textAlignLast)
  {
    setStyleAttribute("textAlignLast", textAlignLast);
  }
  
  public String jsxGet_textAutospace()
  {
    return getStyleAttribute("textAutospace", true);
  }
  
  public void jsxSet_textAutospace(String textAutospace)
  {
    setStyleAttribute("textAutospace", textAutospace);
  }
  
  public String jsxGet_textDecoration()
  {
    return getStyleAttribute("textDecoration", true);
  }
  
  public void jsxSet_textDecoration(String textDecoration)
  {
    setStyleAttribute("textDecoration", textDecoration);
  }
  
  public boolean jsxGet_textDecorationBlink()
  {
    return false;
  }
  
  public boolean jsxGet_textDecorationLineThrough()
  {
    return false;
  }
  
  public boolean jsxGet_textDecorationNone()
  {
    return false;
  }
  
  public boolean jsxGet_textDecorationOverline()
  {
    return false;
  }
  
  public boolean jsxGet_textDecorationUnderline()
  {
    return false;
  }
  
  public String jsxGet_textIndent()
  {
    return getStyleAttribute("textIndent", true);
  }
  
  public void jsxSet_textIndent(String textIndent)
  {
    setStyleAttributePixelInt("textIndent", textIndent);
  }
  
  public String jsxGet_textJustify()
  {
    return getStyleAttribute("textJustify", true);
  }
  
  public void jsxSet_textJustify(String textJustify)
  {
    setStyleAttribute("textJustify", textJustify);
  }
  
  public String jsxGet_textJustifyTrim()
  {
    return getStyleAttribute("textJustifyTrim", true);
  }
  
  public void jsxSet_textJustifyTrim(String textJustifyTrim)
  {
    setStyleAttribute("textJustifyTrim", textJustifyTrim);
  }
  
  public String jsxGet_textKashida()
  {
    return getStyleAttribute("textKashida", true);
  }
  
  public void jsxSet_textKashida(String textKashida)
  {
    setStyleAttribute("textKashida", textKashida);
  }
  
  public String jsxGet_textKashidaSpace()
  {
    return getStyleAttribute("textKashidaSpace", true);
  }
  
  public void jsxSet_textKashidaSpace(String textKashidaSpace)
  {
    setStyleAttribute("textKashidaSpace", textKashidaSpace);
  }
  
  public String jsxGet_textOverflow()
  {
    return getStyleAttribute("textOverflow", true);
  }
  
  public void jsxSet_textOverflow(String textOverflow)
  {
    setStyleAttribute("textOverflow", textOverflow);
  }
  
  public String jsxGet_textShadow()
  {
    return getStyleAttribute("textShadow", true);
  }
  
  public void jsxSet_textShadow(String textShadow)
  {
    setStyleAttribute("textShadow", textShadow);
  }
  
  public String jsxGet_textTransform()
  {
    return getStyleAttribute("textTransform", true);
  }
  
  public void jsxSet_textTransform(String textTransform)
  {
    setStyleAttribute("textTransform", textTransform);
  }
  
  public String jsxGet_textUnderlinePosition()
  {
    return getStyleAttribute("textUnderlinePosition", true);
  }
  
  public void jsxSet_textUnderlinePosition(String textUnderlinePosition)
  {
    setStyleAttribute("textUnderlinePosition", textUnderlinePosition);
  }
  
  public String jsxGet_top()
  {
    return getStyleAttribute("top", true);
  }
  
  public void jsxSet_top(String top)
  {
    setStyleAttributePixelInt("top", top);
  }
  
  public String jsxGet_unicodeBidi()
  {
    return getStyleAttribute("unicodeBidi", true);
  }
  
  public void jsxSet_unicodeBidi(String unicodeBidi)
  {
    setStyleAttribute("unicodeBidi", unicodeBidi);
  }
  
  public String jsxGet_verticalAlign()
  {
    return getStyleAttribute("verticalAlign", true);
  }
  
  public void jsxSet_verticalAlign(String verticalAlign)
  {
    setStyleAttributePixelInt("verticalAlign", verticalAlign);
  }
  
  public String jsxGet_visibility()
  {
    return getStyleAttribute("visibility", true);
  }
  
  public void jsxSet_visibility(String visibility)
  {
    setStyleAttribute("visibility", visibility);
  }
  
  public String jsxGet_voiceFamily()
  {
    return getStyleAttribute("voiceFamily", true);
  }
  
  public void jsxSet_voiceFamily(String voiceFamily)
  {
    setStyleAttribute("voiceFamily", voiceFamily);
  }
  
  public String jsxGet_volume()
  {
    return getStyleAttribute("volume", true);
  }
  
  public void jsxSet_volume(String volume)
  {
    setStyleAttribute("volume", volume);
  }
  
  public String jsxGet_whiteSpace()
  {
    return getStyleAttribute("whiteSpace", true);
  }
  
  public void jsxSet_whiteSpace(String whiteSpace)
  {
    setStyleAttribute("whiteSpace", whiteSpace);
  }
  
  public String jsxGet_widows()
  {
    return getStyleAttribute("widows", true);
  }
  
  public void jsxSet_widows(String widows)
  {
    setStyleAttribute("widows", widows);
  }
  
  public String jsxGet_width()
  {
    return getStyleAttribute("width", true);
  }
  
  public void jsxSet_width(String width)
  {
    setStyleAttributePixelInt("width", width);
  }
  
  public String jsxGet_wordBreak()
  {
    return getStyleAttribute("wordBreak", true);
  }
  
  public void jsxSet_wordBreak(String wordBreak)
  {
    setStyleAttribute("wordBreak", wordBreak);
  }
  
  public String jsxGet_wordSpacing()
  {
    return getStyleAttribute("wordSpacing", true);
  }
  
  public void jsxSet_wordSpacing(String wordSpacing)
  {
    setStyleAttributePixelInt("wordSpacing", wordSpacing);
  }
  
  public String jsxGet_wordWrap()
  {
    return getStyleAttribute("wordWrap", true);
  }
  
  public void jsxSet_wordWrap(String wordWrap)
  {
    setStyleAttribute("wordWrap", wordWrap);
  }
  
  public String jsxGet_writingMode()
  {
    return getStyleAttribute("writingMode", true);
  }
  
  public void jsxSet_writingMode(String writingMode)
  {
    setStyleAttribute("writingMode", writingMode);
  }
  
  public Object jsxGet_zIndex()
  {
    String value = getStyleAttribute("zIndex", true);
    if (getBrowserVersion().isIE())
    {
      if ((value == null) || (value.length() == 0)) {
        return Integer.valueOf(0);
      }
      return Integer.valueOf(Integer.parseInt(value));
    }
    return value;
  }
  
  protected void setRoundedStyleAttribute(String name, Object value)
  {
    if ((value == null) || (value.toString().length() == 0))
    {
      setStyleAttribute(name, "0");
    }
    else
    {
      Double d;
      Double d;
      if ((value instanceof Double)) {
        d = (Double)value;
      } else {
        d = Double.valueOf(Double.parseDouble(value.toString()));
      }
      setStyleAttribute(name, Integer.valueOf(Math.round(d.floatValue())).toString());
    }
  }
  
  protected void setIntegerStyleAttribute(String name, Object value)
  {
    if ((value == null) || (value.toString().length() == 0))
    {
      setStyleAttribute(name, "0");
    }
    else
    {
      String valueString = value.toString();
      if ((value instanceof Number))
      {
        Number number = (Number)value;
        if (number.doubleValue() % 1.0D == 0.0D) {
          setStyleAttribute(name, Integer.valueOf(number.intValue()).toString());
        }
      }
      else if (valueString.indexOf('.') == -1)
      {
        setStyleAttribute(name, valueString);
      }
    }
  }
  
  public void jsxSet_zIndex(Object zIndex)
  {
    if (getBrowserVersion().isIE()) {
      setRoundedStyleAttribute("zIndex", zIndex);
    } else {
      setIntegerStyleAttribute("zIndex", zIndex);
    }
  }
  
  public String jsxGet_zoom()
  {
    return getStyleAttribute("zoom", true);
  }
  
  public void jsxSet_zoom(String zoom)
  {
    setStyleAttribute("zoom", zoom);
  }
  
  public String jsxFunction_getPropertyValue(String name)
  {
    if ((name != null) && (name.contains("-")))
    {
      Object value = getProperty(this, camelize(name));
      if ((value instanceof String)) {
        return (String)value;
      }
    }
    return getStyleAttribute(name, false);
  }
  
  public CSSValue jsxFunction_getPropertyCSSValue(String name)
  {
    LOG.info("getPropertyCSSValue(" + name + "): getPropertyCSSValue support is experimental");
    if (styleDeclaration_ == null)
    {
      String uri = getDomNodeOrDie().getPage().getWebResponse().getRequestSettings().getUrl().toExternalForm();
      
      String styleAttribute = jsElement_.getDomNodeOrDie().getAttribute("style");
      InputSource source = new InputSource(new StringReader(styleAttribute));
      source.setURI(uri);
      ErrorHandler errorHandler = getWindow().getWebWindow().getWebClient().getCssErrorHandler();
      CSSOMParser parser = new CSSOMParser(new SACParserCSS21());
      parser.setErrorHandler(errorHandler);
      try
      {
        styleDeclaration_ = parser.parseStyleDeclaration(source);
      }
      catch (IOException e)
      {
        throw new RuntimeException(e);
      }
    }
    org.w3c.dom.css.CSSValue cssValue = styleDeclaration_.getPropertyCSSValue(name);
    if (cssValue == null)
    {
      CSSValueImpl newValue = new CSSValueImpl();
      newValue.setFloatValue((short)5, 0.0F);
      cssValue = newValue;
    }
    if (cssValue.getCssText().startsWith("rgb(")) {
      cssValue.setCssText(cssValue.getCssText().replaceAll(",", ", "));
    }
    return new CSSPrimitiveValue(jsElement_, (org.w3c.dom.css.CSSPrimitiveValue)cssValue);
  }
  
  public boolean jsxFunction_removeExpression(String propertyName)
  {
    return true;
  }
  
  public Object jsxFunction_getAttribute(String name, int flag)
  {
    if (flag == 1) {
      return getStyleAttribute(name, true);
    }
    Map<String, StyleElement> map = getStyleMap(true);
    for (String key : map.keySet()) {
      if (key.equalsIgnoreCase(name)) {
        return ((StyleElement)map.get(key)).getValue();
      }
    }
    return "";
  }
  
  public void jsxFunction_setAttribute(String name, String value, Object flag)
  {
    int flagInt;
    int flagInt;
    if (flag == Undefined.instance) {
      flagInt = 1;
    } else {
      flagInt = (int)Context.toNumber(flag);
    }
    if (flagInt == 0)
    {
      Map<String, StyleElement> map = getStyleMap(true);
      for (String key : map.keySet()) {
        if (key.equalsIgnoreCase(name)) {
          setStyleAttribute(key, value);
        }
      }
    }
    else if (getStyleAttribute(name, true).length() > 0)
    {
      setStyleAttribute(name, value);
    }
  }
  
  public boolean jsxFunction_removeAttribute(String name, Object flag)
  {
    int flagInt;
    int flagInt;
    if (flag == Undefined.instance) {
      flagInt = 1;
    } else {
      flagInt = (int)Context.toNumber(flag);
    }
    if (flagInt == 0)
    {
      String lastName = null;
      Map<String, StyleElement> map = getStyleMap(true);
      for (String key : map.keySet()) {
        if (key.equalsIgnoreCase(name)) {
          lastName = key;
        }
      }
      if (lastName != null)
      {
        removeStyleAttribute(lastName);
        return true;
      }
      return false;
    }
    String s = getStyleAttribute(name, true);
    if (s.length() > 0)
    {
      removeStyleAttribute(name);
      return true;
    }
    return false;
  }
  
  private static String findColor(String text)
  {
    Pattern p = Pattern.compile("(rgb.*?\\(.*?\\d{1,3}.*?,.*?\\d{1,3}.*?,.*?\\d{1,3}.*?\\))");
    Matcher m = p.matcher(text);
    if (m.find()) {
      return m.group(1);
    }
    String[] tokens = text.split(" ");
    for (String token : tokens)
    {
      if (isColorKeyword(token)) {
        return token;
      }
      if (isColorHexadecimal(token)) {
        return token;
      }
    }
    return null;
  }
  
  private static String findBorderStyle(String text)
  {
    for (String token : text.split(" ")) {
      if (isBorderStyle(token)) {
        return token;
      }
    }
    return null;
  }
  
  private static String findBorderWidth(String text)
  {
    for (String token : text.split(" ")) {
      if (isBorderWidth(token)) {
        return token;
      }
    }
    return null;
  }
  
  private static boolean isColorHexadecimal(String token)
  {
    return token.toLowerCase().matches("#([0-9a-f]{3}|[0-9a-f]{6})");
  }
  
  private static boolean isColorKeyword(String token)
  {
    return CSSColors_.containsKey(token.toLowerCase());
  }
  
  public static String toRGBColor(String color)
  {
    String rgbValue = (String)CSSColors_.get(color.toLowerCase());
    if (rgbValue != null) {
      return rgbValue;
    }
    return color;
  }
  
  private static boolean isBorderStyle(String token)
  {
    return (token.equalsIgnoreCase("none")) || (token.equalsIgnoreCase("hidden")) || (token.equalsIgnoreCase("dotted")) || (token.equalsIgnoreCase("dashed")) || (token.equalsIgnoreCase("solid")) || (token.equalsIgnoreCase("double")) || (token.equalsIgnoreCase("groove")) || (token.equalsIgnoreCase("ridge")) || (token.equalsIgnoreCase("inset")) || (token.equalsIgnoreCase("outset"));
  }
  
  private static boolean isBorderWidth(String token)
  {
    return (token.equalsIgnoreCase("thin")) || (token.equalsIgnoreCase("medium")) || (token.equalsIgnoreCase("thick ")) || (isLength(token));
  }
  
  private static boolean isLength(String token)
  {
    if ((token.endsWith("em")) || (token.endsWith("ex")) || (token.endsWith("px")) || (token.endsWith("in")) || (token.endsWith("cm")) || (token.endsWith("mm")) || (token.endsWith("pt")) || (token.endsWith("pc")) || (token.endsWith("%")))
    {
      if (token.endsWith("%")) {
        token = token.substring(0, token.length() - 1);
      } else {
        token = token.substring(0, token.length() - 2);
      }
      try
      {
        Float.parseFloat(token);
        return true;
      }
      catch (NumberFormatException e) {}
    }
    return false;
  }
  
  protected static int pixelValue(HTMLElement element, CssValue value)
  {
    String s = value.get(element);
    if ((s.endsWith("%")) || ((s.length() == 0) && ((element instanceof HTMLHtmlElement))))
    {
      int i = NumberUtils.toInt(s.replaceAll("(\\d+).*", "$1"), 100);
      HTMLElement parent = element.getParentHTMLElement();
      int absoluteValue = parent == null ? value.getWindowDefaultValue() : pixelValue(parent, value);
      return (int)(i / 100.0D * absoluteValue);
    }
    return pixelValue(s);
  }
  
  protected static int pixelValue(String value)
  {
    int i = NumberUtils.toInt(value.replaceAll("(\\d+).*", "$1"), 0);
    if (value.endsWith("px")) {
      return i;
    }
    if (value.endsWith("em")) {
      return i * 16;
    }
    if (value.endsWith("ex")) {
      return i * 10;
    }
    if (value.endsWith("in")) {
      return i * 150;
    }
    if (value.endsWith("cm")) {
      return i * 50;
    }
    if (value.endsWith("mm")) {
      return i * 5;
    }
    if (value.endsWith("pt")) {
      return i * 2;
    }
    if (value.endsWith("pc")) {
      return i * 24;
    }
    return i;
  }
  
  protected static abstract class CssValue
  {
    private final int windowDefaultValue_;
    
    public CssValue(int windowDefaultValue)
    {
      windowDefaultValue_ = windowDefaultValue;
    }
    
    public int getWindowDefaultValue()
    {
      return windowDefaultValue_;
    }
    
    public final String get(HTMLElement element)
    {
      ComputedCSSStyleDeclaration style = element.jsxGet_currentStyle();
      String value = get(style);
      return value;
    }
    
    public abstract String get(ComputedCSSStyleDeclaration paramComputedCSSStyleDeclaration);
  }
  
  public String toString()
  {
    if (jsElement_ == null) {
      return "CSSStyleDeclaration for 'null'";
    }
    String style = jsElement_.getDomNodeOrDie().getAttribute("style");
    return "CSSStyleDeclaration for '" + style + "'";
  }
  
  protected static class StyleElement
    implements Comparable<StyleElement>
  {
    private final String name_;
    private final String value_;
    private final String priority_;
    private final long index_;
    private final SelectorSpecificity specificity_;
    
    protected StyleElement(String name, String value, String priority, SelectorSpecificity specificity, long index)
    {
      name_ = name;
      value_ = value;
      priority_ = priority;
      index_ = index;
      specificity_ = specificity;
    }
    
    protected StyleElement(String name, String value, long index)
    {
      this(name, value, "", SelectorSpecificity.FROM_STYLE_ATTRIBUTE, index);
    }
    
    protected StyleElement(String name, String value)
    {
      this(name, value, Long.MIN_VALUE);
    }
    
    public String getName()
    {
      return name_;
    }
    
    public String getValue()
    {
      return value_;
    }
    
    public String getPriority()
    {
      return priority_;
    }
    
    public SelectorSpecificity getSpecificity()
    {
      return specificity_;
    }
    
    public long getIndex()
    {
      return index_;
    }
    
    public boolean isDefault()
    {
      return index_ == Long.MIN_VALUE;
    }
    
    public String toString()
    {
      return "[" + index_ + "]" + name_ + "=" + value_;
    }
    
    public int compareTo(StyleElement e)
    {
      if (e != null) {
        return new Long(index_).compareTo(Long.valueOf(index_));
      }
      return 1;
    }
  }
  
  protected void setStyleAttributePixelInt(String name, String value)
  {
    if (value.endsWith("px")) {
      value = value.substring(0, value.length() - 2);
    }
    try
    {
      float floatValue = Float.parseFloat(value);
      if (getBrowserVersion().isIE()) {
        value = Integer.toString((int)floatValue) + "px";
      } else if (floatValue % 1.0F == 0.0F) {
        value = Integer.toString((int)floatValue) + "px";
      } else {
        value = Float.toString(floatValue) + "px";
      }
    }
    catch (Exception e) {}
    setStyleAttribute(name, value);
  }
  
  public CSSStyleDeclaration() {}
  
  public void jsxSet_posBottom(int posBottom) {}
  
  public void jsxSet_posHeight(int posHeight) {}
  
  public void jsxSet_posLeft(int posLeft) {}
  
  public void jsxSet_posRight(int posRight) {}
  
  public void jsxSet_posTop(int posTop) {}
  
  public void jsxSet_posWidth(int posWidth) {}
  
  public void jsxSet_textDecorationBlink(boolean textDecorationBlink) {}
  
  public void jsxSet_textDecorationLineThrough(boolean textDecorationLineThrough) {}
  
  public void jsxSet_textDecorationNone(boolean textDecorationNone) {}
  
  public void jsxSet_textDecorationOverline(boolean textDecorationOverline) {}
  
  public void jsxSet_textDecorationUnderline(boolean textDecorationUnderline) {}
  
  public void jsxFunction_setExpression(String propertyName, String expression, String language) {}
}

/* Location:
 * Qualified Name:     com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleDeclaration
 *
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd