Beispiel #1
0
 public void onOpenModule(final Class<? extends BasePresenter<?, ? extends EventBus>> presenter) {
   // opening module invoked from menu
   log.debug("Openning module for presenter {}", presenter.getCanonicalName());
   final IPresenterFactory pf = this.application.getPresenterFactory();
   this.contentPresenter = pf.createPresenter(presenter.getAnnotation(Component.class).value());
   this.view.setContent((com.vaadin.ui.Component) this.contentPresenter.getView());
 }
 @Override
 public Component getApplicationComponent(Application app) {
   IPresenterFactory pf = ((MainMVPApplication) app).getPresenterFactory();
   WorkspacePresenter wsp = (WorkspacePresenter) pf.createPresenter(WorkspacePresenter.class);
   return (Component) wsp.getView();
 }