Interface DialogListType.Builder

Enclosing interface:
DialogListType

@NonExtendable public static interface DialogListType.Builder
A builder for creating a dialog list type.
  • Method Details

    • exitAction

      @Contract(value="_ -> this", mutates="this") DialogListType.Builder exitAction(@Nullable ActionButton exitAction)
      Sets the action button to exit the dialog, or null if there is no exit action.
      Parameters:
      exitAction - the exit action button, or null
      Returns:
      the builder
    • columns

      @Contract(value="_ -> this", mutates="this") DialogListType.Builder columns(@org.jetbrains.annotations.Range(from=1L, to=2147483647L) int columns)
      Sets the number of columns to display in the dialog list.
      Parameters:
      columns - the number of columns
      Returns:
      the builder
    • buttonWidth

      @Contract(value="_ -> this", mutates="this") DialogListType.Builder buttonWidth(@org.jetbrains.annotations.Range(from=1L, to=1024L) int buttonWidth)
      Sets the width of each button in the dialog list.
      Parameters:
      buttonWidth - the width of the buttons
      Returns:
      the builder
    • build

      @Contract(value="-> new", pure=true) DialogListType build()
      Builds the dialog list type.
      Returns:
      the built dialog list type