com.google.gwt.place.shared.PlaceHistoryHandler Java Examples
The following examples show how to use
com.google.gwt.place.shared.PlaceHistoryHandler.
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: EditorWorkFlow.java From proarc with GNU General Public License v3.0 | 6 votes |
public EditorWorkFlow(EventBus ebus, PlaceController placeController, ActivityManager activityManager, Layout delegate, PresenterFactory presenterFactory, ClientMessages i18n) { this.presenterFactory = presenterFactory; this.i18n = i18n; this.ebus = (ebus != null) ? ebus : new SimpleEventBus(); // PlaceController uses delegate to ask user with blocking Window.confirm // whether to leave the current place. // In order to use non blocking SmartGWT dialog // it will be necessary to override PlaceController.goto method. this.placeController = (placeController != null) ? placeController : new PlaceController(this.ebus); this.activityManager = (activityManager != null) ? activityManager : new ActivityManager(new EditorActivityMapper(), this.ebus); this.activityManager.setDisplay(new EditorDisplay(delegate)); EditorPlaceHistoryMapper historyMapper = GWT.create(EditorPlaceHistoryMapper.class); placeHistoryHandler = new PlaceHistoryHandler(historyMapper); placeHistoryHandler.register(this.placeController, this.ebus, Place.NOWHERE); }
Example #2
Source File: Application.java From bitcoin-transaction-explorer with MIT License | 6 votes |
@Override public void onModuleLoad() { ApplicationGinjector.INSTANCE.inject(this); R.init(colorPicker); appActivityManager = new ActivityManager(actvityMapper, eventBus); historyHandler = new PlaceHistoryHandler(placeHistoryMapper); configService.getApplicationConfig(new AppAsyncCallback<UserApplicationConfig>() { @Override public void onSuccess(final UserApplicationConfig result) { configProvider.setApplicationConfig(result); onFinishedLoading(); } }); }
Example #3
Source File: MvpController.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
protected MvpController() { super(EventBus.get()); this.activityManager = new ActivityManager(this, EventBus.get()); this.historyHandler = new PlaceHistoryHandler(this); this.setDefaultPlace(this.defaultPlace); }
Example #4
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 #5
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(); }