Enum CssFontWeight
- java.lang.Object
-
- java.lang.Enum<CssFontWeight>
-
- org.uberfire.ext.layout.editor.api.css.CssFontWeight
-
- All Implemented Interfaces:
Serializable,Comparable<CssFontWeight>,CssAllowedValue
public enum CssFontWeight extends Enum<CssFontWeight> implements CssAllowedValue
An enumeration of the CSS "font-weight" codes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOLDBOLDERLIGHTERNORMALWEIGHT_100WEIGHT_200WEIGHT_300WEIGHT_400WEIGHT_500WEIGHT_600WEIGHT_700WEIGHT_800WEIGHT_900
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()static CssFontWeightvalueOf(String name)Returns the enum constant of this type with the specified name.static CssFontWeight[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final CssFontWeight NORMAL
-
BOLD
public static final CssFontWeight BOLD
-
BOLDER
public static final CssFontWeight BOLDER
-
LIGHTER
public static final CssFontWeight LIGHTER
-
WEIGHT_100
public static final CssFontWeight WEIGHT_100
-
WEIGHT_200
public static final CssFontWeight WEIGHT_200
-
WEIGHT_300
public static final CssFontWeight WEIGHT_300
-
WEIGHT_400
public static final CssFontWeight WEIGHT_400
-
WEIGHT_500
public static final CssFontWeight WEIGHT_500
-
WEIGHT_600
public static final CssFontWeight WEIGHT_600
-
WEIGHT_700
public static final CssFontWeight WEIGHT_700
-
WEIGHT_800
public static final CssFontWeight WEIGHT_800
-
WEIGHT_900
public static final CssFontWeight WEIGHT_900
-
-
Method Detail
-
values
public static CssFontWeight[] 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 (CssFontWeight c : CssFontWeight.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CssFontWeight 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 nameNullPointerException- if the argument is null
-
getName
public String getName()
- Specified by:
getNamein interfaceCssAllowedValue
-
-