本文整理汇总了Java中com.google.gwt.activity.shared.ActivityMapper类的典型用法代码示例。如果您正苦于以下问题:Java ActivityMapper类的具体用法?Java ActivityMapper怎么用?Java ActivityMapper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ActivityMapper类属于com.google.gwt.activity.shared包,在下文中一共展示了ActivityMapper类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onModuleLoad
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Override
public void onModuleLoad() {
ClientFactory clientFactory = GWT.create(ClientFactory.class);
EventBus eventBus = clientFactory.getEventBus();
PlaceController placeController = clientFactory.getPlaceController();
// Start ActivityManager for the twitter widget with our ActivityMapper
ActivityMapper activityMapper = new AppActivityMapper(clientFactory);
ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
activityManager.setDisplay(appWidget);
// Start PlaceHistoryHandler with our PlaceHistoryMapper
AppPlaceHistoryMapper historyMapper= GWT.create(AppPlaceHistoryMapper.class);
PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
historyHandler.register(placeController, eventBus, defaultPlace);
RootPanel.get().add(appWidget);
// Goes to the place represented on URL else default place
historyHandler.handleCurrentHistory();
}
开发者ID:WSDOT,项目名称:social-analytics,代码行数:23,代码来源:SocialAnalytics.java
示例2: createPhoneDisplay
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
private void createPhoneDisplay(ClientFactory clientFactory) {
AnimationWidget navDisplay = new AnimationWidget();
ActivityMapper navActivityMapper = new AppNavActivityMapper(clientFactory);
AnimationMapper navAnimationMapper = new AppNavAnimationMapper();
AnimatingActivityManager navActivityManager = new AnimatingActivityManager(
navActivityMapper, navAnimationMapper,
clientFactory.getEventBus());
navActivityManager.setDisplay(navDisplay);
clientFactory.getSwipeMenu().setMenuDisplay(navDisplay);
AnimationWidget mainDisplay = new AnimationWidget();
AppMainActivityMapper tabletMainActivityMapper = new AppMainActivityMapper(clientFactory);
AnimationMapper tabletMainAnimationMapper = new AppMainAnimationMapper();
AnimatingActivityManager mainActivityManager = new AnimatingActivityManager(
tabletMainActivityMapper, tabletMainAnimationMapper,
clientFactory.getEventBus());
mainActivityManager.setDisplay(mainDisplay);
clientFactory.getSwipeMenu().setContentDisplay(mainDisplay);
RootPanel.get().add(clientFactory.getSwipeMenu());
}
开发者ID:waynedyck,项目名称:mgwt-traffic-flow,代码行数:24,代码来源:AppEntryPoint.java
示例3: onModuleLoad
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
/**
* This is the entry point method.
*/
public void onModuleLoad() {
ClientFactory clientFactory = GWT.create(ClientFactory.class);
EventBus eventBus = clientFactory.getEventBus();
PlaceController placeController = clientFactory.getPlaceController();
// Start ActivityManager for the main widget with our ActivityMapper
ActivityMapper activityMapper = new AppMapper(clientFactory);
ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
activityManager.setDisplay(new SimplePanel());
// Start PlaceHistoryHandler with our PlaceHistoryMapper
AppPlaceHistoryMapper historyMapper = GWT.create(AppPlaceHistoryMapper.class);
PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
historyHandler.register(placeController, eventBus, defaultPlace);
// Goes to the place represented on URL else default place
historyHandler.handleCurrentHistory();
}
开发者ID:guiguib,项目名称:yaph,代码行数:23,代码来源:Yaph.java
示例4: createTabletDisplay
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
private void createTabletDisplay() {
AnimatableDisplay navDisplay = GWT.create(AnimatableDisplay.class);
SimplePanel navPanel = new SimplePanel();
navPanel.getElement().setId("nav");
navPanel.getElement().addClassName("landscapeonly");
TabletPortraitOverlay tabletPortraitOverlay = new TabletPortraitOverlay();
OrientationRegionHandler orientationRegionHandler = new OrientationRegionHandler(navPanel, tabletPortraitOverlay, navDisplay);
MasterRegionHandler masterRegionHandler = new MasterRegionHandler(getClientFactory().getEventBus(), "nav", tabletPortraitOverlay);
ActivityMapper navActivityMapper = new TabletNavActivityMapper(getClientFactory());
AnimationMapper navAnimationMapper = new TabletNavAnimationMapper();
AnimatingActivityManager navActivityManager = new AnimatingActivityManager(navActivityMapper, navAnimationMapper, getClientFactory().getEventBus());
navActivityManager.setDisplay(navDisplay);
RootPanel.get().add(navPanel);
AnimatableDisplay display = GWT.create(AnimatableDisplay.class);
SimplePanel contentPanel = new SimplePanel();
contentPanel.getElement().setId("main");
TabletMainActivityMapper contentActivityMapper = new TabletMainActivityMapper(getClientFactory());
AnimationMapper contentAnimationMapper = new TabletMainAnimationMapper();
AnimatingActivityManager contentActivityManager = new AnimatingActivityManager(contentActivityMapper, contentAnimationMapper, getClientFactory().getEventBus());
contentActivityManager.setDisplay(display);
contentPanel.setWidget(display);
RootPanel.get().add(contentPanel);
}
开发者ID:qafedev,项目名称:qafe-platform,代码行数:25,代码来源:MainController.java
示例5: configure
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Override
protected void configure() {
bind(EventBus.class).to(SimpleEventBus.class).asEagerSingleton();
bind(ActivityMapper.class).to(AppActivityMapper.class).asEagerSingleton();
// Views (singletons due to expense of construction)
bind(WelcomeView.class).to(WelcomeViewImpl.class).asEagerSingleton();
bind(CharacterView.class).to(CharacterViewImpl.class).asEagerSingleton();
// Factories for presenters
install(new GinFactoryModuleBuilder()
.implement(CharacterPresenter.class, CharacterActivity.class)
.build(CharacterPresenterFactory.class));
install(new GinFactoryModuleBuilder()
.implement(WelcomePresenter.class, WelcomeActivity.class)
.build(WelcomePresenterFactory.class));
}
开发者ID:dharmab,项目名称:sheets,代码行数:19,代码来源:SheetsGinModule.java
示例6: configure
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Override
protected void configure() {
// Binding application critical architecture
bind(ActivityMapper.class).to(ApplicationActivityMapper.class).in(Singleton.class);;
bind(Place.class).annotatedWith(DefaultPlace.class).to(StartupPlace.class).in(Singleton.class);
bind(PlaceController.class).to(ApplicationPlaceController.class).in(Singleton.class);
bind(BitcoinPlaceRouter.class).to(ApplicationPlaceController.class).in(Singleton.class);
bind(PlaceHistoryMapper.class).to(ApplicationPlaceHistoryMapper.class).in(Singleton.class);
bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);
bind(ColorPicker.class).to(SimpleColorPicker.class).in(Singleton.class);
// Binding views
bind(StartupView.class).to(StartupViewImpl.class).in(Singleton.class);
bind(TransactionView.class).to(TransactionViewImpl.class);
bind(BlockView.class).to(BlockViewImpl.class);
bind(MineView.class).to(MineViewImpl.class);
bind(ScriptView.class).to(ScriptViewImpl.class);
bind(ConfigView.class).to(ConfigViewImpl.class);
bind(ContributeView.class).to(ContributeViewImpl.class);
bind(RPCResponseView.class).to(RPCResponseViewImpl.class);
bind(AddressView.class).to(AddressViewImpl.class);
install(new GinFactoryModuleBuilder().build(ActivityFactory.class));
}
开发者ID:JornC,项目名称:bitcoin-transaction-explorer,代码行数:25,代码来源:ApplicationClientModule.java
示例7: onModuleLoad
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Override
public void onModuleLoad() {
ensureCssInjected();
ManagerClientFactory clientFactory = new DefaultManagerClientFactoryImpl();
EventBus eventBus = clientFactory.getEventBus();
PlaceController placeController = clientFactory.getPlaceController();
// Start ActivityManager for the main widget with our ActivityMapper
ActivityMapper activityMapper = new ManagerActivityMapper(clientFactory);
ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
activityManager.setDisplay(clientFactory.getLayoutView());
// Start PlaceHistoryHandler with our PlaceHistoryMapper
ManagerPlaceHistoryMapper historyMapper= GWT.create(ManagerPlaceHistoryMapper.class);
PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
historyHandler.register(placeController, eventBus, defaultPlace);
RootLayoutPanel.get().add(clientFactory.getLayoutView());
historyHandler.handleCurrentHistory();
}
开发者ID:thorntonv,项目名称:mechaverse,代码行数:24,代码来源:MechaverseClient.java
示例8: createPhoneDisplay
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
private void createPhoneDisplay(ClientFactory clientFactory) {
// Setup navigation activity
AnimationWidget navDisplay = new AnimationWidget();
ActivityMapper navActivityMapper = new AppNavActivityMapper(
clientFactory);
AnimationMapper navAnimationMapper = new AppNavAnimationMapper();
AnimatingActivityManager navActivityManager = new AnimatingActivityManager(
navActivityMapper, navAnimationMapper, clientFactory.getEventBus());
navActivityManager.setDisplay(navDisplay);
clientFactory.getSwipeMenu().setMenuDisplay(navDisplay);
// Setup main content activity
AnimationWidget mainDisplay = new AnimationWidget();
AppMainActivityMapper mainActivityMapper = new AppMainActivityMapper(clientFactory);
AnimationMapper mainAnimationMapper = new AppMainAnimationMapper();
AnimatingActivityManager mainActivityManager = new AnimatingActivityManager(
mainActivityMapper, mainAnimationMapper, clientFactory.getEventBus());
mainActivityManager.setDisplay(mainDisplay);
clientFactory.getSwipeMenu().setContentDisplay(mainDisplay);
RootPanel.get().add(clientFactory.getSwipeMenu());
}
开发者ID:WSDOT,项目名称:Archetypes,代码行数:26,代码来源:__module__EntryPoint.java
示例9: configure
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Override
protected void configure() {
/*
* bind both versions of EventBus to the same single instance of the SimpleEventBus
*/
bind(SimpleEventBus.class).in(Singleton.class);
bind(EventBus.class).to(SimpleEventBus.class);
bind(com.google.gwt.event.shared.EventBus.class).to(SimpleEventBus.class);
/* navigation */
bind(Historian.class).to(DefaultHistorian.class).in(Singleton.class);
bind(AppPlaceHistoryMapper.class).in(Singleton.class);
bind(PlaceHistoryMapper.class).to(AppPlaceHistoryMapper.class);
bind(PrefixedPlaceHistoryMapper.class).to(AppPlaceHistoryMapper.class);
bind(PlaceController.class).to(PlaceControllerEx.class).in(Singleton.class);
bind(ActivityMapper.class).to(Level9ActivityMapper.class).in(Singleton.class);
/* set scope of views */
bind(Level9ApplicationView.class).to(Level9ApplicationViewImpl.class).in(Singleton.class);
bind(Level9GameView.class).to(Level9GameViewImpl.class).in(Singleton.class);
/* choose desktop implementation */
bind(ApplicationActivity.class).to(Level9ApplicationActivity.class);
}
开发者ID:pillingworthz,项目名称:ifictionary,代码行数:26,代码来源:Level9InjectorModule.java
示例10: onModuleLoad
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Override
public void onModuleLoad() {
GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {
public void onUncaughtException(Throwable e) {
Log.log(Level.SEVERE, e.getMessage(), e);
MaterialToast.fireToast("Unknown error, please reload application");
}
});
Theme.bundle(); // inject
workPanel = new SimplePanel();
workPanel.setSize("100%", "100%");
ActivityMapper activityMapper = new MentorActivityMapper();
ActivityManager activityManager = new ActivityManager(activityMapper, MentorBus.get());
activityManager.setDisplay(workPanel);
Element loader = Document.get().getElementById("loader");
if (loader != null)
loader.removeFromParent();
RootPanel.get().add(workPanel, 0, 0);
Places.handler().handleCurrentHistory(); // goes to the place represented on URL, else default place
}
开发者ID:vsite-hr,项目名称:mentor,代码行数:29,代码来源:Mentor.java
示例11: configure
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Override
protected void configure() {
bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);
// PlaceHistoryMapper instantiate new places based on the browser URL.
// You
// only need one of those for the entire app.
bind(PlaceHistoryMapper.class).to(ApplicationPlaceHistoryMapper.class)
.in(Singleton.class);
// / ActivityMapper maps the place to a new activity instance.
// You should have one activity mapper for each display area.
bind(ActivityMapper.class).to(ActivityMapperImpl.class).in(
Singleton.class);
}
开发者ID:jlSites,项目名称:funWithGwt,代码行数:16,代码来源:MvpModule.java
示例12: onModuleLoad
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Override
public void onModuleLoad() {
populateMenu();
// Create view container
final SimplePanel container = new SimplePanel();
container.setStyleName("container requestor-showcase-container");
RootPanel.get().add(container);
// Main Factory (Dependency Injector)
ShowcaseClientFactory clientFactory = CLIENT_FACTORY;
EventBus eventBus = clientFactory.getEventBus();
PlaceController placeController = clientFactory.getPlaceController();
// Activity-Place binding
ActivityMapper activityMapper = new ShowcaseActivityMapper();
ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
activityManager.setDisplay(container);
// Place-History binding
PlaceHistoryMapper historyMapper = new ShowcasePlaceHistoryMapper();
PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
historyHandler.register(placeController, eventBus, defaultPlace);
// Add Loading widget
RootPanel.get().add(new Loading(eventBus));
// Goes to place represented on URL or default place
historyHandler.handleCurrentHistory();
}
开发者ID:reinert,项目名称:requestor,代码行数:31,代码来源:Showcase.java
示例13: DesktopApp
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Inject
public DesktopApp(final EventBus eventBus,
final PlaceController placeController,
final ActivityMapper activityMapper,
final PlaceHistoryMapper placeHistoryMapper,
final ShellDisplay.Presenter shell) {
this.eventBus = eventBus;
this.placeController = placeController;
this.activityMapper = activityMapper;
this.placeHistoryMapper = placeHistoryMapper;
this.shell = shell;
}
开发者ID:burakince,项目名称:open-course-organizer,代码行数:13,代码来源:DesktopApp.java
示例14: configure
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Override
protected void configure() {
bind(App.class).to(DesktopApp.class).in(Singleton.class);
bind(EventBus.class).to(SimpleEventBus.class).asEagerSingleton();
bind(PlaceController.class).toProvider(PlaceControllerProvider.class).in(Singleton.class);
install(new GinFactoryModuleBuilder().build(AppActivityMapper.Factory.class));
bind(ActivityMapper.class).to(AppActivityMapper.class).in(Singleton.class);
bind(PlaceHistoryMapper.class).to(AppPlaceHistoryMapper.class).in(Singleton.class);
bind(AppRequestFactory.class).toProvider(AppRequestFactoryProvider.class).in(Singleton.class);
bind(Messages.class).in(Singleton.class);
bind(Constants.class).in(Singleton.class);
// Views
bind(ShellDisplay.class).to(ShellView.class).asEagerSingleton();
bind(EventsDisplay.class).to(EventsView.class).asEagerSingleton();
bind(EventDetailDisplay.class).to(EventDetailView.class).asEagerSingleton();
bind(SubjectDisplay.class).to(SubjectView.class).asEagerSingleton();
// Presenters
bind(ShellDisplay.Presenter.class).to(ShellPresenter.class).in(Singleton.class);
bind(EventsDisplay.Presenter.class).to(EventsPresenter.class);
bind(EventDetailDisplay.Presenter.class).to(EventDetailPresenter.class);
bind(SubjectDisplay.Presenter.class).to(SubjectPresenter.class);
}
开发者ID:burakince,项目名称:open-course-organizer,代码行数:29,代码来源:DesktopModule.java
示例15: onModuleLoad
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Override
public void onModuleLoad() {
GWT.setUncaughtExceptionHandler(new DialogBoxUncaughtExceptionHandler());
ApplicationRequestFactory requestFactory = GWT
.create(ApplicationRequestFactory.class);
Logger.getLogger("").addHandler(new SimpleRemoteLogHandler());
ClientFactory clientFactory = GWT.create(ClientFactory.class);
EventBus eventBus = clientFactory.getEventBus();
PlaceController placeController = clientFactory.getPlaceController();
// Start ActivityManager for the main widget with our ActivityMapper
requestFactory.initialize(eventBus, new EventSourceRequestTransport(
eventBus));
ActivityMapper activityMapper = new AppActivityMapper(clientFactory,
requestFactory);
ActivityManager activityManager = new ActivityManager(activityMapper,
eventBus);
HasBody template = clientFactory.getTemplate();
activityManager.setDisplay(template.getBody());
// Start PlaceHistoryHandler with our PlaceHistoryMapper
AppPlaceHistoryMapper historyMapper = GWT
.create(AppPlaceHistoryMapper.class);
PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(
historyMapper);
historyHandler.register(placeController, eventBus, defaultPlace);
RootLayoutPanel.get().add(template);
// Goes to the place represented on URL else default place
historyHandler.handleCurrentHistory();
}
开发者ID:apetrelli,项目名称:samplegwt,代码行数:34,代码来源:__moduleName__.java
示例16: ZaxApplicationController
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Inject
public ZaxApplicationController(ActivityMapper mainActivityMapper, EventBus eventBus,
ApplicationActivity applicationActivity) {
this.mainActivityMapper = mainActivityMapper;
this.eventBus = eventBus;
this.applicationActivity = applicationActivity;
}
开发者ID:pillingworthz,项目名称:ifictionary,代码行数:9,代码来源:ZaxApplicationController.java
示例17: Level9AppController
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Inject
public Level9AppController(ActivityMapper mainActivityMapper, EventBus eventBus,
ApplicationActivity applicationActivity) {
this.mainActivityMapper = mainActivityMapper;
this.eventBus = eventBus;
this.applicationActivity = applicationActivity;
}
开发者ID:pillingworthz,项目名称:ifictionary,代码行数:9,代码来源:Level9AppController.java
示例18: loadApp
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
private void loadApp() {
// Show login links
Element userLinks = Document.get().getElementById(AppStyles.ID_USER_LINKS);
UListElement ul = Document.get().createULElement();
LIElement liSignedIn = Document.get().createLIElement();
LIElement liSignOut = Document.get().createLIElement();
User me = App.getAppModel().getMe();
String firstName = me.firstName;
String lastName = me.lastName;
liSignedIn.setInnerHTML("Signed in as <span class=\"nameText\">" + firstName + " " + lastName + "</span>");
liSignOut.setInnerHTML("<span class=\"listmaker-userEmail\">" + me.emailAddress + "</span>");
liSignOut.setInnerHTML("<a href=\"" + LOGOUT_URL + "\">Sign out</a>");
ul.appendChild(liSignedIn);
ul.appendChild(liSignOut);
userLinks.appendChild(ul);
//gwt-activities-and-places
ActivityMapper userActivityMapper = new UserActivityMapper();
ActivityManager userActivityManager = new ActivityManager(userActivityMapper, App.getEventBus());
userActivityManager.setDisplay(userDisplay);
ActivityMapper addNoteActivityMapper = new AddNoteActivityMapper();
ActivityManager addNoteActivityManager = new ActivityManager(addNoteActivityMapper, App.getEventBus());
addNoteActivityManager.setDisplay(addNote);
ActivityMapper navActivityMapper = new NavActivityMapper();
ActivityManager navActivityManager = new ActivityManager(navActivityMapper, App.getEventBus());
navActivityManager.setDisplay(nav);
ActivityMapper mainActivityMapper = new AppActivityMapper();
ActivityManager noteDisplayActivityManager = new ActivityManager(mainActivityMapper, App.getEventBus());
noteDisplayActivityManager.setDisplay(mainDisplay);
PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(App.getPlaceHistoryMapper());
historyHandler.register(App.getClientFactory().getPlaceController(), App.getEventBus(), defaultPlace);
DOM.removeChild(RootPanel.getBodyElement(), DOM.getElementById(AppStyles.ID_SPLASH));
RootPanel.get(AppStyles.BODY_PANEL_USER_ID).add(userDisplay);
RootPanel.get(AppStyles.BODY_PANEL_TOP_ID).add(addNote);
RootPanel.get(AppStyles.BODY_PANEL_CONTENT_ID).add(mainDisplay);
RootPanel.get(AppStyles.BODY_PANEL_NAV_ID).add(nav);
historyHandler.handleCurrentHistory();
}
开发者ID:turbomanage,项目名称:listmaker,代码行数:46,代码来源:ListmakerMvp.java
示例19: provideActivityManager
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
@Provides
@Singleton
ActivityManager provideActivityManager(ActivityMapper activityMapper, EventBus eventBus) {
return new ActivityManager(activityMapper, eventBus);
}
开发者ID:dharmab,项目名称:sheets,代码行数:6,代码来源:SheetsGinModule.java
示例20: init
import com.google.gwt.activity.shared.ActivityMapper; //导入依赖的package包/类
private void init() {
Utils.injectKaaStyles();
ClientFactory clientFactory = GWT.create(ClientFactory.class);
EventBus eventBus = clientFactory.getEventBus();
dataSource = new DataSource(eventBus);
ActivityMapper headerActivityMapper = new HeaderActivityMapper(clientFactory);
ActivityManager headerActivityManager = new ActivityManager(headerActivityMapper, eventBus);
headerActivityManager.setDisplay(appWidget.getAppHeaderHolder());
ActivityMapper navigationActivityMapper = new NavigationActivityMapper(
clientFactory, eventBus);
ActivityManager navigationActivityManager = new ActivityManager(
navigationActivityMapper, eventBus);
navigationActivityManager.setDisplay(appWidget.getNavContentHolder());
ActivityMapper appActivityMapper = new AppActivityMapper(clientFactory);
ActivityManager appActivityManager = new ActivityManager(appActivityMapper, eventBus);
appActivityManager.setDisplay(appWidget.getAppContentHolder());
PlaceHistoryMapper historyMapper = null;
switch (authInfo.getAuthority()) {
case KAA_ADMIN:
historyMapper = GWT.create(KaaAdminPlaceHistoryMapper.class);
clientFactory.setHomePlace(new TenantsPlace());
break;
case TENANT_ADMIN:
historyMapper = GWT.create(TenantAdminPlaceHistoryMapper.class);
clientFactory.setHomePlace(new ApplicationsPlace());
break;
case TENANT_DEVELOPER:
historyMapper = GWT.create(TenantDeveloperPlaceHistoryMapper.class);
clientFactory.setHomePlace(new ApplicationsPlace());
break;
case TENANT_USER:
historyMapper = GWT.create(TenantUserPlaceHistoryMapper.class);
clientFactory.setHomePlace(new ApplicationsPlace());
break;
default:
break;
}
PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
Place place;
if (authInfo.getAuthority() == KaaAuthorityDto.KAA_ADMIN) {
place = new TenantsPlace();
} else {
place = new ApplicationsPlace();
}
PlaceController placeController = clientFactory.getPlaceController();
historyHandler.register(placeController, eventBus, place);
RootLayoutPanel.get().add(appWidget);
// Goes to the place represented on URL else default place
historyHandler.handleCurrentHistory();
}
开发者ID:kaaproject,项目名称:kaa,代码行数:62,代码来源:KaaAdmin.java
注:本文中的com.google.gwt.activity.shared.ActivityMapper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论