@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); }
@Override public void go(ComponentContainer container, ScreenData<?> data) { super.go(container, data, false); }