Enum CssFontSize
- java.lang.Object
-
- java.lang.Enum<CssFontSize>
-
- org.uberfire.ext.layout.editor.api.css.CssFontSize
-
- All Implemented Interfaces:
Serializable,Comparable<CssFontSize>,CssAllowedValue
public enum CssFontSize extends Enum<CssFontSize> implements CssAllowedValue
An enumeration of the CSS "font-size" codes
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CssFontSizevalueOf(String name)Returns the enum constant of this type with the specified name.static CssFontSize[]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 interface org.uberfire.ext.layout.editor.api.css.CssAllowedValue
getName
-
-
-
-
Enum Constant Detail
-
XX_SMALL
public static final CssFontSize XX_SMALL
-
X_SMALL
public static final CssFontSize X_SMALL
-
SMALL
public static final CssFontSize SMALL
-
MEDIUM
public static final CssFontSize MEDIUM
-
LARGE
public static final CssFontSize LARGE
-
X_LARGE
public static final CssFontSize X_LARGE
-
XX_LARGE
public static final CssFontSize XX_LARGE
-
-
Method Detail
-
values
public static CssFontSize[] 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 (CssFontSize c : CssFontSize.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CssFontSize 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
-
-