Enum Class FontWeight

java.lang.Object
java.lang.Enum<FontWeight>
eu.webtoolkit.jwt.FontWeight
All Implemented Interfaces:
Serializable, Comparable<FontWeight>, Constable

public enum FontWeight extends Enum<FontWeight>
The font weight.
  • Enum Constant Details

    • Normal

      public static final FontWeight Normal
      Normal (default) (Value == 400)
    • Bold

      public static final FontWeight Bold
      Bold (Value == 700)
    • Bolder

      public static final FontWeight Bolder
      Bolder than the parent widget.
    • Lighter

      public static final FontWeight Lighter
      Lighter than the parent widget.
    • Value

      public static final FontWeight Value
      Specify a value (100 - 900)
  • Method Details

    • values

      public static FontWeight[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FontWeight valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns the numerical representation of this enum.