Interface FormInput<T>

Type Parameters:
T - the submitted value type
All Known Implementing Classes:
ChoiceInput, SliderInput, TextInput, ToggleInput

public sealed interface FormInput<T> permits TextInput, ToggleInput, ChoiceInput<T>, SliderInput
One input of a Form. Also the typed handle used to read the submitted value: response.get(nameInput). The set of permitted subtypes may grow in a 7.x minor release. Code outside the framework must not switch over it exhaustively without a default branch.
  • Method Summary

    Modifier and Type
    Method
    Description
    key()
    Unique within its form; [a-z0-9_]+, at most 32 characters.
    The deferred label.
  • Method Details

    • key

      String key()
      Unique within its form; [a-z0-9_]+, at most 32 characters.
    • label

      Text label()
      The deferred label.