com.google.gwt.place.shared.PlaceHistoryMapper Java Examples
The following examples show how to use
com.google.gwt.place.shared.PlaceHistoryMapper.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ApplicationClientModule.java From bitcoin-transaction-explorer with MIT License | 6 votes |
@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)); }
Example #2
Source File: ApplicationRootView.java From bitcoin-transaction-explorer with MIT License | 6 votes |
@Inject public ApplicationRootView(final PlaceHistoryMapper historyMapper, final PlaceController placeController, final UserApplicationConfig appConfig, NotificationPanel notificationPanel, ThemeSwitcher themeSwitcher) { this.placeController = placeController; this.notificationPanel = notificationPanel; this.themeSwitcher = themeSwitcher; EventBus simpleEventBus = new SimpleEventBus(); notificationPanel.setEventBus(simpleEventBus); NotificationUtil.setEventBus(simpleEventBus); initWidget(UI_BINDER.createAndBindUi(this)); applicationTitle.setText(appConfig.getApplicationTitle()); applicationSubTitle.setText(appConfig.getApplicationSubTitle()); contributeLink.setHref("#" + historyMapper.getToken(new ContributePlace())); }
Example #3
Source File: MainController.java From lumongo with Apache License 2.0 | 5 votes |
public void init(PlaceHistoryMapper placeHistoryMapper, Place defaultPlace, Place homePlace) { this.placeHistoryMapper = placeHistoryMapper; this.defaultPlace = defaultPlace; this.homePlace = homePlace; PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(placeHistoryMapper); historyHandler.register(placeController, eventBus, defaultPlace); GWT.log("Here?"); historyHandler.handleCurrentHistory(); }
Example #4
Source File: Showcase.java From requestor with Apache License 2.0 | 5 votes |
@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(); }
Example #5
Source File: PlaceHandler.java From lumongo with Apache License 2.0 | 4 votes |
protected PlaceHistoryMapper getPlaceHistoryMapper() { return new PlaceHistoryMapperImpl(); }