Package limn.testing.a11y
Enum Class MenuSubject.Row
- All Implemented Interfaces:
Serializable,Comparable<MenuSubject.Row>,Constable
- Enclosing interface:
MenuSubject
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA row that flips a check onPRESSand onTOGGLE.A row that runs a command onPRESS.A row the arrows skip: no verb, not enabled.A title or a submenu row with nothing to open: the highlight lands on it, no more.A row that opens a submenu with rows in it.A bar's title over a menu with rows: opens a dropdown, never chooses. -
Method Summary
Modifier and TypeMethodDescriptionstatic MenuSubject.RowReturns the enum constant of this class with the specified name.static MenuSubject.Row[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TITLE
A bar's title over a menu with rows: opens a dropdown, never chooses. -
COMMAND
A row that runs a command onPRESS. -
CHECK
A row that flips a check onPRESSand onTOGGLE. -
SUBMENU
A row that opens a submenu with rows in it. -
EMPTY
A title or a submenu row with nothing to open: the highlight lands on it, no more. -
DISABLED
A row the arrows skip: no verb, not enabled.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-