public class

Style

extends JavaScriptObject
java.lang.Object
   ↳ com.google.gwt.core.client.JavaScriptObject
     ↳ com.google.gwt.dom.client.Style

Class Overview

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

Summary

Nested Classes
enum Style.BorderStyle Enum for the border-style property. 
enum Style.Cursor Enum for the cursor property. 
enum Style.Display Enum for the display property. 
enum Style.Float Enum for the float property. 
enum Style.FontStyle Enum for the font-style property. 
enum Style.FontWeight Enum for the font-weight property. 
interface Style.HasCssName Interface to be implemented by enumerated CSS values. 
enum Style.ListStyleType Enum for the list-style-type property. 
enum Style.Overflow Enum for the overflow property. 
enum Style.Position Enum for the display property. 
enum Style.TableLayout Enum for the table-layout property. 
enum Style.TextDecoration Enum for the text-decoration property. 
enum Style.Unit CSS length units. 
enum Style.VerticalAlign Enum for the vertical-align property. 
enum Style.Visibility Enum for the visibility property. 
Protected Constructors
Style()
Public Methods
final void clearBackgroundColor()
Clear the background-color css property.
final void clearBackgroundImage()
Clear the background-image css property.
final void clearBorderColor()
Clear the border-color css property.
final void clearBorderStyle()
Clears the border-style CSS property.
final void clearBorderWidth()
Clear the border-width css property.
final void clearBottom()
Clear the bottom css property.
final void clearColor()
Clear the color css property.
final void clearCursor()
Clears the cursor CSS property.
final void clearDisplay()
Clears the display CSS property.
final void clearFloat()
Clear the font-size css property.
final void clearFontSize()
Clear the font-size css property.
final void clearFontStyle()
Clears the font-style CSS property.
final void clearFontWeight()
Clears the font-weight CSS property.
final void clearHeight()
Clear the height css property.
final void clearLeft()
Clear the left css property.
final void clearListStyleType()
Clears the list-style-type CSS property.
final void clearMargin()
Clear the margin css property.
final void clearMarginBottom()
Clear the margin-bottom css property.
final void clearMarginLeft()
Clear the margin-left css property.
final void clearMarginRight()
Clear the margin-right css property.
final void clearMarginTop()
Clear the margin-top css property.
final void clearOpacity()
Clear the opacity css property.
final void clearOverflow()
Clears the overflow CSS property.
final void clearOverflowX()
Clears the overflow-x CSS property.
final void clearOverflowY()
Clears the overflow-y CSS property.
final void clearPadding()
Clear the padding css property.
final void clearPaddingBottom()
Clear the padding-bottom css property.
final void clearPaddingLeft()
Clear the padding-left css property.
final void clearPaddingRight()
Clear the padding-right css property.
final void clearPaddingTop()
Clear the padding-top css property.
final void clearPosition()
Clears the position CSS property.
final void clearProperty(String name)
Clears the value of a named property, causing it to revert to its default.
final void clearRight()
Clear the right css property.
final void clearTableLayout()
Clear the table-layout css property.
final void clearTextDecoration()
Clears the text-decoration CSS property.
final void clearTop()
Clear the top css property.
final void clearVisibility()
Clears the visibility CSS property.
final void clearWidth()
Clear the width css property.
final void clearZIndex()
Clear the z-index css property.
final String getBackgroundColor()
Get the background-color css property.
final String getBackgroundImage()
Get the background-image css property.
final String getBorderColor()
Get the border-color css property.
final String getBorderStyle()
Gets the border-style CSS property.
final String getBorderWidth()
Get the border-width css property.
final String getBottom()
Get the bottom css property.
final String getColor()
Get the color css property.
final String getCursor()
Gets the cursor CSS property.
final String getDisplay()
Gets the display CSS property.
final String getFontSize()
Get the font-size css property.
final String getFontStyle()
Gets the font-style CSS property.
final String getFontWeight()
Gets the font-weight CSS property.
final String getHeight()
Get the height css property.
final String getLeft()
Get the left css property.
final String getListStyleType()
Gets the list-style-type CSS property.
final String getMargin()
Get the margin css property.
final String getMarginBottom()
Get the margin-bottom css property.
final String getMarginLeft()
Get the margin-left css property.
final String getMarginRight()
Get the margin-right css property.
final String getMarginTop()
Get the margin-top css property.
final String getOpacity()
Get the opacity css property.
final String getOverflow()
Gets the overflow CSS property.
final String getOverflowX()
Gets the overflow-x CSS property.
final String getOverflowY()
Gets the overflow-y CSS property.
final String getPadding()
Get the padding css property.
final String getPaddingBottom()
Get the padding-bottom css property.
final String getPaddingLeft()
Get the padding-left css property.
final String getPaddingRight()
Get the padding-right css property.
final String getPaddingTop()
Get the padding-top css property.
final String getPosition()
Gets the position CSS property.
final String getProperty(String name)
Gets the value of a named property.
final String getRight()
Get the right css property.
final String getTableLayout()
Gets the table-layout property.
final String getTextDecoration()
Gets the text-decoration CSS property.
final String getTop()
Get the top css property.
final String getVerticalAlign()
Gets the vertical-align CSS property.
final String getVisibility()
Gets the visibility CSS property.
final String getWidth()
Get the width css property.
final String getZIndex()
Get the z-index css property.
final void setBackgroundColor(String value)
Set the background-color css property.
final void setBackgroundImage(String value)
Set the background-image css property.
final void setBorderColor(String value)
Set the border-color css property.
final void setBorderStyle(Style.BorderStyle value)
Sets the border-style CSS property.
final void setBorderWidth(double value, Style.Unit unit)
Set the border-width css property.
final void setBottom(double value, Style.Unit unit)
Set the bottom css property.
final void setColor(String value)
Sets the color CSS property.
final void setCursor(Style.Cursor value)
Sets the cursor CSS property.
final void setDisplay(Style.Display value)
Sets the display CSS property.
final void setFloat(Style.Float value)
Set the float css property.
final void setFontSize(double value, Style.Unit unit)
Set the font-size css property.
final void setFontStyle(Style.FontStyle value)
Sets the font-style CSS property.
final void setFontWeight(Style.FontWeight value)
Sets the font-weight CSS property.
final void setHeight(double value, Style.Unit unit)
Set the height css property.
final void setLeft(double value, Style.Unit unit)
Set the left css property.
final void setListStyleType(Style.ListStyleType value)
Sets the list-style-type CSS property.
final void setMargin(double value, Style.Unit unit)
Set the margin css property.
final void setMarginBottom(double value, Style.Unit unit)
Set the margin-bottom css property.
final void setMarginLeft(double value, Style.Unit unit)
Set the margin-left css property.
final void setMarginRight(double value, Style.Unit unit)
Set the margin-right css property.
final void setMarginTop(double value, Style.Unit unit)
Set the margin-top css property.
final void setOpacity(double value)
Set the opacity css property.
final void setOverflow(Style.Overflow value)
Sets the overflow CSS property.
final void setOverflowX(Style.Overflow value)
Sets the overflow-x CSS property.
final void setOverflowY(Style.Overflow value)
Sets the overflow-y CSS property.
final void setPadding(double value, Style.Unit unit)
Set the padding css property.
final void setPaddingBottom(double value, Style.Unit unit)
Set the padding-bottom css property.
final void setPaddingLeft(double value, Style.Unit unit)
Set the padding-left css property.
final void setPaddingRight(double value, Style.Unit unit)
Set the padding-right css property.
final void setPaddingTop(double value, Style.Unit unit)
Set the padding-top css property.
final void setPosition(Style.Position value)
Sets the position CSS property.
final void setProperty(String name, double value, Style.Unit unit)
Sets the value of a named property in the specified units.
final void setProperty(String name, String value)
Sets the value of a named property.
final void setPropertyPx(String name, int value)
Sets the value of a named property, in pixels.
final void setRight(double value, Style.Unit unit)
Set the right css property.
final void setTableLayout(Style.TableLayout value)
Set the table-layout CSS property.
final void setTextDecoration(Style.TextDecoration value)
Sets the text-decoration CSS property.
final void setTop(double value, Style.Unit unit)
Set the top css property.
final void setVerticalAlign(Style.VerticalAlign value)
Sets the vertical-align CSS property.
final void setVerticalAlign(double value, Style.Unit unit)
Sets the vertical-align CSS property.
final void setVisibility(Style.Visibility value)
Sets the visibility CSS property.
final void setWidth(double value, Style.Unit unit)
Set the width css property.
final void setZIndex(int value)
Set the z-index css property.
[Expand]
Inherited Methods
From class com.google.gwt.core.client.JavaScriptObject
From class java.lang.Object

