public class Style
extends com.google.gwt.dom.client.Style
Style to add constants for standard property names and values.| Modifier and Type | Class and Description |
|---|---|
static class |
Style.Display
Standard values for
DISPLAY. |
static class |
Style.Float
Standard values for
FLOAT. |
static class |
Style.FloatProperty
Defines the
float CSS property. |
static class |
Style.FontSize
The font-size property sets the size of a font.
|
static class |
Style.FontStyle
Standard values for
FONT_STYLE. |
static class |
Style.FontWeight
Standard values for
FONT_WEIGHT. |
static class |
Style.IEOldFloatProperty
Specific implementation of
Style.FloatProperty for older versions of Internet Explorer (6, 7 and 8). |
static class |
Style.Margin
Standard values for
MARGIN_LEFT and MARGIN_RIGHT properties. |
static class |
Style.Position
Standard values for
POSITION. |
static class |
Style.TextAlign
The text-align property aligns the text in an element.
|
static class |
Style.TextDecoration
Standard values for
TEXT_DECORATION. |
static class |
Style.Visibility
Standard values for
VISIBILITY. |
com.google.gwt.dom.client.Style.BorderStyle, com.google.gwt.dom.client.Style.Clear, com.google.gwt.dom.client.Style.Cursor, com.google.gwt.dom.client.Style.HasCssName, com.google.gwt.dom.client.Style.ListStyleType, com.google.gwt.dom.client.Style.OutlineStyle, com.google.gwt.dom.client.Style.Overflow, com.google.gwt.dom.client.Style.TableLayout, com.google.gwt.dom.client.Style.TextJustify, com.google.gwt.dom.client.Style.TextOverflow, com.google.gwt.dom.client.Style.TextTransform, com.google.gwt.dom.client.Style.Unit, com.google.gwt.dom.client.Style.VerticalAlign, com.google.gwt.dom.client.Style.WhiteSpace| Modifier and Type | Field and Description |
|---|---|
static Property |
BACKGROUND_COLOR
The background-color property sets the background color of an element.
|
static Property |
COLOR
The color property specifies the color of text.
|
static String |
DISPLAY
Sets how/if an element is displayed.
|
static Property |
FLOAT
The float property specifies whether or not a box (an element) should float.
|
static Property |
FONT_FAMILY
The font-family property is a prioritized list of font family names and/or generic family names for an element.
|
static Property |
FONT_SIZE
The font-size property sets the size of a font.
|
static Property |
FONT_STYLE
Sets the style of a font.
|
static Property |
FONT_WEIGHT
Sets how thick or thin characters in text should be displayed.
|
static String |
HEIGHT
sets the height of an element.
|
static String |
LEFT
Sets how far the left edge of an element is to the right/left of the left edge of the parent element.
|
static Property |
MARGIN_LEFT
The margin-left property sets the left margin of an element.
|
static Property |
MARGIN_RIGHT
The margin-right property sets the right margin of an element.
|
static String |
POSITION
Places an element in a static, relative, absolute or fixed position.
|
static String |
STYLE_ATTRIBUTE
The name of the style attribute.
|
static String |
STYLE_PROPERTY
The name of the style property holding the value of the
STYLE_ATTRIBUTE. |
static Property |
TEXT_ALIGN
The text-align property aligns the text in an element.
|
static Property |
TEXT_DECORATION
Decorates the text.
|
static String |
TOP
Sets how far the top edge of an element is above/below the top edge of the parent element.
|
static Property |
VERTICAL_ALIGN
The vertical-align property sets the vertical alignment of an element.
|
static String |
VISIBILITY
The visibility property sets if an element should be visible or invisible.
|
static String |
WIDTH
Sets the width of an element.
|
static String |
Z_INDEX
Sets the stack order of an element.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Style()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
toCamelCase(String propertyName)
Some browsers expect the camel case form of a style property.
|
clearBackgroundColor, clearBackgroundImage, clearBorderColor, clearBorderStyle, clearBorderWidth, clearBottom, clearClear, clearColor, clearCursor, clearDisplay, clearFloat, clearFontSize, clearFontStyle, clearFontWeight, clearHeight, clearLeft, clearLineHeight, clearListStyleType, clearMargin, clearMarginBottom, clearMarginLeft, clearMarginRight, clearMarginTop, clearOpacity, clearOutlineColor, clearOutlineStyle, clearOutlineWidth, clearOverflow, clearOverflowX, clearOverflowY, clearPadding, clearPaddingBottom, clearPaddingLeft, clearPaddingRight, clearPaddingTop, clearPosition, clearProperty, clearRight, clearTableLayout, clearTextAlign, clearTextDecoration, clearTextIndent, clearTextJustify, clearTextOverflow, clearTextTransform, clearTop, clearVisibility, clearWhiteSpace, clearWidth, clearZIndex, getBackgroundColor, getBackgroundImage, getBorderColor, getBorderStyle, getBorderWidth, getBottom, getClear, getColor, getCursor, getDisplay, getFontSize, getFontStyle, getFontWeight, getHeight, getLeft, getLineHeight, getListStyleType, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOpacity, getOverflow, getOverflowX, getOverflowY, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPosition, getProperty, getRight, getTableLayout, getTextAlign, getTextDecoration, getTextIndent, getTextJustify, getTextOverflow, getTextTransform, getTop, getVerticalAlign, getVisibility, getWhiteSpace, getWidth, getZIndex, setBackgroundColor, setBackgroundImage, setBorderColor, setBorderStyle, setBorderWidth, setBottom, setClear, setColor, setCursor, setDisplay, setFloat, setFontSize, setFontStyle, setFontWeight, setHeight, setLeft, setLineHeight, setListStyleType, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setOpacity, setOutlineColor, setOutlineStyle, setOutlineWidth, setOverflow, setOverflowX, setOverflowY, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPosition, setProperty, setProperty, setPropertyPx, setRight, setTableLayout, setTextAlign, setTextDecoration, setTextIndent, setTextJustify, setTextOverflow, setTextTransform, setTop, setVerticalAlign, setVerticalAlign, setVisibility, setWhiteSpace, setWidth, setZIndexpublic static final String STYLE_ATTRIBUTE
public static final String STYLE_PROPERTY
STYLE_ATTRIBUTE.public static final String DISPLAY
public static final String Z_INDEX
public static final Property FONT_WEIGHT
public static final Property FONT_STYLE
public static final Property TEXT_DECORATION
public static final Property TEXT_ALIGN
public static final Property FONT_FAMILY
public static final Property FONT_SIZE
public static final Property COLOR
public static final Property BACKGROUND_COLOR
The background of an element is the total size of the element, including padding and border (but not the margin).
public static final String WIDTH
public static final String HEIGHT
public static final String TOP
public static final String LEFT
public static final String POSITION
public static final String VISIBILITY
DISPLAY property to create invisible elements that do not take up space.public static final Property FLOAT
public static final Property MARGIN_LEFT
public static final Property MARGIN_RIGHT
public static final Property VERTICAL_ALIGN
protected Style()
public static String toCamelCase(String propertyName)
propertyName - The name of style property.Copyright © 2004–2014 XWiki. All rights reserved.