Interface BooleanDialogInput

All Superinterfaces:
DialogInput

@NonExtendable public non-sealed interface BooleanDialogInput extends DialogInput
Since:
1.21.7
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A builder for a boolean dialog input.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    The initial value of the input.
    The label for the input.
    The input's value in a template when the value is false.
    The input's value in a template when the value is true.

    Methods inherited from interface DialogInput

    key
  • Method Details

    • label

      @Contract(pure=true) Component label()
      The label for the input.
      Returns:
      the label component
      Since:
      1.21.7
    • initial

      @Contract(pure=true) boolean initial()
      The initial value of the input.
      Returns:
      true if the input is initially true, false otherwise
      Since:
      1.21.7
    • onTrue

      @Contract(pure=true) String onTrue()
      The input's value in a template when the value is true.
      Returns:
      the string to use when the input is true
      Since:
      1.21.7
    • onFalse

      @Contract(pure=true) String onFalse()
      The input's value in a template when the value is false.
      Returns:
      the string to use when the input is false
      Since:
      1.21.7