Package tripleplay.ui

Enum Class Style.Mode

java.lang.Object
java.lang.Enum<Style.Mode>
tripleplay.ui.Style.Mode
All Implemented Interfaces:
Serializable, Comparable<Style.Mode>, java.lang.constant.Constable
Enclosing class:
Style<V>

public static enum Style.Mode extends Enum<Style.Mode>
Defines element modes which can be used to modify an element's styles.
  • Enum Constant Details

    • DEFAULT

      public static final Style.Mode DEFAULT
    • DISABLED

      public static final Style.Mode DISABLED
    • SELECTED

      public static final Style.Mode SELECTED
    • DISABLED_SELECTED

      public static final Style.Mode DISABLED_SELECTED
  • Field Details

    • enabled

      public final boolean enabled
      Whether the element is enabled in this mode.
    • selected

      public final boolean selected
      Whether the element is selected in this mode.
  • Method Details

    • values

      public static Style.Mode[] 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 Style.Mode 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