@UiHandler("deleteAuthorButton")
void onRemoveAuthorButtonClick(ClickEvent event) {
if (authorSetToDelete.isEmpty()) {
return;
}
AuthorContext authorContext = getRequestFactory().authorRequest();
for (AuthorProxy author : authorSetToDelete) {
authorContext.delete(author);
}
authorContext.fire(new Receiver<Void>() {
@Override
public void onSuccess(Void response) {
authorSetToDelete.clear();
GWT.log("List of authors was cleared.");