public class Style extends JavaScriptObject
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)
.
Element.getStyle()
Modifier and Type | Class and Description |
---|---|
static class |
Style.BorderStyle
Enum for the border-style property.
|
static class |
Style.Clear
Enum for the 'clear' CSS property.
|
static class |
Style.Cursor
Enum for the cursor property.
|
static class |
Style.Display
Enum for the display property.
|
static class |
Style.Float
Enum for the float property.
|
static class |
Style.FontStyle
Enum for the font-style property.
|
static class |
Style.FontWeight
Enum for the font-weight property.
|
static interface |
Style.HasCssName
Interface to be implemented by enumerated CSS values.
|
static class |
Style.ListStyleType
Enum for the list-style-type property.
|
static class |
Style.OutlineStyle
Enum for the outline-style property.
|
static class |
Style.Overflow
Enum for the overflow property.
|
static class |
Style.Position
Enum for the position property.
|
static class |
Style.TableLayout
Enum for the table-layout property.
|
static class |
Style.TextAlign
Enum for the text-align property.
|
static class |
Style.TextDecoration
Enum for the 'text-decoration' CSS property.
|
static class |
Style.TextJustify
Enum for the 'text-justify' CSS3 property.
|
static class |
Style.TextOverflow
Enum for the 'text-overflow' CSS3 property.
|
static class |
Style.TextTransform
Enum for the 'text-transform' CSS property.
|
static class |
Style.Unit
CSS length units.
|
static class |
Style.VerticalAlign
Enum for the vertical-align property.
|
static class |
Style.Visibility
Enum for the visibility property.
|
static class |
Style.WhiteSpace
Enum for the 'white-space' CSS property.
|
Modifier | Constructor and Description |
---|---|
protected |
Style() |
Modifier and Type | Method and Description |
---|---|
void |
clearBackgroundColor()
Clear the background-color css property.
|
void |
clearBackgroundImage()
Clear the background-image css property.
|
void |
clearBorderColor()
Clear the border-color css property.
|
void |
clearBorderStyle()
Clears the border-style CSS property.
|
void |
clearBorderWidth()
Clear the border-width css property.
|
void |
clearBottom()
Clear the bottom css property.
|
void |
clearClear()
Clear the 'clear' CSS property.
|
void |
clearColor()
Clear the color css property.
|
void |
clearCursor()
Clears the cursor CSS property.
|
void |
clearDisplay()
Clears the display CSS property.
|
void |
clearFloat()
Clear the float css property.
|
void |
clearFontSize()
Clear the font-size css property.
|
void |
clearFontStyle()
Clears the font-style CSS property.
|
void |
clearFontWeight()
Clears the font-weight CSS property.
|
void |
clearHeight()
Clear the height css property.
|
void |
clearLeft()
Clear the left css property.
|
void |
clearLineHeight()
Clear the line-height css property.
|
void |
clearListStyleType()
Clears the list-style-type CSS property.
|
void |
clearMargin()
Clear the margin css property.
|
void |
clearMarginBottom()
Clear the margin-bottom css property.
|
void |
clearMarginLeft()
Clear the margin-left css property.
|
void |
clearMarginRight()
Clear the margin-right css property.
|
void |
clearMarginTop()
Clear the margin-top css property.
|
void |
clearOpacity()
Clear the opacity css property.
|
void |
clearOutlineColor()
Clear the outline-color css property.
|
void |
clearOutlineStyle()
Clears the outline-style CSS property.
|
void |
clearOutlineWidth()
Clear the outline-width css property.
|
void |
clearOverflow()
Clears the overflow CSS property.
|
void |
clearOverflowX()
Clears the overflow-x CSS property.
|
void |
clearOverflowY()
Clears the overflow-y CSS property.
|
void |
clearPadding()
Clear the padding css property.
|
void |
clearPaddingBottom()
Clear the padding-bottom css property.
|
void |
clearPaddingLeft()
Clear the padding-left css property.
|
void |
clearPaddingRight()
Clear the padding-right css property.
|
void |
clearPaddingTop()
Clear the padding-top css property.
|
void |
clearPosition()
Clears the position CSS property.
|
void |
clearProperty(String name)
Clears the value of a named property, causing it to revert to its default.
|
void |
clearRight()
Clear the right css property.
|
void |
clearTableLayout()
Clear the table-layout css property.
|
void |
clearTextAlign()
Clear the 'text-align' CSS property.
|
void |
clearTextDecoration()
Clears the text-decoration CSS property.
|
void |
clearTextIndent()
Clear the 'text-indent' CSS property.
|
void |
clearTextJustify()
Clear the 'text-justify' CSS3 property.
|
void |
clearTextOverflow()
Clear the 'text-overflow' CSS3 property.
|
void |
clearTextTransform()
Clear the 'text-transform' CSS property.
|
void |
clearTop()
Clear the top css property.
|
void |
clearVisibility()
Clears the visibility CSS property.
|
void |
clearWhiteSpace()
Clear the 'white-space' CSS property.
|
void |
clearWidth()
Clear the width css property.
|
void |
clearZIndex()
Clear the z-index css property.
|
String |
getBackgroundColor()
Get the background-color css property.
|
String |
getBackgroundImage()
Get the background-image css property.
|
String |
getBorderColor()
Get the border-color css property.
|
String |
getBorderStyle()
Gets the border-style CSS property.
|
String |
getBorderWidth()
Get the border-width css property.
|
String |
getBottom()
Get the bottom css property.
|
String |
getClear()
Get the 'clear' CSS property.
|
String |
getColor()
Get the color css property.
|
String |
getCursor()
Gets the cursor CSS property.
|
String |
getDisplay()
Gets the display CSS property.
|
String |
getFontSize()
Get the font-size css property.
|
String |
getFontStyle()
Gets the font-style CSS property.
|
String |
getFontWeight()
Gets the font-weight CSS property.
|
String |
getHeight()
Get the height css property.
|
String |
getLeft()
Get the left css property.
|
String |
getLineHeight()
Get the line-height css property.
|
String |
getListStyleType()
Gets the list-style-type CSS property.
|
String |
getMargin()
Get the margin css property.
|
String |
getMarginBottom()
Get the margin-bottom css property.
|
String |
getMarginLeft()
Get the margin-left css property.
|
String |
getMarginRight()
Get the margin-right css property.
|
String |
getMarginTop()
Get the margin-top css property.
|
String |
getOpacity()
Get the opacity css property.
|
String |
getOverflow()
Gets the overflow CSS property.
|
String |
getOverflowX()
Gets the overflow-x CSS property.
|
String |
getOverflowY()
Gets the overflow-y CSS property.
|
String |
getPadding()
Get the padding css property.
|
String |
getPaddingBottom()
Get the padding-bottom css property.
|
String |
getPaddingLeft()
Get the padding-left css property.
|
String |
getPaddingRight()
Get the padding-right css property.
|
String |
getPaddingTop()
Get the padding-top css property.
|
String |
getPosition()
Gets the position CSS property.
|
String |
getProperty(String name)
Gets the value of a named property.
|
String |
getRight()
Get the right css property.
|
String |
getTableLayout()
Gets the table-layout property.
|
String |
getTextAlign()
Get the 'text-align' CSS property.
|
String |
getTextDecoration()
Gets the text-decoration CSS property.
|
String |
getTextIndent()
Get the 'text-indent' CSS property.
|
String |
getTextJustify()
Get the 'text-justify' CSS3 property.
|
String |
getTextOverflow()
Get the 'text-overflow' CSS3 property.
|
String |
getTextTransform()
Get the 'text-transform' CSS property.
|
String |
getTop()
Get the top css property.
|
String |
getVerticalAlign()
Gets the vertical-align CSS property.
|
String |
getVisibility()
Gets the visibility CSS property.
|
String |
getWhiteSpace()
Get the 'white-space' CSS property.
|
String |
getWidth()
Get the width css property.
|
String |
getZIndex()
Get the z-index css property.
|
void |
setBackgroundColor(String value)
Set the background-color css property.
|
void |
setBackgroundImage(String value)
Set the background-image css property.
|
void |
setBorderColor(String value)
Set the border-color css property.
|
void |
setBorderStyle(Style.BorderStyle value)
Sets the border-style CSS property.
|
void |
setBorderWidth(double value,
Style.Unit unit)
Set the border-width css property.
|
void |
setBottom(double value,
Style.Unit unit)
Set the bottom css property.
|
void |
setClear(Style.Clear value)
Sets the 'clear' CSS property.
|
void |
setColor(String value)
Sets the color CSS property.
|
void |
setCursor(Style.Cursor value)
Sets the cursor CSS property.
|
void |
setDisplay(Style.Display value)
Sets the display CSS property.
|
void |
setFloat(Style.Float value)
Set the float css property.
|
void |
setFontSize(double value,
Style.Unit unit)
Set the font-size css property.
|
void |
setFontStyle(Style.FontStyle value)
Sets the font-style CSS property.
|
void |
setFontWeight(Style.FontWeight value)
Sets the font-weight CSS property.
|
void |
setHeight(double value,
Style.Unit unit)
Set the height css property.
|
void |
setLeft(double value,
Style.Unit unit)
Set the left css property.
|
void |
setLineHeight(double value,
Style.Unit unit)
Set the line-height css property.
|
void |
setListStyleType(Style.ListStyleType value)
Sets the list-style-type CSS property.
|
void |
setMargin(double value,
Style.Unit unit)
Set the margin css property.
|
void |
setMarginBottom(double value,
Style.Unit unit)
Set the margin-bottom css property.
|
void |
setMarginLeft(double value,
Style.Unit unit)
Set the margin-left css property.
|
void |
setMarginRight(double value,
Style.Unit unit)
Set the margin-right css property.
|
void |
setMarginTop(double value,
Style.Unit unit)
Set the margin-top css property.
|
void |
setOpacity(double value)
Set the opacity css property.
|
void |
setOutlineColor(String value)
Set the outline-color css property.
|
void |
setOutlineStyle(Style.OutlineStyle value)
Sets the outline-style CSS property.
|
void |
setOutlineWidth(double value,
Style.Unit unit)
Set the outline-width css property.
|
void |
setOverflow(Style.Overflow value)
Sets the overflow CSS property.
|
void |
setOverflowX(Style.Overflow value)
Sets the overflow-x CSS property.
|
void |
setOverflowY(Style.Overflow value)
Sets the overflow-y CSS property.
|
void |
setPadding(double value,
Style.Unit unit)
Set the padding css property.
|
void |
setPaddingBottom(double value,
Style.Unit unit)
Set the padding-bottom css property.
|
void |
setPaddingLeft(double value,
Style.Unit unit)
Set the padding-left css property.
|
void |
setPaddingRight(double value,
Style.Unit unit)
Set the padding-right css property.
|
void |
setPaddingTop(double value,
Style.Unit unit)
Set the padding-top css property.
|
void |
setPosition(Style.Position value)
Sets the position CSS property.
|
void |
setProperty(String name,
double value,
Style.Unit unit)
Sets the value of a named property in the specified units.
|
void |
setProperty(String name,
String value)
Sets the value of a named property.
|
void |
setPropertyPx(String name,
int value)
Sets the value of a named property, in pixels.
|
void |
setRight(double value,
Style.Unit unit)
Set the right css property.
|
void |
setTableLayout(Style.TableLayout value)
Set the table-layout CSS property.
|
void |
setTextAlign(Style.TextAlign value)
Set the 'text-align' CSS property.
|
void |
setTextDecoration(Style.TextDecoration value)
Sets the text-decoration CSS property.
|
void |
setTextIndent(double value,
Style.Unit unit)
Set the 'text-indent' CSS property.
|
void |
setTextJustify(Style.TextJustify value)
Set the 'text-justify' CSS3 property.
|
void |
setTextOverflow(Style.TextOverflow value)
Set the 'text-overflow' CSS3 property.
|
void |
setTextTransform(Style.TextTransform value)
Set the 'text-transform' CSS property.
|
void |
setTop(double value,
Style.Unit unit)
Set the top css property.
|
void |
setVerticalAlign(double value,
Style.Unit unit)
Sets the vertical-align CSS property.
|
void |
setVerticalAlign(Style.VerticalAlign value)
Sets the vertical-align CSS property.
|
void |
setVisibility(Style.Visibility value)
Sets the visibility CSS property.
|
void |
setWhiteSpace(Style.WhiteSpace value)
Set the 'white-space' CSS property.
|
void |
setWidth(double value,
Style.Unit unit)
Set the width css property.
|
void |
setZIndex(int value)
Set the z-index css property.
|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public final void clearBackgroundColor()
public final void clearBackgroundImage()
public final void clearBorderColor()
public final void clearBorderStyle()
public final void clearBorderWidth()
public final void clearBottom()
public final void clearClear()
public final void clearColor()
public final void clearCursor()
public final void clearDisplay()
public final void clearFloat()
public final void clearFontSize()
public final void clearFontStyle()
public final void clearFontWeight()
public final void clearHeight()
public final void clearLeft()
public final void clearLineHeight()
public final void clearListStyleType()
public final void clearMargin()
public final void clearMarginBottom()
public final void clearMarginLeft()
public final void clearMarginRight()
public final void clearMarginTop()
public final void clearOpacity()
public final void clearOutlineColor()
public final void clearOutlineStyle()
public final void clearOutlineWidth()
public final void clearOverflow()
public final void clearOverflowX()
public final void clearOverflowY()
public final void clearPadding()
public final void clearPaddingBottom()
public final void clearPaddingLeft()
public final void clearPaddingRight()
public final void clearPaddingTop()
public final void clearPosition()
public final void clearProperty(String name)
public final void clearRight()
public final void clearTableLayout()
public final void clearTextAlign()
public final void clearTextDecoration()
public final void clearTextIndent()
public final void clearTextJustify()
public final void clearTextOverflow()
public final void clearTextTransform()
public final void clearTop()
public final void clearVisibility()
public final void clearWhiteSpace()
public final void clearWidth()
public final void clearZIndex()
public final String getBackgroundColor()
public final String getBackgroundImage()
public final String getBorderColor()
public final String getBorderStyle()
public final String getBorderWidth()
public final String getBottom()
public final String getClear()
public final String getColor()
public final String getCursor()
public final String getDisplay()
public final String getFontSize()
public final String getFontStyle()
public final String getFontWeight()
public final String getHeight()
public final String getLeft()
public final String getLineHeight()
public final String getListStyleType()
public final String getMargin()
public final String getMarginBottom()
public final String getMarginLeft()
public final String getMarginRight()
public final String getMarginTop()
public final String getOpacity()
public final String getOverflow()
public final String getOverflowX()
public final String getOverflowY()
public final String getPadding()
public final String getPaddingBottom()
public final String getPaddingLeft()
public final String getPaddingRight()
public final String getPaddingTop()
public final String getPosition()
public final String getRight()
public final String getTableLayout()
public final String getTextAlign()
public final String getTextDecoration()
public final String getTextIndent()
public final String getTextJustify()
public final String getTextOverflow()
public final String getTextTransform()
public final String getTop()
public final String getVerticalAlign()
public final String getVisibility()
public final String getWhiteSpace()
public final String getWidth()
public final String getZIndex()
public final void setBackgroundColor(String value)
public final void setBackgroundImage(String value)
public final void setBorderColor(String value)
public final void setBorderStyle(Style.BorderStyle value)
public final void setBorderWidth(double value, Style.Unit unit)
public final void setBottom(double value, Style.Unit unit)
public final void setClear(Style.Clear value)
public final void setColor(String value)
public final void setCursor(Style.Cursor value)
public final void setDisplay(Style.Display value)
public final void setFloat(Style.Float value)
public final void setFontSize(double value, Style.Unit unit)
public final void setFontStyle(Style.FontStyle value)
public final void setFontWeight(Style.FontWeight value)
public final void setHeight(double value, Style.Unit unit)
public final void setLeft(double value, Style.Unit unit)
public final void setLineHeight(double value, Style.Unit unit)
public final void setListStyleType(Style.ListStyleType value)
public final void setMargin(double value, Style.Unit unit)
public final void setMarginBottom(double value, Style.Unit unit)
public final void setMarginLeft(double value, Style.Unit unit)
public final void setMarginRight(double value, Style.Unit unit)
public final void setMarginTop(double value, Style.Unit unit)
public final void setOpacity(double value)
public final void setOutlineColor(String value)
public final void setOutlineStyle(Style.OutlineStyle value)
public final void setOutlineWidth(double value, Style.Unit unit)
public final void setOverflow(Style.Overflow value)
public final void setOverflowX(Style.Overflow value)
public final void setOverflowY(Style.Overflow value)
public final void setPadding(double value, Style.Unit unit)
public final void setPaddingBottom(double value, Style.Unit unit)
public final void setPaddingLeft(double value, Style.Unit unit)
public final void setPaddingRight(double value, Style.Unit unit)
public final void setPaddingTop(double value, Style.Unit unit)
public final void setPosition(Style.Position value)
public final void setProperty(String name, String value)
public final void setProperty(String name, double value, Style.Unit unit)
public final void setPropertyPx(String name, int value)
value + "px"
.public final void setRight(double value, Style.Unit unit)
public final void setTableLayout(Style.TableLayout value)
public final void setTextAlign(Style.TextAlign value)
public final void setTextDecoration(Style.TextDecoration value)
public final void setTextIndent(double value, Style.Unit unit)
public final void setTextJustify(Style.TextJustify value)
public final void setTextOverflow(Style.TextOverflow value)
public final void setTextTransform(Style.TextTransform value)
public final void setTop(double value, Style.Unit unit)
public final void setVerticalAlign(Style.VerticalAlign value)
public final void setVerticalAlign(double value, Style.Unit unit)
public final void setVisibility(Style.Visibility value)
public final void setWhiteSpace(Style.WhiteSpace value)
public final void setWidth(double value, Style.Unit unit)
public final void setZIndex(int value)
Copyright © 2018. All rights reserved.