예제 #1
0
 protected void adjustActionButtonState() {
   boolean hasSelection = list.getValue() != null;
   edit.setEnabled(hasSelection);
   delete.setEnabled(hasSelection);
 }
예제 #2
0
 public void edit(ClickEvent e) {
   edit(list.getValue());
 }
예제 #3
0
 public void remove(ClickEvent e) {
   clientRepository.delete(list.getValue());
   list.setValue(null);
   listEntities();
 }