private void changePlayMode(Action action) {
if (action == _normalPlayModeAction) {
if (_normalPlayModeAction.isChecked()) {
_repeatPlayModeAction.setChecked(false);
_randomPlayModeAction.setChecked(false);
new ChangePlaymodeAction(0).run();
} else {
_repeatPlayModeAction.setChecked(true);
_randomPlayModeAction.setChecked(false);
new ChangePlaymodeAction(1).run();
}
} else if (action == _repeatPlayModeAction) {
if (_repeatPlayModeAction.isChecked()) {
_normalPlayModeAction.setChecked(false);
_randomPlayModeAction.setChecked(false);
new ChangePlaymodeAction(1).run();
} else {
_normalPlayModeAction.setChecked(false);
_randomPlayModeAction.setChecked(true);
new ChangePlaymodeAction(2).run();
}
} else if (action == _randomPlayModeAction) {
if (_randomPlayModeAction.isChecked()) {
_normalPlayModeAction.setChecked(false);
_repeatPlayModeAction.setChecked(false);
new ChangePlaymodeAction(2).run();
} else {
_normalPlayModeAction.setChecked(true);
_repeatPlayModeAction.setChecked(false);
new ChangePlaymodeAction(0).run();
}
}
}