@JsType(namespace="xgl.css") public enum Unit extends Enum<Unit> implements HasCSSName
Enum Constant and Description |
---|
CH |
CM |
EM |
EX |
IN |
MM |
PC |
PCT |
PT |
PX |
REM |
VH |
VMAX |
VMIN |
VW |
Modifier and Type | Method and Description |
---|---|
String |
css() |
static Unit |
get(String unit) |
static Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Unit PX
public static final Unit CM
public static final Unit MM
public static final Unit IN
public static final Unit PT
public static final Unit PC
public static final Unit EM
public static final Unit EX
public static final Unit CH
public static final Unit REM
public static final Unit VW
public static final Unit VH
public static final Unit VMIN
public static final Unit VMAX
public static final Unit PCT
public static Unit[] values()
for (Unit c : Unit.values()) System.out.println(c);
public static Unit 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 nullpublic String css()
css
in interface HasCSSName
Copyright © 2018 Xalys. All rights reserved.