/**
* Invoked by the ActivityManager to start a new Activity
*/
@Override
public void start(final AcceptsOneWidget containerWidget, EventBus eventBus) {
final DisplayView displayView = this.clientFactory.getDisplayView();
// get page content
this.clientFactory.getPageService().get(
this.place.getPageNameDecoded(), new AsyncCallback<Page>() {
@Override
public void onFailure(Throwable caught) {
}
@Override
public void onSuccess(Page result) {
displayView.setPageName(result.getName());
displayView.setContent(SafeHtmlUtils
.fromTrustedString(result.getContent()));
displayView.setPresenter(DisplayActivity.this);
containerWidget.setWidget(displayView.asWidget());
}
});
}