Class DialogAction
- java.lang.Object
-
- net.md_5.bungee.api.dialog.action.DialogAction
-
- Direct Known Subclasses:
DialogClickAction,DialogSubmitAction
public class DialogAction extends Object
Represents a dialog action which will usually appear as a button.
-
-
Constructor Summary
Constructors Constructor Description DialogAction(BaseComponent label)DialogAction(BaseComponent label, BaseComponent tooltip, int width)Creates a newDialogActioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)BaseComponentgetLabel()The text label of the button, mandatory.BaseComponentgetTooltip()The hover tooltip of the button.intgetWidth()The width of the button (default: 150).inthashCode()voidsetLabel(BaseComponent label)The text label of the button, mandatory.voidsetTooltip(BaseComponent tooltip)The hover tooltip of the button.voidsetWidth(int width)The width of the button (default: 150).StringtoString()
-
-
-
Constructor Detail
-
DialogAction
public DialogAction(BaseComponent label)
-
DialogAction
public DialogAction(BaseComponent label, BaseComponent tooltip, int width)
Creates a newDialogActioninstance.- Parameters:
label- The text label of the button, mandatory.tooltip- The hover tooltip of the button.width- The width of the button (default: 150).
-
-
Method Detail
-
getLabel
public BaseComponent getLabel()
The text label of the button, mandatory.
-
getTooltip
public BaseComponent getTooltip()
The hover tooltip of the button.
-
getWidth
public int getWidth()
The width of the button (default: 150).
-
setLabel
public void setLabel(BaseComponent label)
The text label of the button, mandatory.
-
setTooltip
public void setTooltip(BaseComponent tooltip)
The hover tooltip of the button.
-
setWidth
public void setWidth(int width)
The width of the button (default: 150).
-
canEqual
protected boolean canEqual(Object other)
-
-