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