Interface TextInput.Builder

All Superinterfaces:
ComposableLike
Enclosing interface:
TextInput

public static interface TextInput.Builder extends ComposableLike
The builder for text input
  • Method Details

    • build

      TextInput build()
      Builds this text input
      Returns:
      This text input
    • disabled

      TextInput.Builder disabled(boolean disabled)
      Sets the disabled state
      Parameters:
      disabled - The disabled state
      Returns:
      This builder
    • prompt

      TextInput.Builder prompt(String prompt)
      Sets the default prompt
      Parameters:
      prompt - Prompt to be set
      Returns:
      This builder
    • initialText

      TextInput.Builder initialText(String initialText)
      Sets the initial text value (defaults to empty string)
      Parameters:
      initialText - The initial text value
      Returns:
      This builder
    • validate

      TextInput.Builder validate(Validator validator)
      Adds a validator for text input
      Parameters:
      validator - Validator to be added
      Returns:
      This builder
      See Also:
    • asComposable

      default Composable asComposable()
      Description copied from interface: ComposableLike
      Converts self to a composable
      Specified by:
      asComposable in interface ComposableLike
      Returns:
      The composable