|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.core.client.JavaScriptObject com.google.gwt.dom.client.Style
public class 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)
.
Element.getStyle()
Nested Class Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
protected |
Style()
|
Method Summary | |
---|---|
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(java.lang.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. |
java.lang.String |
getBackgroundColor()
Get the background-color css property. |
java.lang.String |
getBackgroundImage()
Get the background-image css property. |
java.lang.String |
getBorderColor()
Get the border-color css property. |
java.lang.String |
getBorderStyle()
Gets the border-style CSS property. |
java.lang.String |
getBorderWidth()
Get the border-width css property. |
java.lang.String |
getBottom()
Get the bottom css property. |
java.lang.String |
getClear()
Get the 'clear' CSS property. |
java.lang.String |
getColor()
Get the color css property. |
java.lang.String |
getCursor()
Gets the cursor CSS property. |
java.lang.String |
getDisplay()
Gets the display CSS property. |
java.lang.String |
getFontSize()
Get the font-size css property. |
java.lang.String |
getFontStyle()
Gets the font-style CSS property. |
java.lang.String |
getFontWeight()
Gets the font-weight CSS property. |
java.lang.String |
getHeight()
Get the height css property. |
java.lang.String |
getLeft()
Get the left css property. |
java.lang.String |
getLineHeight()
Get the line-height css property. |
java.lang.String |
getListStyleType()
Gets the list-style-type CSS property. |
java.lang.String |
getMargin()
Get the margin css property. |
java.lang.String |
getMarginBottom()
Get the margin-bottom css property. |
java.lang.String |
getMarginLeft()
Get the margin-left css property. |
java.lang.String |
getMarginRight()
Get the margin-right css property. |
java.lang.String |
getMarginTop()
Get the margin-top css property. |
java.lang.String |
getOpacity()
Get the opacity css property. |
java.lang.String |
getOverflow()
Gets the overflow CSS property. |
java.lang.String |
getOverflowX()
Gets the overflow-x CSS property. |
java.lang.String |
getOverflowY()
Gets the overflow-y CSS property. |
java.lang.String |
getPadding()
Get the padding css property. |
java.lang.String |
getPaddingBottom()
Get the padding-bottom css property. |
java.lang.String |
getPaddingLeft()
Get the padding-left css property. |
java.lang.String |
getPaddingRight()
Get the padding-right css property. |
java.lang.String |
getPaddingTop()
Get the padding-top css property. |
java.lang.String |
getPosition()
Gets the position CSS property. |
java.lang.String |
getProperty(java.lang.String name)
Gets the value of a named property. |
java.lang.String |
getRight()
Get the right css property. |
java.lang.String |
getTableLayout()
Gets the table-layout property. |
java.lang.String |
getTextAlign()
Get the 'text-align' CSS property. |
java.lang.String |
getTextDecoration()
Gets the text-decoration CSS property. |
java.lang.String |
getTextIndent()
Get the 'text-indent' CSS property. |
java.lang.String |
getTextJustify()
Get the 'text-justify' CSS3 property. |
java.lang.String |
getTextOverflow()
Get the 'text-overflow' CSS3 property. |
java.lang.String |
getTextTransform()
Get the 'text-transform' CSS property. |
java.lang.String |
getTop()
Get the top css property. |
java.lang.String |
getVerticalAlign()
Gets the vertical-align CSS property. |
java.lang.String |
getVisibility()
Gets the visibility CSS property. |
java.lang.String |
getWhiteSpace()
Get the 'white-space' CSS property. |
java.lang.String |
getWidth()
Get the width css property. |
java.lang.String |
getZIndex()
Get the z-index css property. |
void |
setBackgroundColor(java.lang.String value)
Set the background-color css property. |
void |
setBackgroundImage(java.lang.String value)
Set the background-image css property. |
void |
setBorderColor(java.lang.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(java.lang.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(java.lang.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(java.lang.String name,
double value,
Style.Unit unit)
Sets the value of a named property in the specified units. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the value of a named property. |
void |
setPropertyPx(java.lang.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. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Style()
Method Detail |
---|
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(java.lang.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 java.lang.String getBackgroundColor()
public final java.lang.String getBackgroundImage()
public final java.lang.String getBorderColor()
public final java.lang.String getBorderStyle()
public final java.lang.String getBorderWidth()
public final java.lang.String getBottom()
public final java.lang.String getClear()
public final java.lang.String getColor()
public final java.lang.String getCursor()
public final java.lang.String getDisplay()
public final java.lang.String getFontSize()
public final java.lang.String getFontStyle()
public final java.lang.String getFontWeight()
public final java.lang.String getHeight()
public final java.lang.String getLeft()
public final java.lang.String getLineHeight()
public final java.lang.String getListStyleType()
public final java.lang.String getMargin()
public final java.lang.String getMarginBottom()
public final java.lang.String getMarginLeft()
public final java.lang.String getMarginRight()
public final java.lang.String getMarginTop()
public final java.lang.String getOpacity()
public final java.lang.String getOverflow()
public final java.lang.String getOverflowX()
public final java.lang.String getOverflowY()
public final java.lang.String getPadding()
public final java.lang.String getPaddingBottom()
public final java.lang.String getPaddingLeft()
public final java.lang.String getPaddingRight()
public final java.lang.String getPaddingTop()
public final java.lang.String getPosition()
public final java.lang.String getProperty(java.lang.String name)
public final java.lang.String getRight()
public final java.lang.String getTableLayout()
public final java.lang.String getTextAlign()
public final java.lang.String getTextDecoration()
public final java.lang.String getTextIndent()
public final java.lang.String getTextJustify()
public final java.lang.String getTextOverflow()
public final java.lang.String getTextTransform()
public final java.lang.String getTop()
public final java.lang.String getVerticalAlign()
public final java.lang.String getVisibility()
public final java.lang.String getWhiteSpace()
public final java.lang.String getWidth()
public final java.lang.String getZIndex()
public final void setBackgroundColor(java.lang.String value)
public final void setBackgroundImage(java.lang.String value)
public final void setBorderColor(java.lang.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(java.lang.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(java.lang.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(java.lang.String name, java.lang.String value)
public final void setProperty(java.lang.String name, double value, Style.Unit unit)
public final void setPropertyPx(java.lang.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)
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |