Search in sources :

Example 1 with DeleteProblemCollectionEvent

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);
    }
}
Also used : DeleteProblemCollectionEvent(com.playshogi.website.gwt.client.events.collections.DeleteProblemCollectionEvent)

Aggregations

DeleteProblemCollectionEvent (com.playshogi.website.gwt.client.events.collections.DeleteProblemCollectionEvent)1