From: Niki Roo Date: Mon, 30 Dec 2019 16:28:40 +0000 (+0100) Subject: Merge commit 'edcd53bbbba9f94e21f43fd03d3a2febcc2b1564' X-Git-Url: http://git.nikiroo.be/?a=commitdiff_plain;h=4f2f50bf583e15c2419ade55c42b7f3527a67f36;hp=edcd53bbbba9f94e21f43fd03d3a2febcc2b1564;p=fanfix.git Merge commit 'edcd53bbbba9f94e21f43fd03d3a2febcc2b1564' --- diff --git a/TButton.java b/TButton.java index d86fa44..d1d7b39 100644 --- a/TButton.java +++ b/TButton.java @@ -129,6 +129,20 @@ public class TButton extends TWidget { this(parent, text, x, y); this.action = action; } + + /** + * The action to call when the button is pressed. + **/ + public TAction getAction() { + return action; + } + + /** + * The action to call when the button is pressed. + **/ + public void setAction(TAction action) { + this.action = action; + } // ------------------------------------------------------------------------ // Event handlers ---------------------------------------------------------