ActionButton

public class ActionButton

Represents a clickable button within a dialog. Buttons consist of a label, optional tooltip, width and an action. See the dialog format specification for default values:contentReference[oaicite:56]{index=56}:contentReference[oaicite:57]{index=57}.

Functions

Link copied to clipboard
public static DialogManager.ActionButton of(JsonElement label, DialogManager.Action action)
Creates a button with the specified label and action.
public static DialogManager.ActionButton of(String label, DialogManager.Action action)
Convenience overload using a plain string label.
Link copied to clipboard
public DialogManager.ActionButton tooltip(JsonElement tooltip)
Sets an optional tooltip shown when the button is highlighted:contentReference[oaicite:58]{index=58}.
public DialogManager.ActionButton tooltip(String text)
Convenience overload using a plain string tooltip.
Link copied to clipboard
public DialogManager.ActionButton width(int width)
Sets the button width in pixels.