Interface Accessible.Argument

All Known Implementing Classes:
Accessible.Argument.None, Accessible.Argument.OfRange, Accessible.Argument.OfText, Accessible.Argument.OfValue
Enclosing class:
Accessible

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.
  • Field Details

  • Method Details

    • finiteValueOf

      static double finiteValueOf(Accessible.Argument arg)
      The number a SET_VALUE carried, or NaN when the argument is not an Accessible.Argument.OfValue or 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 passes NaN straight 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