public void doPlay ( final Wave wave ) { if ( ! this . playing ) { this . playing = true ; this . timeFrame = 0 ; } if ( this . timeFrame < this . eventList . size ( ) - 1 ) { showNext ( this . eventList . get ( this . timeFrame ) ) ; } else { this . playing = false ; } }
Call when event play button is pressed .