public enum Device extends Enum<Device> implements Style
Determined by the screen size.
Enum Constant and Description |
---|
DESKTOP
In the default configuration these are devices with a screen width of 768
px and above.
|
PHONE
In the default configuration these are devices with a screen width of 480
px and below.
|
TABLET
In the default configuration these are devices with a screen width of 767
px and below.
|
Modifier and Type | Method and Description |
---|---|
String |
get()
Gets the CSS class name (or a part thereof) associated with this
constant.
|
static Device |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Device[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Device PHONE
public static final Device TABLET
public static Device[] values()
for (Device c : Device.values()) System.out.println(c);
public static Device valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.