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
Modifier and TypeClassDescriptionstatic enum
Enum for the border-style property.static enum
Enum for the 'clear' CSS property.static enum
Enum for the cursor property.static enum
Enum for the display property.static enum
Enum for the float property.static enum
Enum for the font-style property.static enum
Enum for the font-weight property.static interface
Interface to be implemented by enumerated CSS values.static enum
Enum for the list-style-type property.static enum
Enum for the outline-style property.static enum
Enum for the overflow property.static enum
Enum for the position property.static enum
Enum for the table-layout property.static enum
Enum for the text-align property.static enum
Enum for the 'text-decoration' CSS property.static enum
Enum for the 'text-justify' CSS3 property.static enum
Enum for the 'text-overflow' CSS3 property.static enum
Enum for the 'text-transform' CSS property.static enum
CSS length units.static enum
Enum for the vertical-align property.static enum
Enum for the visibility property.static enum
Enum for the 'white-space' CSS property. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
Clear the background-color css property.final void
Clear the background-image css property.final void
Clear the border-color css property.final void
Clears the border-style CSS property.final void
Clear the border-width css property.final void
Clear the bottom css property.final void
Clear the 'clear' CSS property.final void
Clear the color css property.final void
Clears the cursor CSS property.final void
Clears the display CSS property.final void
Clear the float css property.final void
Clear the font-size css property.final void
Clears the font-style CSS property.final void
Clears the font-weight CSS property.final void
Clear the height css property.final void
Clear the left css property.final void
Clear the line-height css property.final void
Clears the list-style-type CSS property.final void
Clear the margin css property.final void
Clear the margin-bottom css property.final void
Clear the margin-left css property.final void
Clear the margin-right css property.final void
Clear the margin-top css property.final void
Clear the opacity css property.final void
Clear the outline-color css property.final void
Clears the outline-style CSS property.final void
Clear the outline-width css property.final void
Clears the overflow CSS property.final void
Clears the overflow-x CSS property.final void
Clears the overflow-y CSS property.final void
Clear the padding css property.final void
Clear the padding-bottom css property.final void
Clear the padding-left css property.final void
Clear the padding-right css property.final void
Clear the padding-top css property.final void
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
Clear the right css property.final void
Clear the table-layout css property.final void
Clear the 'text-align' CSS property.final void
Clears the text-decoration CSS property.final void
Clear the 'text-indent' CSS property.final void
Clear the 'text-justify' CSS3 property.final void
Clear the 'text-overflow' CSS3 property.final void
Clear the 'text-transform' CSS property.final void
clearTop()
Clear the top css property.final void
Clears the visibility CSS property.final void
Clear the 'white-space' CSS property.final void
Clear the width css property.final void
Clear the z-index css property.final String
Get the background-color css property.final String
Get the background-image css property.final String
Get the border-color css property.final String
Gets the border-style CSS property.final String
Get the border-width css property.final String
Get the bottom css property.final String
getClear()
Get the 'clear' CSS property.final String
getColor()
Get the color css property.final String
Gets the cursor CSS property.final String
Gets the display CSS property.final String
Get the font-size css property.final String
Gets the font-style CSS property.final String
Gets the font-weight CSS property.final String
Get the height css property.final String
getLeft()
Get the left css property.final String
Get the line-height css property.final String
Gets the list-style-type CSS property.final String
Get the margin css property.final String
Get the margin-bottom css property.final String
Get the margin-left css property.final String
Get the margin-right css property.final String
Get the margin-top css property.final String
Get the opacity css property.final String
Gets the overflow CSS property.final String
Gets the overflow-x CSS property.final String
Gets the overflow-y CSS property.final String
Get the padding css property.final String
Get the padding-bottom css property.final String
Get the padding-left css property.final String
Get the padding-right css property.final String
Get the padding-top css property.final String
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
Gets the table-layout property.final String
Get the 'text-align' CSS property.final String
Gets the text-decoration CSS property.final String
Get the 'text-indent' CSS property.final String
Get the 'text-justify' CSS3 property.final String
Get the 'text-overflow' CSS3 property.final String
Get the 'text-transform' CSS property.final String
getTop()
Get the top css property.final String
Gets the vertical-align CSS property.final String
Gets the visibility CSS property.final String
Get the 'white-space' CSS property.final String
getWidth()
Get the width css property.final String
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
setClear
(Style.Clear value) Sets the 'clear' CSS property.final void
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
setLineHeight
(double value, Style.Unit unit) Set the line-height css property.final void
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
setOutlineColor
(String value) Set the outline-color css property.final void
Sets the outline-style CSS property.final void
setOutlineWidth
(double value, Style.Unit unit) Set the outline-width 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
setTextAlign
(Style.TextAlign value) Set the 'text-align' CSS property.final void
Sets the text-decoration CSS property.final void
setTextIndent
(double value, Style.Unit unit) Set the 'text-indent' CSS property.final void
setTextJustify
(Style.TextJustify value) Set the 'text-justify' CSS3 property.final void
Set the 'text-overflow' CSS3 property.final void
Set the 'text-transform' CSS property.final void
setTop
(double value, Style.Unit unit) Set the top css property.final void
setVerticalAlign
(double value, Style.Unit unit) Sets the vertical-align CSS property.final void
Sets the vertical-align CSS property.final void
setVisibility
(Style.Visibility value) Sets the visibility CSS property.final void
setWhiteSpace
(Style.WhiteSpace value) Set the 'white-space' 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.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.
-