Interface DialogListDialog<I,BB extends DialogBodyBuilder<I>,IB extends DialogInputBuilder,D extends Dialog<I,BB,IB,?>,AB extends DialogActionBuilder<D,AB>,T extends DialogListDialog<I,BB,IB,D,AB,T>>

Type Parameters:
I - the type of the item for the item body
BB - the type of the dialog body builder
IB - the type of the dialog input builder
D - the type of the dialog contained in the list
AB - the type of the dialog action builder
T - the type of the dialog itself, for method chaining
All Superinterfaces:
Dialog<I,BB,IB,T>
All Known Implementing Classes:
BungeeDialogListDialog, PaperDialogListDialog, PEDialogListDialog, ViaDialogListDialog

public interface DialogListDialog<I,BB extends DialogBodyBuilder<I>,IB extends DialogInputBuilder,D extends Dialog<I,BB,IB,?>,AB extends DialogActionBuilder<D,AB>,T extends DialogListDialog<I,BB,IB,D,AB,T>> extends Dialog<I,BB,IB,T>
Interface representing a dialog that contains a list of other dialogs.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog

    Dialog.AfterAction
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Default width of the buttons.
    static final int
    Default number of columns.
  • Method Summary

    Modifier and Type
    Method
    Description
    buttonWidth(int buttonWidth)
    Set the width of the buttons in the dialog
    columns(int columns)
    Set the number of columns in the dialog
    dialog(D dialog)
    Add a dialog to the list of dialogs in this dialog
    dialog(DialogOpener dialogOpener)
    Add a dialog to the list of dialogs in this dialog
    dialog(String namespace, String dialogId)
    Add a dialog to the list of dialogs in this dialog
    default <B extends D>
    T
    dialog(Collection<B> dialogs)
    Add multiple dialogs to the list of dialogs in this dialog
    exitAction(@Nullable Consumer<AB> action)
    Set the action to be performed when exiting the dialog

    Methods inherited from interface io.github.projectunified.unidialog.core.dialog.Dialog

    afterAction, body, body, canCloseWithEscape, externalTitle, input, input, opener, pause, title
  • Field Details

    • DEFAULT_COLUMNS

      static final int DEFAULT_COLUMNS
      Default number of columns.
      See Also:
    • DEFAULT_BUTTON_WIDTH

      static final int DEFAULT_BUTTON_WIDTH
      Default width of the buttons.
      See Also:
  • Method Details

    • dialog

      T dialog(D dialog)
      Add a dialog to the list of dialogs in this dialog
      Parameters:
      dialog - the dialog to add
      Returns:
      the dialog itself for method chaining
    • dialog

      T dialog(String namespace, String dialogId)
      Add a dialog to the list of dialogs in this dialog
      Parameters:
      namespace - the namespace of the dialog
      dialogId - the ID of the dialog
      Returns:
      the dialog itself for method chaining
    • dialog

      T dialog(DialogOpener dialogOpener)
      Add a dialog to the list of dialogs in this dialog
      Parameters:
      dialogOpener - the dialog opener that will open the dialog
      Returns:
      the dialog itself for method chaining
    • exitAction

      T exitAction(@Nullable @Nullable Consumer<AB> action)
      Set the action to be performed when exiting the dialog
      Parameters:
      action - the action to be performed when exiting the dialog
      Returns:
      the dialog itself for method chaining
    • columns

      T columns(int columns)
      Set the number of columns in the dialog
      Parameters:
      columns - the number of columns in the dialog
      Returns:
      the dialog itself for method chaining
    • buttonWidth

      T buttonWidth(int buttonWidth)
      Set the width of the buttons in the dialog
      Parameters:
      buttonWidth - the width of the buttons in the dialog
      Returns:
      the dialog itself for method chaining
    • dialog

      default <B extends D> T dialog(Collection<B> dialogs)
      Add multiple dialogs to the list of dialogs in this dialog
      Type Parameters:
      B - the type of the dialogs in the collection
      Parameters:
      dialogs - the collection of dialogs to add
      Returns:
      the dialog itself for method chaining