Exemplo n.º 1
0
 @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());
 }
Exemplo n.º 2
0
 @Override
 public void selectedProfileHighlightAdded(final String highlight) {
   okButton.setEnabled(model.isSaveAllowed());
   highlightsModel.add(highlight);
   deleteHighlight.setEnabled(model.isSelectedProfileHighlightsValid());
   editHighlight.setEnabled(model.isSelectedProfileHighlightsValid());
 }
Exemplo n.º 3
0
 @Override
 public void selectedHighlightChanged(final Optional<String> highlight) {
   deleteHighlight.setEnabled(model.isSelectedProfileHighlightsValid());
   editHighlight.setEnabled(model.isSelectedProfileHighlightsValid());
 }