From 1911d5dfb53c7757eedfebe289074661e125bea0 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 24 Sep 2023 05:41:27 +0200 Subject: GraphUI MediaButton: Return this for chaining on setter --- src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/graphui') diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java index 927ad8f8a..b73f224d1 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java @@ -74,13 +74,14 @@ public class MediaButton extends TexSeqButton { setToggleOnColorMod(1.0f, 1.0f, 1.0f, 1.0f); } - public void setVerbose(final boolean v) { verbose = v; } + public MediaButton setVerbose(final boolean v) { verbose = v; return this; } /** * Add the default {@link GLMediaEventListener} to {@link #getGLMediaPlayer() this class's GLMediaPlayer}. */ - public void addDefaultEventListener() { + public MediaButton addDefaultEventListener() { getGLMediaPlayer().addEventListener(defGLMediaEventListener); + return this; } public final GLMediaPlayer getGLMediaPlayer() { return (GLMediaPlayer)texSeq; } -- cgit v1.2.3