Search in sources :

Example 1 with PersonNotFoundException

use of de.gishmo.gwt.example.mvp4g2.simpleapplication.client.data.model.exception.PersonNotFoundException in project mvp4g2-examples by mvp4g.

the class DetailPresenter method onGotoDetail.

@EventHandler
public void onGotoDetail(long id) {
    eventBus.setNavigationConfirmation(this);
    try {
        Person result = PersonService.get().get(id);
        view.setUpData(result);
        eventBus.setContent(view.asElement());
        eventBus.setStatus("Edit person data");
    } catch (PersonNotFoundException e) {
        DomGlobal.window.alert("Panic!");
    }
}
Also used : PersonNotFoundException(de.gishmo.gwt.example.mvp4g2.simpleapplication.client.data.model.exception.PersonNotFoundException) Person(de.gishmo.gwt.example.mvp4g2.simpleapplication.client.data.model.dto.Person) EventHandler(com.github.mvp4g.mvp4g2.core.ui.annotation.EventHandler)

Aggregations

EventHandler (com.github.mvp4g.mvp4g2.core.ui.annotation.EventHandler)1 Person (de.gishmo.gwt.example.mvp4g2.simpleapplication.client.data.model.dto.Person)1 PersonNotFoundException (de.gishmo.gwt.example.mvp4g2.simpleapplication.client.data.model.exception.PersonNotFoundException)1