Ejemplo n.º 1
0
 private void setActiveButton() {
   switch (recording.getFileExistsAction()) {
     case OK:
       rename.setSelected(true);
       break;
     case REPLACE:
       replace.setSelected(true);
       break;
     case CANCEL:
       cancel.setSelected(true);
       break;
   }
 }
Ejemplo n.º 2
0
 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;
   }
 }