Package net.md_5.bungee.api.dialog
Class DialogListDialog
java.lang.Object
net.md_5.bungee.api.dialog.DialogListDialog
- All Implemented Interfaces:
Dialog
Represents a dialog which contains buttons that link to other dialogs.
-
Constructor Summary
ConstructorsConstructorDescriptionDialogListDialog(@NonNull DialogBase base, List<Dialog> dialogs, ActionButton exitAction, Integer columns, Integer buttonWidth) DialogListDialog(@NonNull DialogBase base, Dialog... dialogs) -
Method Summary
Modifier and TypeMethodDescriptionThe width of the dialog buttons (default: 150, minimum: 1, maximum: 1024).buttonWidth(Integer buttonWidth) columns()The number of columns for the dialog buttons (default: 2).dialogs()The child dialogs behind each button.The child dialogs behind each button.booleanTheActionButtonactivated when the dialog is exited.exitAction(ActionButton exitAction) TheActionButtonactivated when the dialog is exited.@NonNull DialogBasegetBase()Gets the dialog base which contains the dialog title and other options common to all types of dialogs.inthashCode()voidsetBase(@NonNull DialogBase base) Sets the dialog base.toString()
-
Constructor Details
-
DialogListDialog
-
DialogListDialog
public DialogListDialog(@NonNull @NonNull DialogBase base, List<Dialog> dialogs, ActionButton exitAction, Integer columns, Integer buttonWidth)
-
-
Method Details
-
columns
-
buttonWidth
-
getBase
Description copied from interface:DialogGets the dialog base which contains the dialog title and other options common to all types of dialogs. -
dialogs
The child dialogs behind each button. -
exitAction
TheActionButtonactivated when the dialog is exited. -
columns
The number of columns for the dialog buttons (default: 2). -
buttonWidth
The width of the dialog buttons (default: 150, minimum: 1, maximum: 1024). -
setBase
Description copied from interface:DialogSets the dialog base.
For internal use only as this is mandatory and should be specified in the constructor. -
dialogs
The child dialogs behind each button.- Returns:
this.
-
exitAction
TheActionButtonactivated when the dialog is exited.- Returns:
this.
-
toString
-
equals
-
hashCode
public int hashCode()
-