Protected Constructors

protected Style ()

Public Methods

public final void clearBackgroundColor ()

Clear the background-color css property.

public final void clearBackgroundImage ()

Clear the background-image css property.

public final void clearBorderColor ()

Clear the border-color css property.

public final void clearBorderStyle ()

Clears the border-style CSS property.

public final void clearBorderWidth ()

Clear the border-width css property.

public final void clearBottom ()

Clear the bottom css property.

public final void clearColor ()

Clear the color css property.

public final void clearCursor ()

Clears the cursor CSS property.

public final void clearDisplay ()

Clears the display CSS property.

public final void clearFloat ()

Clear the font-size css property.

public final void clearFontSize ()

Clear the font-size css property.

public final void clearFontStyle ()

Clears the font-style CSS property.

public final void clearFontWeight ()

Clears the font-weight CSS property.

public final void clearHeight ()

Clear the height css property.

public final void clearLeft ()

Clear the left css property.

public final void clearListStyleType ()

Clears the list-style-type CSS property.

public final void clearMargin ()

Clear the margin css property.

public final void clearMarginBottom ()

Clear the margin-bottom css property.

public final void clearMarginLeft ()

Clear the margin-left css property.

public final void clearMarginRight ()

Clear the margin-right css property.

public final void clearMarginTop ()

