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 bodyBB
- the type of the dialog body builderIB
- the type of the dialog input builderD
- the type of the dialog contained in the listAB
- the type of the dialog action builderT
- the type of the dialog itself, for method chaining
- All Superinterfaces:
Dialog<I,
BB, IB, T>
- All Known Implementing Classes:
PaperDialogListDialog
,PEDialogListDialog
,SpigotDialogListDialog
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
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionbuttonWidth
(int buttonWidth) Set the width of the buttons in the dialogcolumns
(int columns) Set the number of columns in the dialogAdd a dialog to the list of dialogs in this dialogdialog
(DialogOpener dialogOpener) Add a dialog to the list of dialogs in this dialogAdd a dialog to the list of dialogs in this dialogdialog
(Collection<B> dialogs) Add multiple dialogs to the list of dialogs in this dialogexitAction
(@Nullable Consumer<AB> action) Set the action to be performed when exiting the dialogMethods 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- See Also:
-
DEFAULT_BUTTON_WIDTH
static final int DEFAULT_BUTTON_WIDTH- See Also:
-
-
Method Details
-
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
Add a dialog to the list of dialogs in this dialog- Parameters:
namespace
- the namespace of the dialogdialogId
- the ID of the dialog- Returns:
- the dialog itself for method chaining
-
dialog
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
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
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
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
Add multiple dialogs to the list of dialogs in this dialog- Parameters:
dialogs
- the collection of dialogs to add- Returns:
- the dialog itself for method chaining
-