@JsType(namespace="xgl.css") public enum FontWeight extends Enum<FontWeight> implements HasCSSName
Enum Constant and Description |
---|
BOLD |
BOLDER |
FW100 |
FW200 |
FW300 |
FW400 |
FW500 |
FW600 |
FW700 |
FW800 |
FW900 |
INHERIT |
INITIAL |
LIGHTER |
NORMAL |
UNSET |
Modifier and Type | Method and Description |
---|---|
String |
css() |
static FontWeight |
get(String propertyName) |
static FontWeight |
getDefault() |
static FontWeight |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontWeight[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontWeight NORMAL
public static final FontWeight BOLD
public static final FontWeight LIGHTER
public static final FontWeight BOLDER
public static final FontWeight FW100
public static final FontWeight FW200
public static final FontWeight FW300
public static final FontWeight FW400
public static final FontWeight FW500
public static final FontWeight FW600
public static final FontWeight FW700
public static final FontWeight FW800
public static final FontWeight FW900
public static final FontWeight INHERIT
public static final FontWeight INITIAL
public static final FontWeight UNSET
public static FontWeight[] values()
for (FontWeight c : FontWeight.values()) System.out.println(c);
public static FontWeight 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 static FontWeight getDefault()
public String css()
css
in interface HasCSSName
public static FontWeight get(String propertyName)
Copyright © 2018 Xalys. All rights reserved.