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(DialogBase base, List<Dialog> dialogs, ClickEvent onCancel, int columns, int buttonWidth) DialogListDialog(DialogBase base, Dialog... dialogs) -
Method Summary
Modifier and TypeMethodDescriptionintThe width of the dialog buttons (default: 150).buttonWidth(int buttonWidth) The width of the dialog buttons (default: 150).intcolumns()The number of columns for the dialog buttons (default: 2).columns(int columns) The number of columns for the dialog buttons (default: 2).dialogs()The child dialogs behind each button.The child dialogs behind each button.booleangetBase()Gets the dialog base which contains the dialog title and other options common to all types of dialogs.inthashCode()onCancel()TheClickEventactivated when the dialog is cancelled.onCancel(ClickEvent onCancel) TheClickEventactivated when the dialog is cancelled.voidsetBase(DialogBase base) Sets the dialog base.toString()
-
Constructor Details
-
DialogListDialog
-
DialogListDialog
public DialogListDialog(DialogBase base, List<Dialog> dialogs, ClickEvent onCancel, int columns, int buttonWidth)
-
-
Method Details
-
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. -
onCancel
TheClickEventactivated when the dialog is cancelled. -
columns
public int columns()The number of columns for the dialog buttons (default: 2). -
buttonWidth
public int buttonWidth()The width of the dialog buttons (default: 150). -
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.
-
onCancel
TheClickEventactivated when the dialog is cancelled.- Returns:
this.
-
columns
The number of columns for the dialog buttons (default: 2).- Returns:
this.
-
buttonWidth
The width of the dialog buttons (default: 150).- Returns:
this.
-
toString
-
equals
-
hashCode
public int hashCode()
-