public Activity getActivity(Place place) { if (place instanceof AppGuestPlace) { currentActivity = injector .getCenterActivityFactory() .createCenterGuestActivity(((AppGuestPlace) place).getToken()); return currentActivity; } else if (place instanceof AppClientPlace) { currentActivity = injector .getCenterActivityFactory() .createCenterClientActivity(((AppClientPlace) place).getToken()); return currentActivity; } // else if (place instanceof CenterGuestPlace) { // return new CenterGuestActivity(clientFactory, ((CenterGuestPlace) // place).getToken()); // } else return currentActivity; }
public Activity getActivity(Place place) { if (place instanceof AppGuestPlace) { currentActivity = injector .getWestActivityFactory() .createWestGuestActivity(((AppGuestPlace) place).getToken()); return currentActivity; } // else if (place instanceof WestGuestPlace) { // return new WestGuestActivity(clientFactory, ((WestGuestPlace) place).getToken()); // } else if (place instanceof WestNonePlace) { // return new WestNoneActivity(clientFactory, ((WestNonePlace) place).getToken()); // } else return currentActivity; }
public void goTo(Place place) { injector.getAppPlaceController().goTo(place); }
public void start(AcceptsOneWidget containerWidget, EventBus eventBus) { WestGuestView westGuestView = injector.getWestGuestView(); westGuestView.setName(name); westGuestView.setPresenter(this); containerWidget.setWidget(westGuestView.asWidget()); }