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

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

public class ResponsiveHelper
extends Object

The Helper class for IsResponsive interface.

Since:
2.0.4.0
Author:
ohashi keisuke
See Also:
IsResponsive, Device

Constructor Summary
ResponsiveHelper()
           
 
Method Summary
static
<T extends HasStyle>
void
setHideOn(T widget, Device device)
          Sets the kind of device, this widget is hidden on.
static
<T extends HasStyle>
void
setShowOn(T widget, Device device)
          Sets the kind of device, this widget is shown on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponsiveHelper

public ResponsiveHelper()
Method Detail

setShowOn

public static <T extends HasStyle> void setShowOn(T widget,
                                                  Device device)
Sets the kind of device, this widget is shown on.

The widget is not shown on any other device.

Only works if responsive design is turned on! Testlink

Parameters:
widget - The widget to be applyed responsive.
device - The device to show widget.
See Also:
Configurator.hasResponsiveDesign(), setHideOn(HasStyle, Device)

setHideOn

public static <T extends HasStyle> void setHideOn(T widget,
                                                  Device device)
Sets the kind of device, this widget is hidden on.

The widget is not hidden on any other device.

Only works if responsive design is turned on!

Parameters:
widget - The widget to be applyed responsive.
device - The device to hide widget.
See Also:
Configurator.hasResponsiveDesign(), setShowOn(HasStyle, Device)


Copyright © 2012 gwtbootstrap. All Rights Reserved.