Package net.md_5.bungee.api.dialog
Class MultiActionDialog
java.lang.Object
net.md_5.bungee.api.dialog.MultiActionDialog
- All Implemented Interfaces:
Dialog
Represents a dialog with text a list of action buttons grouped into columns
and scrollable if necessary.
-
Constructor Summary
ConstructorsConstructorDescriptionMultiActionDialog(@NonNull DialogBase base, @NonNull List<ActionButton> actions, Integer columns, ActionButton exitAction) MultiActionDialog(@NonNull DialogBase base, @NonNull ActionButton... actions) -
Method Summary
Modifier and TypeMethodDescription@NonNull List<ActionButton>actions()The action buttons in the dialog.actions(@NonNull List<ActionButton> actions) The action buttons in the dialog.columns()The number of columns for the dialog buttons (default: 2).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
-
MultiActionDialog
public MultiActionDialog(@NonNull @NonNull DialogBase base, @NonNull @NonNull ActionButton... actions) -
MultiActionDialog
public MultiActionDialog(@NonNull @NonNull DialogBase base, @NonNull @NonNull List<ActionButton> actions, Integer columns, ActionButton exitAction)
-
-
Method Details
-
columns
-
getBase
Description copied from interface:DialogGets the dialog base which contains the dialog title and other options common to all types of dialogs. -
actions
The action buttons in the dialog. At least one must be provided. -
columns
The number of columns for the dialog buttons (default: 2). -
exitAction
TheActionButtonactivated when the dialog is exited. -
setBase
Description copied from interface:DialogSets the dialog base.
For internal use only as this is mandatory and should be specified in the constructor. -
actions
The action buttons in the dialog. At least one must be provided.- Returns:
this.
-
exitAction
TheActionButtonactivated when the dialog is exited.- Returns:
this.
-
toString
-
equals
-
hashCode
public int hashCode()
-