com.github.gwtbootstrap.client.ui.base
Class StyleHelper

java.lang.Object
  extended by com.github.gwtbootstrap.client.ui.base.StyleHelper

public class StyleHelper
extends Object

The Helper class for HasStyle interface.

Since:
2.0.4.0
Author:
ohashi keisuke, Carlos A Becker
See Also:
HasStyle, Style

Constructor Summary
StyleHelper()
           
 
Method Summary
static
<T extends UIObject>
void
addStyle(T widget, Style style)
          Adds the provided style to the widget.
static
<S extends Enum<S> & Style>
void
changeStyle(UIObject widget, S style, Class<S> styleEnums)
          Change the style.
static
<S extends Style>
void
changeStyle(UIObject widget, S style, S[] otherStyles)
          Change the style.
static
<T extends UIObject>
void
removeStyle(T widget, Style style)
          Removes the provided style from the widget.
static
<T extends UIObject>
void
setStyle(T widget, Style style)
          Replaces the widget's style with the provided one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleHelper

public StyleHelper()
Method Detail

addStyle

public static <T extends UIObject> void addStyle(T widget,
                                                 Style style)
Adds the provided style to the widget.

Parameters:
widget - the widget to be added style.
style - the style to be added to the Widget.

setStyle

public static <T extends UIObject> void setStyle(T widget,
                                                 Style style)
Replaces the widget's style with the provided one.

Parameters:
widget - the widget to be applied style.
style - the style to be applied to the Widget.

removeStyle

public static <T extends UIObject> void removeStyle(T widget,
                                                    Style style)
Removes the provided style from the widget.

Parameters:
widget - the widget to be removed style.
style - the style to be removed from the Widget.

changeStyle

public static <S extends Enum<S> & Style> void changeStyle(UIObject widget,
                                                          S style,
                                                          Class<S> styleEnums)
Change the style.

Parameters:
widget - the widget to be changed style.
style - the style to be applied to the widget.
styleEnums - other styles.

changeStyle

public static <S extends Style> void changeStyle(UIObject widget,
                                                 S style,
                                                 S[] otherStyles)
Change the style.

Parameters:
widget - the widget to be changed style.
style - the style to be applied to the widget.
otherStyles - other styles.


Copyright © 2012 gwtbootstrap. All Rights Reserved.