@Override public void selectedProfileHighlightEdited(final String oldHighlight, final String newHighlight) { okButton.setEnabled(model.isSaveAllowed()); highlightsModel.set(highlightsModel.indexOf(oldHighlight), newHighlight); deleteHighlight.setEnabled(model.isSelectedProfileHighlightsValid()); editHighlight.setEnabled(model.isSelectedProfileHighlightsValid()); }
@Override public void selectedProfileHighlightAdded(final String highlight) { okButton.setEnabled(model.isSaveAllowed()); highlightsModel.add(highlight); deleteHighlight.setEnabled(model.isSelectedProfileHighlightsValid()); editHighlight.setEnabled(model.isSelectedProfileHighlightsValid()); }
@Override public void selectedHighlightChanged(final Optional<String> highlight) { deleteHighlight.setEnabled(model.isSelectedProfileHighlightsValid()); editHighlight.setEnabled(model.isSelectedProfileHighlightsValid()); }