Created
February 14, 2013 08:28
-
-
Save pedrofurla/4951336 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private ReadOnlyObjectWrapper<Status> statusPropertyImpl() { | |
| if (this.status == null) { | |
| this.status = new ReadOnlyObjectWrapper() { | |
| protected void invalidated() { | |
| if (get() == MediaPlayer.Status.PLAYING) | |
| MediaPlayer.this.setCurrentRate(MediaPlayer.this.getRate()); | |
| else | |
| MediaPlayer.this.setCurrentRate(0.0D); | |
| } | |
| public Object getBean() { | |
| return MediaPlayer.this; | |
| } | |
| public String getName() { | |
| return "status"; | |
| } | |
| }; | |
| } | |
| return this.status; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment