this.clientFactory.getPlaceController().goTo(place);
}
@Override
public void start(final AcceptsOneWidget containerWidget, EventBus eventBus) {
final HistoryView historyView = this.clientFactory.getHistoryView();
// get page content
this.clientFactory.getPageService().getHistory(
this.place.getPageNameDecoded(),
new AsyncCallback<ArrayList<Page>>() {
@Override
public void onFailure(Throwable caught) {
}
@Override
public void onSuccess(ArrayList<Page> result) {
// tell the view to render
historyView.setPageName(HistoryActivity.this.place
.getPageNameDecoded());
historyView
.setPresenter((HistoryView.Presenter) HistoryActivity.this);
historyView
.setPageService(HistoryActivity.this.clientFactory
.getPageService());
historyView.setHistory(result);
containerWidget.setWidget(historyView.asWidget());
}
});
}