Class Style


public class Style extends JavaScriptObject
Provides programmatic access to properties of the style object.

Note that if a property or value is not explicitly enumerated in this class, you can still access it via getProperty(String), and setProperty(String, String).

See Also:
  • Constructor Details

    • Style

      protected Style()
  • Method Details

    • clearBackgroundColor

      public final void clearBackgroundColor()
      Clear the background-color css property.
    • clearBackgroundImage

      public final void clearBackgroundImage()
      Clear the background-image css property.
    • clearBorderColor

      public final void clearBorderColor()
      Clear the border-color css property.
    • clearBorderStyle

      public final void clearBorderStyle()
      Clears the border-style CSS property.
    • clearBorderWidth

      public final void clearBorderWidth()
      Clear the border-width css property.
    • clearBottom

      public final void clearBottom()
      Clear the bottom css property.
    • clearClear

      public final void clearClear()
      Clear the 'clear' CSS property.
    • clearColor

      public final void clearColor()
      Clear the color css property.
    • clearCursor

      public final void clearCursor()
      Clears the cursor CSS property.
    • clearDisplay

      public final void clearDisplay()
      Clears the display CSS property.
    • clearFloat

      public final void clearFloat()
      Clear the float css property.
    • clearFontSize

      public final void clearFontSize()
      Clear the font-size css property.
    • clearFontStyle

      public final void clearFontStyle()
      Clears the font-style CSS property.
    • clearFontWeight

      public final void clearFontWeight()
      Clears the font-weight CSS property.
    • clearHeight

      public final void clearHeight()
      Clear the height css property.
    • clearLeft

      public final void clearLeft()
      Clear the left css property.
    • clearLineHeight

      public final void clearLineHeight()
      Clear the line-height css property.
    • clearListStyleType

      public final void clearListStyleType()
      Clears the list-style-type CSS property.
    • clearMargin

      public final void clearMargin()
      Clear the margin css property.
    • clearMarginBottom

      public final void clearMarginBottom()
      Clear the margin-bottom css property.
    • clearMarginLeft

      public final void clearMarginLeft()
      Clear the margin-left css property.
    • clearMarginRight

      public final void clearMarginRight()
      Clear the margin-right css property.
    • clearMarginTop

      public final void clearMarginTop()
      Clear the margin-top css property.
    • clearOpacity

      public final void clearOpacity()
      Clear the opacity css property.
    • clearOutlineColor

      public final void clearOutlineColor()
      Clear the outline-color css property.
    • clearOutlineStyle

      public final void clearOutlineStyle()
      Clears the outline-style CSS property.
    • clearOutlineWidth

      public final void clearOutlineWidth()
      Clear the outline-width css property.
    • clearOverflow

      public final void clearOverflow()
      Clears the overflow CSS property.
    • clearOverflowX

      public final void clearOverflowX()
      Clears the overflow-x CSS property.
    • clearOverflowY

      public final void clearOverflowY()
      Clears the overflow-y CSS property.
    • clearPadding

      public final void clearPadding()
      Clear the padding css property.
    • clearPaddingBottom

      public final void clearPaddingBottom()
      Clear the padding-bottom css property.
    • clearPaddingLeft

      public final void clearPaddingLeft()
      Clear the padding-left css property.
    • clearPaddingRight

      public final void clearPaddingRight()
      Clear the padding-right css property.
    • clearPaddingTop

      public final void clearPaddingTop()
      Clear the padding-top css property.
    • clearPosition

      public final void clearPosition()
      Clears the position CSS property.
    • clearProperty

      public final void clearProperty(String name)
      Clears the value of a named property, causing it to revert to its default.
    • clearRight

      public final void clearRight()
      Clear the right css property.
    • clearTableLayout

      public final void clearTableLayout()
      Clear the table-layout css property.
    • clearTextAlign

      public final void clearTextAlign()
      Clear the 'text-align' CSS property.
    • clearTextDecoration

      public final void clearTextDecoration()
      Clears the text-decoration CSS property.
    • clearTextIndent

      public final void clearTextIndent()
      Clear the 'text-indent' CSS property.
    • clearTextJustify

      public final void clearTextJustify()
      Clear the 'text-justify' CSS3 property.
    • clearTextOverflow

      public final void clearTextOverflow()
      Clear the 'text-overflow' CSS3 property.
    • clearTextTransform

      public final void clearTextTransform()
      Clear the 'text-transform' CSS property.
    • clearTop

      public final void clearTop()
      Clear the top css property.
    • clearVisibility

      public final void clearVisibility()
      Clears the visibility CSS property.
    • clearWhiteSpace

      public final void clearWhiteSpace()
      Clear the 'white-space' CSS property.
    • clearWidth

      public final void clearWidth()
      Clear the width css property.
    • clearZIndex

      public final void clearZIndex()
      Clear the z-index css property.
    • getBackgroundColor

      public final String getBackgroundColor()
      Get the background-color css property.
    • getBackgroundImage

      public final String getBackgroundImage()
      Get the background-image css property.
    • getBorderColor

      public final String getBorderColor()
      Get the border-color css property.
    • getBorderStyle

      public final String getBorderStyle()
      Gets the border-style CSS property.
    • getBorderWidth

      public final String getBorderWidth()
      Get the border-width css property.
    • getBottom

      public final String getBottom()
      Get the bottom css property.
    • getClear

      public final String getClear()
      Get the 'clear' CSS property.
    • getColor

      public final String getColor()
      Get the color css property.
    • getCursor

      public final String getCursor()
      Gets the cursor CSS property.
    • getDisplay

      public final String getDisplay()
      Gets the display CSS property.
    • getFontSize

      public final String getFontSize()
      Get the font-size css property.
    • getFontStyle

      public final String getFontStyle()
      Gets the font-style CSS property.
    • getFontWeight

      public final String getFontWeight()
      Gets the font-weight CSS property.
    • getHeight

      public final String getHeight()
      Get the height css property.
    • getLeft

      public final String getLeft()
      Get the left css property.
    • getLineHeight

      public final String getLineHeight()
      Get the line-height css property.
    • getListStyleType

      public final String getListStyleType()
      Gets the list-style-type CSS property.
    • getMargin

      public final String getMargin()
      Get the margin css property.
    • getMarginBottom

      public final String getMarginBottom()
      Get the margin-bottom css property.
    • getMarginLeft

      public final String getMarginLeft()
      Get the margin-left css property.
    • getMarginRight

      public final String getMarginRight()
      Get the margin-right css property.
    • getMarginTop

      public final String getMarginTop()
      Get the margin-top css property.
    • getOpacity

      public final String getOpacity()
      Get the opacity css property.
    • getOverflow

      public final String getOverflow()
      Gets the overflow CSS property.
    • getOverflowX

      public final String getOverflowX()
      Gets the overflow-x CSS property.
    • getOverflowY

      public final String getOverflowY()
      Gets the overflow-y CSS property.
    • getPadding

      public final String getPadding()
      Get the padding css property.
    • getPaddingBottom

      public final String getPaddingBottom()
      Get the padding-bottom css property.
    • getPaddingLeft

      public final String getPaddingLeft()
      Get the padding-left css property.
    • getPaddingRight

      public final String getPaddingRight()
      Get the padding-right css property.
    • getPaddingTop

      public final String getPaddingTop()
      Get the padding-top css property.
    • getPosition

      public final String getPosition()
      Gets the position CSS property.
    • getProperty

      public final String getProperty(String name)
      Gets the value of a named property.
    • getRight

      public final String getRight()
      Get the right css property.
    • getTableLayout

      public final String getTableLayout()
      Gets the table-layout property.
    • getTextAlign

      public final String getTextAlign()
      Get the 'text-align' CSS property.
    • getTextDecoration

      public final String getTextDecoration()
      Gets the text-decoration CSS property.
    • getTextIndent

      public final String getTextIndent()
      Get the 'text-indent' CSS property.
    • getTextJustify

      public final String getTextJustify()
      Get the 'text-justify' CSS3 property.
    • getTextOverflow

      public final String getTextOverflow()
      Get the 'text-overflow' CSS3 property.
    • getTextTransform

      public final String getTextTransform()
      Get the 'text-transform' CSS property.
    • getTop

      public final String getTop()
      Get the top css property.
    • getVerticalAlign

      public final String getVerticalAlign()
      Gets the vertical-align CSS property.
    • getVisibility

      public final String getVisibility()
      Gets the visibility CSS property.
    • getWhiteSpace

      public final String getWhiteSpace()
      Get the 'white-space' CSS property.
    • getWidth

      public final String getWidth()
      Get the width css property.
    • getZIndex

      public final String getZIndex()
      Get the z-index css property.
    • setBackgroundColor

      public final void setBackgroundColor(String value)
      Set the background-color css property.
    • setBackgroundImage

      public final void setBackgroundImage(String value)
      Set the background-image css property.
    • setBorderColor

      public final void setBorderColor(String value)
      Set the border-color css property.
    • setBorderStyle

      public final void setBorderStyle(Style.BorderStyle value)
      Sets the border-style CSS property.
    • setBorderWidth

      public final void setBorderWidth(double value, Style.Unit unit)
      Set the border-width css property.
    • setBottom

      public final void setBottom(double value, Style.Unit unit)
      Set the bottom css property.
    • setClear

      public final void setClear(Style.Clear value)
      Sets the 'clear' CSS property.
    • setColor

      public final void setColor(String value)
      Sets the color CSS property.
    • setCursor

      public final void setCursor(Style.Cursor value)
      Sets the cursor CSS property.
    • setDisplay

      public final void setDisplay(Style.Display value)
      Sets the display CSS property.
    • setFloat

      public final void setFloat(Style.Float value)
      Set the float css property.
    • setFontSize

      public final void setFontSize(double value, Style.Unit unit)
      Set the font-size css property.
    • setFontStyle

      public final void setFontStyle(Style.FontStyle value)
      Sets the font-style CSS property.
    • setFontWeight

      public final void setFontWeight(Style.FontWeight value)
      Sets the font-weight CSS property.
    • setHeight

      public final void setHeight(double value, Style.Unit unit)
      Set the height css property.
    • setLeft

      public final void setLeft(double value, Style.Unit unit)
      Set the left css property.
    • setLineHeight

      public final void setLineHeight(double value, Style.Unit unit)
      Set the line-height css property.
    • setListStyleType

      public final void setListStyleType(Style.ListStyleType value)
      Sets the list-style-type CSS property.
    • setMargin

      public final void setMargin(double value, Style.Unit unit)
      Set the margin css property.
    • setMarginBottom

      public final void setMarginBottom(double value, Style.Unit unit)
      Set the margin-bottom css property.
    • setMarginLeft

      public final void setMarginLeft(double value, Style.Unit unit)
      Set the margin-left css property.
    • setMarginRight

      public final void setMarginRight(double value, Style.Unit unit)
      Set the margin-right css property.
    • setMarginTop

      public final void setMarginTop(double value, Style.Unit unit)
      Set the margin-top css property.
    • setOpacity

      public final void setOpacity(double value)
      Set the opacity css property.
    • setOutlineColor

      public final void setOutlineColor(String value)
      Set the outline-color css property.
    • setOutlineStyle

      public final void setOutlineStyle(Style.OutlineStyle value)
      Sets the outline-style CSS property.
    • setOutlineWidth

      public final void setOutlineWidth(double value, Style.Unit unit)
      Set the outline-width css property.
    • setOverflow

      public final void setOverflow(Style.Overflow value)
      Sets the overflow CSS property.
    • setOverflowX

      public final void setOverflowX(Style.Overflow value)
      Sets the overflow-x CSS property.
    • setOverflowY

      public final void setOverflowY(Style.Overflow value)
      Sets the overflow-y CSS property.
    • setPadding

      public final void setPadding(double value, Style.Unit unit)
      Set the padding css property.
    • setPaddingBottom

      public final void setPaddingBottom(double value, Style.Unit unit)
      Set the padding-bottom css property.
    • setPaddingLeft

      public final void setPaddingLeft(double value, Style.Unit unit)
      Set the padding-left css property.
    • setPaddingRight

      public final void setPaddingRight(double value, Style.Unit unit)
      Set the padding-right css property.
    • setPaddingTop

      public final void setPaddingTop(double value, Style.Unit unit)
      Set the padding-top css property.
    • setPosition

      public final void setPosition(Style.Position value)
      Sets the position CSS property.
    • setProperty

      public final void setProperty(String name, String value)
      Sets the value of a named property.
    • setProperty

      public final void setProperty(String name, double value, Style.Unit unit)
      Sets the value of a named property in the specified units.
    • setPropertyPx

      public final void setPropertyPx(String name, int value)
      Sets the value of a named property, in pixels. This is shorthand for value + "px".
    • setRight

      public final void setRight(double value, Style.Unit unit)
      Set the right css property.
    • setTableLayout

      public final void setTableLayout(Style.TableLayout value)
      Set the table-layout CSS property.
    • setTextAlign

      public final void setTextAlign(Style.TextAlign value)
      Set the 'text-align' CSS property.
    • setTextDecoration

      public final void setTextDecoration(Style.TextDecoration value)
      Sets the text-decoration CSS property.
    • setTextIndent

      public final void setTextIndent(double value, Style.Unit unit)
      Set the 'text-indent' CSS property.
    • setTextJustify

      public final void setTextJustify(Style.TextJustify value)
      Set the 'text-justify' CSS3 property.
    • setTextOverflow

      public final void setTextOverflow(Style.TextOverflow value)
      Set the 'text-overflow' CSS3 property.
    • setTextTransform

      public final void setTextTransform(Style.TextTransform value)
      Set the 'text-transform' CSS property.
    • setTop

      public final void setTop(double value, Style.Unit unit)
      Set the top css property.
    • setVerticalAlign

      public final void setVerticalAlign(Style.VerticalAlign value)
      Sets the vertical-align CSS property.
    • setVerticalAlign

      public final void setVerticalAlign(double value, Style.Unit unit)
      Sets the vertical-align CSS property.
    • setVisibility

      public final void setVisibility(Style.Visibility value)
      Sets the visibility CSS property.
    • setWhiteSpace

      public final void setWhiteSpace(Style.WhiteSpace value)
      Set the 'white-space' CSS property.
    • setWidth

      public final void setWidth(double value, Style.Unit unit)
      Set the width css property.
    • setZIndex

      public final void setZIndex(int value)
      Set the z-index css property.