Interface BooleanDialogInput.Builder

Enclosing interface:
BooleanDialogInput

@NonExtendable public static interface BooleanDialogInput.Builder
A builder for a boolean dialog input.

Created via DialogInput.bool(String, Component)

  • Method Details

    • initial

      @Contract(value="_ -> this", mutates="this") BooleanDialogInput.Builder initial(boolean initial)
      Sets the initial value of the input.
      Parameters:
      initial - true if the input is initially true, false otherwise
      Returns:
      this builder
    • onTrue

      @Contract(value="_ -> this", mutates="this") BooleanDialogInput.Builder onTrue(String onTrue)
      Sets the input's value in a template when the value is true.
      Parameters:
      onTrue - the string to use when the input is true
      Returns:
      this builder
    • onFalse

      @Contract(value="_ -> this", mutates="this") BooleanDialogInput.Builder onFalse(String onFalse)
      Sets the input's value in a template when the value is false.
      Parameters:
      onFalse - the string to use when the input is false
      Returns:
      this builder
    • build

      @Contract(value="-> new", pure=true) BooleanDialogInput build()
      Builds the instance with the configured values.
      Returns:
      a new instance