Package com.google.gwt.dom.client
Class Style
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.dom.client.Style
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum for the border-style property.static enumEnum for the 'clear' CSS property.static enumEnum for the cursor property.static enumEnum for the display property.static enumEnum for the float property.static enumEnum for the font-style property.static enumEnum for the font-weight property.static interfaceInterface to be implemented by enumerated CSS values.static enumEnum for the list-style-type property.static enumEnum for the outline-style property.static enumEnum for the overflow property.static enumEnum for the position property.static enumEnum for the table-layout property.static enumEnum for the text-align property.static enumEnum for the 'text-decoration' CSS property.static enumEnum for the 'text-justify' CSS3 property.static enumEnum for the 'text-overflow' CSS3 property.static enumEnum for the 'text-transform' CSS property.static enumCSS length units.static enumEnum for the vertical-align property.static enumEnum for the visibility property.static enumEnum for the 'white-space' CSS property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidClear the background-color css property.final voidClear the background-image css property.final voidClear the border-color css property.final voidClears the border-style CSS property.final voidClear the border-width css property.final voidClear the bottom css property.final voidClear the 'clear' CSS property.final voidClear the color css property.final voidClears the cursor CSS property.final voidClears the display CSS property.final voidClear the float css property.final voidClear the font-size css property.final voidClears the font-style CSS property.final voidClears the font-weight CSS property.final voidClear the height css property.final voidClear the left css property.final voidClear the line-height css property.final voidClears the list-style-type CSS property.final voidClear the margin css property.final voidClear the margin-bottom css property.final voidClear the margin-left css property.final voidClear the margin-right css property.final voidClear the margin-top css property.final voidClear the opacity css property.final voidClear the outline-color css property.final voidClears the outline-style CSS property.final voidClear the outline-width css property.final voidClears the overflow CSS property.final voidClears the overflow-x CSS property.final voidClears the overflow-y CSS property.final voidClear the padding css property.final voidClear the padding-bottom css property.final voidClear the padding-left css property.final voidClear the padding-right css property.final voidClear the padding-top css property.final voidClears the position CSS property.final voidclearProperty(String name) Clears the value of a named property, causing it to revert to its default.final voidClear the right css property.final voidClear the table-layout css property.final voidClear the 'text-align' CSS property.final voidClears the text-decoration CSS property.final voidClear the 'text-indent' CSS property.final voidClear the 'text-justify' CSS3 property.final voidClear the 'text-overflow' CSS3 property.final voidClear the 'text-transform' CSS property.final voidclearTop()Clear the top css property.final voidClears the visibility CSS property.final voidClear the 'white-space' CSS property.final voidClear the width css property.final voidClear the z-index css property.final StringGet the background-color css property.final StringGet the background-image css property.final StringGet the border-color css property.final StringGets the border-style CSS property.final StringGet the border-width css property.final StringGet the bottom css property.final StringgetClear()Get the 'clear' CSS property.final StringgetColor()Get the color css property.final StringGets the cursor CSS property.final StringGets the display CSS property.final StringGet the font-size css property.final StringGets the font-style CSS property.final StringGets the font-weight CSS property.final StringGet the height css property.final StringgetLeft()Get the left css property.final StringGet the line-height css property.final StringGets the list-style-type CSS property.final StringGet the margin css property.final StringGet the margin-bottom css property.final StringGet the margin-left css property.final StringGet the margin-right css property.final StringGet the margin-top css property.final StringGet the opacity css property.final StringGets the overflow CSS property.final StringGets the overflow-x CSS property.final StringGets the overflow-y CSS property.final StringGet the padding css property.final StringGet the padding-bottom css property.final StringGet the padding-left css property.final StringGet the padding-right css property.final StringGet the padding-top css property.final StringGets the position CSS property.final StringgetProperty(String name) Gets the value of a named property.final StringgetRight()Get the right css property.final StringGets the table-layout property.final StringGet the 'text-align' CSS property.final StringGets the text-decoration CSS property.final StringGet the 'text-indent' CSS property.final StringGet the 'text-justify' CSS3 property.final StringGet the 'text-overflow' CSS3 property.final StringGet the 'text-transform' CSS property.final StringgetTop()Get the top css property.final StringGets the vertical-align CSS property.final StringGets the visibility CSS property.final StringGet the 'white-space' CSS property.final StringgetWidth()Get the width css property.final StringGet the z-index css property.final voidsetBackgroundColor(String value) Set the background-color css property.final voidsetBackgroundImage(String value) Set the background-image css property.final voidsetBorderColor(String value) Set the border-color css property.final voidsetBorderStyle(Style.BorderStyle value) Sets the border-style CSS property.final voidsetBorderWidth(double value, Style.Unit unit) Set the border-width css property.final voidsetBottom(double value, Style.Unit unit) Set the bottom css property.final voidsetClear(Style.Clear value) Sets the 'clear' CSS property.final voidSets the color CSS property.final voidsetCursor(Style.Cursor value) Sets the cursor CSS property.final voidsetDisplay(Style.Display value) Sets the display CSS property.final voidsetFloat(Style.Float value) Set the float css property.final voidsetFontSize(double value, Style.Unit unit) Set the font-size css property.final voidsetFontStyle(Style.FontStyle value) Sets the font-style CSS property.final voidsetFontWeight(Style.FontWeight value) Sets the font-weight CSS property.final voidsetHeight(double value, Style.Unit unit) Set the height css property.final voidsetLeft(double value, Style.Unit unit) Set the left css property.final voidsetLineHeight(double value, Style.Unit unit) Set the line-height css property.final voidSets the list-style-type CSS property.final voidsetMargin(double value, Style.Unit unit) Set the margin css property.final voidsetMarginBottom(double value, Style.Unit unit) Set the margin-bottom css property.final voidsetMarginLeft(double value, Style.Unit unit) Set the margin-left css property.final voidsetMarginRight(double value, Style.Unit unit) Set the margin-right css property.final voidsetMarginTop(double value, Style.Unit unit) Set the margin-top css property.final voidsetOpacity(double value) Set the opacity css property.final voidsetOutlineColor(String value) Set the outline-color css property.final voidSets the outline-style CSS property.final voidsetOutlineWidth(double value, Style.Unit unit) Set the outline-width css property.final voidsetOverflow(Style.Overflow value) Sets the overflow CSS property.final voidsetOverflowX(Style.Overflow value) Sets the overflow-x CSS property.final voidsetOverflowY(Style.Overflow value) Sets the overflow-y CSS property.final voidsetPadding(double value, Style.Unit unit) Set the padding css property.final voidsetPaddingBottom(double value, Style.Unit unit) Set the padding-bottom css property.final voidsetPaddingLeft(double value, Style.Unit unit) Set the padding-left css property.final voidsetPaddingRight(double value, Style.Unit unit) Set the padding-right css property.final voidsetPaddingTop(double value, Style.Unit unit) Set the padding-top css property.final voidsetPosition(Style.Position value) Sets the position CSS property.final voidsetProperty(String name, double value, Style.Unit unit) Sets the value of a named property in the specified units.final voidsetProperty(String name, String value) Sets the value of a named property.final voidsetPropertyPx(String name, int value) Sets the value of a named property, in pixels.final voidsetRight(double value, Style.Unit unit) Set the right css property.final voidsetTableLayout(Style.TableLayout value) Set the table-layout CSS property.final voidsetTextAlign(Style.TextAlign value) Set the 'text-align' CSS property.final voidSets the text-decoration CSS property.final voidsetTextIndent(double value, Style.Unit unit) Set the 'text-indent' CSS property.final voidsetTextJustify(Style.TextJustify value) Set the 'text-justify' CSS3 property.final voidSet the 'text-overflow' CSS3 property.final voidSet the 'text-transform' CSS property.final voidsetTop(double value, Style.Unit unit) Set the top css property.final voidsetVerticalAlign(double value, Style.Unit unit) Sets the vertical-align CSS property.final voidSets the vertical-align CSS property.final voidsetVisibility(Style.Visibility value) Sets the visibility CSS property.final voidsetWhiteSpace(Style.WhiteSpace value) Set the 'white-space' CSS property.final voidsetWidth(double value, Style.Unit unit) Set the width css property.final voidsetZIndex(int value) Set the z-index css property.Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
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
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
Get the background-color css property. -
getBackgroundImage
Get the background-image css property. -
getBorderColor
Get the border-color css property. -
getBorderStyle
Gets the border-style CSS property. -
getBorderWidth
Get the border-width css property. -
getBottom
Get the bottom css property. -
getClear
Get the 'clear' CSS property. -
getColor
Get the color css property. -
getCursor
Gets the cursor CSS property. -
getDisplay
Gets the display CSS property. -
getFontSize
Get the font-size css property. -
getFontStyle
Gets the font-style CSS property. -
getFontWeight
Gets the font-weight CSS property. -
getHeight
Get the height css property. -
getLeft
Get the left css property. -
getLineHeight
Get the line-height css property. -
getListStyleType
Gets the list-style-type CSS property. -
getMargin
Get the margin css property. -
getMarginBottom
Get the margin-bottom css property. -
getMarginLeft
Get the margin-left css property. -
getMarginRight
Get the margin-right css property. -
getMarginTop
Get the margin-top css property. -
getOpacity
Get the opacity css property. -
getOverflow
Gets the overflow CSS property. -
getOverflowX
Gets the overflow-x CSS property. -
getOverflowY
Gets the overflow-y CSS property. -
getPadding
Get the padding css property. -
getPaddingBottom
Get the padding-bottom css property. -
getPaddingLeft
Get the padding-left css property. -
getPaddingRight
Get the padding-right css property. -
getPaddingTop
Get the padding-top css property. -
getPosition
Gets the position CSS property. -
getProperty
Gets the value of a named property. -
getRight
Get the right css property. -
getTableLayout
Gets the table-layout property. -
getTextAlign
Get the 'text-align' CSS property. -
getTextDecoration
Gets the text-decoration CSS property. -
getTextIndent
Get the 'text-indent' CSS property. -
getTextJustify
Get the 'text-justify' CSS3 property. -
getTextOverflow
Get the 'text-overflow' CSS3 property. -
getTextTransform
Get the 'text-transform' CSS property. -
getTop
Get the top css property. -
getVerticalAlign
Gets the vertical-align CSS property. -
getVisibility
Gets the visibility CSS property. -
getWhiteSpace
Get the 'white-space' CSS property. -
getWidth
Get the width css property. -
getZIndex
Get the z-index css property. -
setBackgroundColor
Set the background-color css property. -
setBackgroundImage
Set the background-image css property. -
setBorderColor
Set the border-color css property. -
setBorderStyle
Sets the border-style CSS property. -
setBorderWidth
Set the border-width css property. -
setBottom
Set the bottom css property. -
setClear
Sets the 'clear' CSS property. -
setColor
Sets the color CSS property. -
setCursor
Sets the cursor CSS property. -
setDisplay
Sets the display CSS property. -
setFloat
Set the float css property. -
setFontSize
Set the font-size css property. -
setFontStyle
Sets the font-style CSS property. -
setFontWeight
Sets the font-weight CSS property. -
setHeight
Set the height css property. -
setLeft
Set the left css property. -
setLineHeight
Set the line-height css property. -
setListStyleType
Sets the list-style-type CSS property. -
setMargin
Set the margin css property. -
setMarginBottom
Set the margin-bottom css property. -
setMarginLeft
Set the margin-left css property. -
setMarginRight
Set the margin-right css property. -
setMarginTop
Set the margin-top css property. -
setOpacity
public final void setOpacity(double value) Set the opacity css property. -
setOutlineColor
Set the outline-color css property. -
setOutlineStyle
Sets the outline-style CSS property. -
setOutlineWidth
Set the outline-width css property. -
setOverflow
Sets the overflow CSS property. -
setOverflowX
Sets the overflow-x CSS property. -
setOverflowY
Sets the overflow-y CSS property. -
setPadding
Set the padding css property. -
setPaddingBottom
Set the padding-bottom css property. -
setPaddingLeft
Set the padding-left css property. -
setPaddingRight
Set the padding-right css property. -
setPaddingTop
Set the padding-top css property. -
setPosition
Sets the position CSS property. -
setProperty
Sets the value of a named property. -
setProperty
Sets the value of a named property in the specified units. -
setPropertyPx
Sets the value of a named property, in pixels. This is shorthand forvalue + "px". -
setRight
Set the right css property. -
setTableLayout
Set the table-layout CSS property. -
setTextAlign
Set the 'text-align' CSS property. -
setTextDecoration
Sets the text-decoration CSS property. -
setTextIndent
Set the 'text-indent' CSS property. -
setTextJustify
Set the 'text-justify' CSS3 property. -
setTextOverflow
Set the 'text-overflow' CSS3 property. -
setTextTransform
Set the 'text-transform' CSS property. -
setTop
Set the top css property. -
setVerticalAlign
Sets the vertical-align CSS property. -
setVerticalAlign
Sets the vertical-align CSS property. -
setVisibility
Sets the visibility CSS property. -
setWhiteSpace
Set the 'white-space' CSS property. -
setWidth
Set the width css property. -
setZIndex
public final void setZIndex(int value) Set the z-index css property.
-