Package net.md_5.bungee.api.dialog
Class ConfirmationDialog
- java.lang.Object
-
- net.md_5.bungee.api.dialog.ConfirmationDialog
-
-
Constructor Summary
Constructors Constructor Description ConfirmationDialog(DialogBase base)ConfirmationDialog(DialogBase base, DialogClickAction yes, DialogClickAction no)Creates a newConfirmationDialoginstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)DialogBasegetBase()Gets the dialog base which contains the dialog title and other options common to all types of dialogs.inthashCode()DialogClickActionno()The "no" click action / bottom (appears on the right).ConfirmationDialogno(DialogClickAction no)The "no" click action / bottom (appears on the right).voidsetBase(DialogBase base)Sets the dialog base.StringtoString()DialogClickActionyes()The "yes" click action / bottom (appears on the left).ConfirmationDialogyes(DialogClickAction yes)The "yes" click action / bottom (appears on the left).
-
-
-
Constructor Detail
-
ConfirmationDialog
public ConfirmationDialog(DialogBase base)
-
ConfirmationDialog
public ConfirmationDialog(DialogBase base, DialogClickAction yes, DialogClickAction no)
Creates a newConfirmationDialoginstance.- Parameters:
base-yes- The "yes" click action / bottom (appears on the left).no- The "no" click action / bottom (appears on the right).
-
-
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.
-
yes
public DialogClickAction yes()
The "yes" click action / bottom (appears on the left).
-
no
public DialogClickAction no()
The "no" click action / bottom (appears on the right).
-
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.
-
yes
public ConfirmationDialog yes(DialogClickAction yes)
The "yes" click action / bottom (appears on the left).- Returns:
this.
-
no
public ConfirmationDialog no(DialogClickAction no)
The "no" click action / bottom (appears on the right).- Returns:
this.
-
-