use of com.playshogi.website.gwt.client.events.kifu.RequestKifuDeletionEvent in project playshogi by Tellmarch.
the class KifuTable method confirmDeletion.
private void confirmDeletion(final KifuDetails details) {
boolean confirm = Window.confirm("Are you sure you want to delete the kifu " + details.toString() + "?\n" + "This is not revertible.");
if (confirm) {
GWT.log("Deleting kifu: " + details);
eventBus.fireEvent(new RequestKifuDeletionEvent(details.getId()));
} else {
GWT.log("Deletion cancelled: " + details);
}
}
Aggregations