diff options
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; } |