Enum Class StyleKeyword

java.lang.Object
java.lang.Enum<StyleKeyword>
net.risingworld.api.ui.style.StyleKeyword
All Implemented Interfaces:
Serializable, Comparable<StyleKeyword>, Constable

public enum StyleKeyword extends Enum<StyleKeyword>
  • Enum Constant Details

    • Undefined

      public static final StyleKeyword Undefined
      Means no keyword is defined for the property (so the value is used)
    • Null

      public static final StyleKeyword Null
      Means that the property is not set, so the parent style is used (if set)
    • Auto

      public static final StyleKeyword Auto
      For style properties accepting auto (see CSS auto property)
    • None

      public static final StyleKeyword None
      For style properties accepting none (see CSS none property)
    • Initial

      public static final StyleKeyword Initial
      Initial / default value of a property
  • Method Details

    • values

      public static StyleKeyword[] 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 StyleKeyword 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
    • get

      public static StyleKeyword get(int ordinal)
      Gets an enum from the ordinal value.
      Parameters:
      ordinal - the ordinal value (index).
      Returns:
      the according enum.