display.getDeleteButton().addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { deleteSelectedContacts(); } });