aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-09-24 05:41:27 +0200
committerSven Gothel <[email protected]>2023-09-24 05:41:27 +0200
commit1911d5dfb53c7757eedfebe289074661e125bea0 (patch)
tree9b737de6222e16ca81824d8c8456efdfc7ad4371 /src/graphui/classes/com
parent3dc4d80b0b8b0d4d82368b229ee403bf5937e1de (diff)
GraphUI MediaButton: Return this for chaining on setter
Diffstat (limited to 'src/graphui/classes/com')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java5
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; }