protected void adjustActionButtonState() {
   boolean hasSelection = list.getValue() != null;
   edit.setEnabled(hasSelection);
   delete.setEnabled(hasSelection);
 }
 public void edit(ClickEvent e) {
   edit(list.getValue());
 }
 public void remove(ClickEvent e) {
   clientRepository.delete(list.getValue());
   list.setValue(null);
   listEntities();
 }