diff options
author | Sven Gothel <[email protected]> | 2023-09-24 05:41:27 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-09-24 05:41:27 +0200 |
commit | 1911d5dfb53c7757eedfebe289074661e125bea0 (patch) | |
tree | 9b737de6222e16ca81824d8c8456efdfc7ad4371 /src/graphui | |
parent | 3dc4d80b0b8b0d4d82368b229ee403bf5937e1de (diff) |
GraphUI MediaButton: Return this for chaining on setter
Diffstat (limited to 'src/graphui')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |