public class StyleHelper extends Object
HasStyle
interface.Constructor and Description |
---|
StyleHelper() |
Modifier and Type | Method and Description |
---|---|
static <T extends UIObject> |
addStyle(T widget,
Style style)
Adds the provided style to the widget.
|
static <S extends Enum<S> & Style> |
changeStyle(UIObject widget,
S style,
Class<S> styleEnums)
Change the style.
|
static <S extends Style> |
changeStyle(UIObject widget,
S style,
S[] otherStyles)
Change the style.
|
static <T extends UIObject> |
removeStyle(T widget,
Style style)
Removes the provided style from the widget.
|
static <T extends UIObject> |
setStyle(T widget,
Style style)
Replaces the widget's style with the provided one.
|
public StyleHelper()
public static <T extends UIObject> void addStyle(T widget, Style style)
widget
- the widget to be added style.style
- the style to be added to the Widget.public static <T extends UIObject> void setStyle(T widget, Style style)
widget
- the widget to be applied style.style
- the style to be applied to the Widget.public static <T extends UIObject> void removeStyle(T widget, Style style)
widget
- the widget to be removed style.style
- the style to be removed from the Widget.public static <S extends Enum<S> & Style> void changeStyle(UIObject widget, S style, Class<S> styleEnums)
widget
- the widget to be changed style.style
- the style to be applied to the widget.styleEnums
- other styles.public static <S extends Style> void changeStyle(UIObject widget, S style, S[] otherStyles)
widget
- the widget to be changed style.style
- the style to be applied to the widget.otherStyles
- other styles.Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.