Class DialogAction
java.lang.Object
net.md_5.bungee.api.dialog.action.DialogAction
- Direct Known Subclasses:
DialogClickAction,DialogSubmitAction
Represents a dialog action which will usually appear as a button.
-
Constructor Summary
ConstructorsConstructorDescriptionDialogAction(BaseComponent label) DialogAction(BaseComponent label, BaseComponent tooltip, int width) Creates a newDialogActioninstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetLabel()The text label of the button, mandatory.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).toString()
-
Constructor Details
-
DialogAction
-
DialogAction
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 Details
-
getLabel
The text label of the button, mandatory. -
getTooltip
The hover tooltip of the button. -
getWidth
public int getWidth()The width of the button (default: 150). -
setLabel
The text label of the button, mandatory. -
setTooltip
The hover tooltip of the button. -
setWidth
public void setWidth(int width) The width of the button (default: 150). -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-