Clear the margin-top css property.

public final void clearOpacity ()

Clear the opacity css property.

public final void clearOverflow ()

Clears the overflow CSS property.

public final void clearOverflowX ()

Clears the overflow-x CSS property.

public final void clearOverflowY ()

Clears the overflow-y CSS property.

public final void clearPadding ()

Clear the padding css property.

public final void clearPaddingBottom ()

Clear the padding-bottom css property.

public final void clearPaddingLeft ()

Clear the padding-left css property.

public final void clearPaddingRight ()

Clear the padding-right css property.

public final void clearPaddingTop ()

Clear the padding-top css property.

public final void clearPosition ()

Clears the position CSS property.

public final void clearProperty (String name)

Clears the value of a named property, causing it to revert to its default.

public final void clearRight ()

Clear the right css property.

public final void clearTableLayout ()

Clear the table-layout css property.

public final void clearTextDecoration ()

Clears the text-decoration CSS property.

public final void clearTop ()

Clear the top css property.

public final void clearVisibility ()

Clears the visibility CSS property.

public final void clearWidth ()

Clear the width css property.

public final void clearZIndex ()

Clear the z-index css property.

public final String getBackgroundColor ()

Get the background-color css property.

public final String getBackgroundImage ()

Get the background-image css property.

public final String getBorderColor ()

Get the border-color css property.

public final String getBorderStyle ()

Gets the border-style CSS property.

public final String getBorderWidth ()

Get the border-width css property.

public final String getBottom ()

Get the bottom css property.

public final String getColor ()

Get the color css property.

public final String getCursor ()

Gets the cursor CSS property.

public final String getDisplay ()

Gets the display CSS property.

public final String getFontSize ()

Get the font-size css property.

public final String getFontStyle ()

Gets the font-style CSS property.

public final String getFontWeight ()

Gets the font-weight CSS property.

public final String getHeight ()

Get the height css property.

public final String getLeft ()

Get the left css property.

public final String getListStyleType ()

Gets the list-style-type CSS property.

public final String getMargin ()

Get the margin css property.

public final String getMarginBottom ()

Get the margin-bottom css property.

public final String getMarginLeft ()

Get the margin-left css property.

public final String getMarginRight ()

Get the margin-right css property.

public final String getMarginTop ()

Get the margin-top css property.

public final String getOpacity ()

Get the opacity css property.

public final String getOverflow ()

Gets the overflow CSS property.

public final String getOverflowX ()

Gets the overflow-x CSS property.

public final String getOverflowY ()

Gets the overflow-y CSS property.

public final String getPadding ()

Get the padding css property.

public final String getPaddingBottom ()

