Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public void goTo(Place place) {
   injector.getAppPlaceController().goTo(place);
 }
Esempio n. 4
0
 public void start(AcceptsOneWidget containerWidget, EventBus eventBus) {
   WestGuestView westGuestView = injector.getWestGuestView();
   westGuestView.setName(name);
   westGuestView.setPresenter(this);
   containerWidget.setWidget(westGuestView.asWidget());
 }