private CanLayoutMainView page404;
private CanLayoutMainView pageWithLinks;
public void createPresenter() {
this.page404 = new CanLayoutMainView(P.VIEW_404, eventBus) {
@Override
protected boolean doLayout(Portal view, Layout layout, State state) {
layout.plug(O.A, MainPresenter.this.view.get404View());
return true;
}
};
this.pageWithLinks = new CanLayoutMainView(P.LINKS, eventBus) {
@Override
protected boolean doLayout(Portal view, Layout layout, State state) {
layout.plug(O.A, MainPresenter.this.view.getLinksView(url));
return true;
}