Class ActionButton
java.lang.Object
net.md_5.bungee.api.dialog.action.ActionButton
Represents a dialog action which will usually appear as a button.
-
Constructor Summary
ConstructorsConstructorDescriptionActionButton(@NonNull BaseComponent label, @NonNull Action action) ActionButton(@NonNull BaseComponent label, BaseComponent tooltip, Integer width, @NonNull Action action) -
Method Summary
Modifier and TypeMethodDescription@NonNull Actionaction()The action to take.The action to take.protected booleanbooleaninthashCode()@NonNull BaseComponentlabel()The text label of the button, mandatory.label(@NonNull BaseComponent label) The text label of the button, mandatory.voidtooltip()The hover tooltip of the button.tooltip(BaseComponent tooltip) The hover tooltip of the button.toString()width()The width of the button (default: 150, minimum: 1, maximum: 1024).The width of the button (default: 150, minimum: 1, maximum: 1024).
-
Constructor Details
-
ActionButton
public ActionButton(@NonNull @NonNull BaseComponent label, BaseComponent tooltip, Integer width, @NonNull @NonNull Action action) -
ActionButton
-
-
Method Details
-
setWidth
-
label
The text label of the button, mandatory. -
tooltip
The hover tooltip of the button. -
width
The width of the button (default: 150, minimum: 1, maximum: 1024). -
action
The action to take. -
label
The text label of the button, mandatory.- Returns:
this.
-
tooltip
The hover tooltip of the button.- Returns:
this.
-
width
The width of the button (default: 150, minimum: 1, maximum: 1024).- Returns:
this.
-
action
The action to take.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-