예제 #1
0
  @Override
  protected void onGo(ComponentContainer container, ScreenData<?> data) {
    ProjectView projectViewContainer = (ProjectView) container;
    projectViewContainer.gotoSubView(ProjectTypeConstants.MILESTONE);

    AbstractPresenter presenter;
    if (data instanceof MilestoneScreenData.Search) {
      presenter = PresenterResolver.getPresenter(MilestoneListPresenter.class);
    } else if (data instanceof MilestoneScreenData.Add
        || data instanceof MilestoneScreenData.Edit) {
      presenter = PresenterResolver.getPresenter(MilestoneAddPresenter.class);
    } else if (data instanceof MilestoneScreenData.Read) {
      presenter = PresenterResolver.getPresenter(MilestoneReadPresenter.class);
    } else {
      throw new MyCollabException("Do not support screen data " + data);
    }

    presenter.go(view, data);
  }
예제 #2
0
 public void gotoProjectPage() {
   UserDashboardPresenter presenter = PresenterResolver.getPresenter(UserDashboardPresenter.class);
   presenter.go(this, null);
 }