com.github.gwtbootstrap.client.ui.constants
Enum ResponsiveStyle

java.lang.Object
  extended by java.lang.Enum<ResponsiveStyle>
      extended by com.github.gwtbootstrap.client.ui.constants.ResponsiveStyle
All Implemented Interfaces:
Style, Serializable, Comparable<ResponsiveStyle>

public enum ResponsiveStyle
extends Enum<ResponsiveStyle>
implements Style

The way a responsive widget is shown.

Since:
2.0.4.0
Author:
Dominik Mayer

Enum Constant Summary
HIDDEN_DESKTOP
          The widget is hidden on desktop computers.
HIDDEN_PHONE
          The widget is hidden on phones.
HIDDEN_TABLET
          The widget is hidden on tablets.
VISIBLE_DESKTOP
          The widget is only shown on desktop computers.
VISIBLE_PHONE
          The widget is only shown on phones.
VISIBLE_TABLET
          The widget is only shown on tablets.
 
Method Summary
 String get()
          Gets the CSS class name (or a part thereof) associated with this constant.
static ResponsiveStyle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResponsiveStyle[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

VISIBLE_PHONE

public static final ResponsiveStyle VISIBLE_PHONE
The widget is only shown on phones.


HIDDEN_PHONE

public static final ResponsiveStyle HIDDEN_PHONE
The widget is hidden on phones.


VISIBLE_TABLET

public static final ResponsiveStyle VISIBLE_TABLET
The widget is only shown on tablets.


HIDDEN_TABLET

public static final ResponsiveStyle HIDDEN_TABLET
The widget is hidden on tablets.


VISIBLE_DESKTOP

public static final ResponsiveStyle VISIBLE_DESKTOP
The widget is only shown on desktop computers.


HIDDEN_DESKTOP

public static final ResponsiveStyle HIDDEN_DESKTOP
The widget is hidden on desktop computers.

Method Detail

values

public static ResponsiveStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ResponsiveStyle c : ResponsiveStyle.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ResponsiveStyle valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

get

public String get()
Gets the CSS class name (or a part thereof) associated with this constant.

Specified by:
get in interface Style
Returns:
the name of the class


Copyright © 2012 gwtbootstrap. All Rights Reserved.