Package limn.accessibility
Enum Class Accessible.NameFrom
- All Implemented Interfaces:
Serializable,Comparable<Accessible.NameFrom>,Constable
- Enclosing class:
Accessible
Where a node's name came from. It exists because one of the three platforms maps a name
that is the control's own text and a name that describes it to different
attributes, and a bridge that guesses publishes into the attribute a client walking the
tree does not read — which looks exactly like an empty application rather than an
error.
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 ConstantDescriptionThe widget's own painted text: a button's caption, a label's string.The application set it.Another node, named by aAccessible.Relation.LABELLED_BYrelation.A text field's placeholder, taken because nothing else supplied a name.The widget's tooltip, taken because nothing else supplied a name. -
Method Summary
Modifier and TypeMethodDescriptionstatic Accessible.NameFromReturns the enum constant of this class with the specified name.static Accessible.NameFrom[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTENT
The widget's own painted text: a button's caption, a label's string. -
LABEL
Another node, named by aAccessible.Relation.LABELLED_BYrelation. -
TOOLTIP
The widget's tooltip, taken because nothing else supplied a name. -
PLACEHOLDER
A text field's placeholder, taken because nothing else supplied a name. -
EXPLICIT
The application set it. Always wins over anything a widget derived.
-
-
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
-