Package limn.accessibility
Interface Accessible.Argument
- All Known Implementing Classes:
Accessible.Argument.None,Accessible.Argument.OfRange,Accessible.Argument.OfText,Accessible.Argument.OfValue
- Enclosing class:
Accessible
public static sealed interface Accessible.Argument
permits Accessible.Argument.None, Accessible.Argument.OfValue, Accessible.Argument.OfText, Accessible.Argument.OfRange
What a parameterised
Accessible.Action carries. A sealed value with no widget and no callback
in it, because it crosses from a platform thread into a snapshot a reader may hold for
minutes.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe argument of a verb that takes nothing.static final recordA range of text, forAccessible.Action.SET_CARETandAccessible.Action.SET_SELECTION.static final recordA string, forAccessible.Action.SET_TEXT.static final recordA number, forAccessible.Action.SET_VALUE. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Accessible.ArgumentThe argument of every parameterless verb. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic doubleThe number aSET_VALUEcarried, orNaNwhen the argument is not anAccessible.Argument.OfValueor its value is not finite.
-
Field Details
-
NONE
The argument of every parameterless verb.
-
-
Method Details
-
finiteValueOf
The number aSET_VALUEcarried, orNaNwhen the argument is not anAccessible.Argument.OfValueor its value is not finite. One check for every widget with a value: a request that is not a finite number is refused before it reaches a clamp, because a clamp passesNaNstraight through, and this is where every value verb makes that refusal rather than each spelling the two tests for itself.- Parameters:
arg- the verb's argument- Returns:
- the finite value asked for, or
NaN
-