Enum Class MenuSubject.Row

java.lang.Object
java.lang.Enum<MenuSubject.Row>
limn.testing.a11y.MenuSubject.Row
All Implemented Interfaces:
Serializable, Comparable<MenuSubject.Row>, Constable
Enclosing interface:
MenuSubject

public static enum MenuSubject.Row extends Enum<MenuSubject.Row>
What a row is, which decides the verbs the contract expects on it.

A 1.x minor release may add constants to this enum: a switch over it needs a default branch.

  • Enum Constant Details

    • TITLE

      public static final MenuSubject.Row TITLE
      A bar's title over a menu with rows: opens a dropdown, never chooses.
    • COMMAND

      public static final MenuSubject.Row COMMAND
      A row that runs a command on PRESS.
    • CHECK

      public static final MenuSubject.Row CHECK
      A row that flips a check on PRESS and on TOGGLE.
    • EMPTY

      public static final MenuSubject.Row EMPTY
      A title or a submenu row with nothing to open: the highlight lands on it, no more.
    • DISABLED

      public static final MenuSubject.Row DISABLED
      A row the arrows skip: no verb, not enabled.
  • Method Details

    • values

      public static MenuSubject.Row[] 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 MenuSubject.Row 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