Get the padding-bottom css property.

public final String getPaddingLeft ()

Get the padding-left css property.

public final String getPaddingRight ()

Get the padding-right css property.

public final String getPaddingTop ()

Get the padding-top css property.

public final String getPosition ()

Gets the position CSS property.

public final String getProperty (String name)

Gets the value of a named property.

public final String getRight ()

Get the right css property.

public final String getTableLayout ()

Gets the table-layout property.

public final String getTextDecoration ()

Gets the text-decoration CSS property.

public final String getTop ()

Get the top css property.

public final String getVerticalAlign ()

Gets the vertical-align CSS property.

public final String getVisibility ()

Gets the visibility CSS property.

public final String getWidth ()

Get the width css property.

public final String getZIndex ()

Get the z-index css property.

public final void setBackgroundColor (String value)

Set the background-color css property.

public final void setBackgroundImage (String value)

Set the background-image css property.

public final void setBorderColor (String value)

Set the border-color css property.

public final void setBorderStyle (Style.BorderStyle value)

Sets the border-style CSS property.

public final void setBorderWidth (double value, Style.Unit unit)

Set the border-width css property.

public final void setBottom (double value, Style.Unit unit)

Set the bottom css property.

public final void setColor (String value)

Sets the color CSS property.

public final void setCursor (Style.Cursor value)

Sets the cursor CSS property.

public final void setDisplay (Style.Display value)

Sets the display CSS property.

public final void setFloat (Style.Float value)

Set the float css property.

public final void setFontSize (double value, Style.Unit unit)

Set the font-size css property.

public final void setFontStyle (Style.FontStyle value)

Sets the font-style CSS property.

public final void setFontWeight (Style.FontWeight value)

Sets the font-weight CSS property.

public final void setHeight (double value, Style.Unit unit)

Set the height css property.

public final void setLeft (double value, Style.Unit unit)

Set the left css property.

public final void setListStyleType (Style.ListStyleType value)

Sets the list-style-type CSS property.

public final void setMargin (double value, Style.Unit unit)

Set the margin css property.

public final void setMarginBottom (double value, Style.Unit unit)

Set the margin-bottom css property.

public final void setMarginLeft (double value, Style.Unit unit)

Set the margin-left css property.

public final void setMarginRight (double value, Style.Unit unit)

Set the margin-right css property.

public final void setMarginTop (double value, Style.Unit unit)

Set the margin-top css property.

public final void setOpacity (double value)

Set the opacity css property.

public final void setOverflow (Style.Overflow value)

Sets the overflow CSS property.

public final void setOverflowX (Style.Overflow value)

Sets the overflow-x CSS property.

public final void setOverflowY (Style.Overflow value)

Sets the overflow-y CSS property.

public final void setPadding (double value, Style.Unit unit)

Set the padding css property.

public final void setPaddingBottom (double value, Style.Unit unit)

Set the padding-bottom css property.

public final void setPaddingLeft (double value, Style.Unit unit)

Set the padding-left css property.

public final void setPaddingRight (double value, Style.Unit unit)

Set the padding-right css property.

public final void setPaddingTop (double value, Style.Unit unit)

Set the padding-top css property.

public final void setPosition (Style.Position value)

Sets the position CSS property.

public final void setProperty (String name, double value, Style.Unit unit)

Sets the value of a named property in the specified units.

public final void setProperty (String name, String value)

Sets the value of a named property.

public final void setPropertyPx (String name, int value)

Sets the value of a named property, in pixels. This is shorthand for value + "px".

public final void setRight (double value, Style.Unit unit)

Set the right css property.

public final void setTableLayout (Style.TableLayout value)

Set the table-layout CSS property.

public final void setTextDecoration (Style.TextDecoration value)

Sets the text-decoration CSS property.

public final void setTop (double value, Style.Unit unit)

Set the top css property.

public final void setVerticalAlign (Style.VerticalAlign value)

Sets the vertical-align CSS property.

public final void setVerticalAlign (double value, Style.Unit unit)

Sets the vertical-align CSS property.

public final void setVisibility (Style.Visibility value)

Sets the visibility CSS property.

public final void setWidth (double value, Style.Unit unit)

Set the width css property.

public final void setZIndex (int value)

Set the z-index css property.