37383940414243
this.stateClass = stateClass; } @Override public void actionPerformed(ActionEvent e) { bus.publish(new ChangeUiState(stateClass)); }
93949596979899
} @Override public void actionPerformed(ActionEvent e) { timer.interrupt(); bus.publish(new ChangeUiState(interruptedState())); }
114115116117118119120
private class EndTimer implements Subscriber<TimerFinished> { @Override public void receive(TimerFinished end) { soundPlayer.play(sounds.ding()); bus.publish(new ChangeUiState(finishedState())); }