private void setActiveButton() { switch (recording.getFileExistsAction()) { case OK: rename.setSelected(true); break; case REPLACE: replace.setSelected(true); break; case CANCEL: cancel.setSelected(true); break; } }
private void updateStatusIcon(Recording recording, Label status) { switch (recording.getFileExistsAction()) { case OK: status.setGraphic(mainApp.getGlyph(FontAwesome.Glyph.CHECK)); break; case REPLACE: status.setGraphic(mainApp.getGlyph(FontAwesome.Glyph.EXCLAMATION_CIRCLE)); break; case CANCEL: status.setGraphic(mainApp.getGlyph(FontAwesome.Glyph.CLOSE)); break; } }