Package net.md_5.bungee.api.dialog
Class DialogListDialog
- java.lang.Object
-
- net.md_5.bungee.api.dialog.DialogListDialog
-
-
Constructor Summary
Constructors Constructor Description DialogListDialog(DialogBase base, List<Dialog> dialogs, ClickEvent onCancel, int columns, int buttonWidth)DialogListDialog(DialogBase base, Dialog... dialogs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbuttonWidth()The width of the dialog buttons (default: 150).DialogListDialogbuttonWidth(int buttonWidth)The width of the dialog buttons (default: 150).intcolumns()The number of columns for the dialog buttons (default: 2).DialogListDialogcolumns(int columns)The number of columns for the dialog buttons (default: 2).List<Dialog>dialogs()The child dialogs behind each button.DialogListDialogdialogs(List<Dialog> dialogs)The child dialogs behind each button.booleanequals(Object o)DialogBasegetBase()Gets the dialog base which contains the dialog title and other options common to all types of dialogs.inthashCode()ClickEventonCancel()TheClickEventactivated when the dialog is cancelled.DialogListDialogonCancel(ClickEvent onCancel)TheClickEventactivated when the dialog is cancelled.voidsetBase(DialogBase base)Sets the dialog base.StringtoString()
-
-
-
Constructor Detail
-
DialogListDialog
public DialogListDialog(DialogBase base, Dialog... dialogs)
-
DialogListDialog
public DialogListDialog(DialogBase base, List<Dialog> dialogs, ClickEvent onCancel, int columns, int buttonWidth)
-
-
Method Detail
-
getBase
public DialogBase getBase()
Description copied from interface:DialogGets the dialog base which contains the dialog title and other options common to all types of dialogs.
-
onCancel
public ClickEvent 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
public void setBase(DialogBase base)
Description copied from interface:DialogSets the dialog base.
For internal use only as this is mandatory and should be specified in the constructor.
-
dialogs
public DialogListDialog dialogs(List<Dialog> dialogs)
The child dialogs behind each button.- Returns:
this.
-
onCancel
public DialogListDialog onCancel(ClickEvent onCancel)
TheClickEventactivated when the dialog is cancelled.- Returns:
this.
-
columns
public DialogListDialog columns(int columns)
The number of columns for the dialog buttons (default: 2).- Returns:
this.
-
buttonWidth
public DialogListDialog buttonWidth(int buttonWidth)
The width of the dialog buttons (default: 150).- Returns:
this.
-
-