@Override public void goTo(Place place) { clientFactory.getPlaceController().goTo(place); }
@Override public void onSelectionChange(SelectionChangeEvent event) { TreePlace place = navigationView.getSelectionModel().getSelectedObject(); if (place != null) { goTo(place); TreePlace current = (TreePlace) clientFactory.getPlaceController().getWhere(); if (!current.equals(place)) { navigationView.getSelectionModel().setSelected(current, true); } } } }
/** * Request a change to a new place. It is not a given that we'll actually get * there. First a {@link PlaceChangeRequestEvent} will be posted to the event * bus. If any receivers post a warning message to that event, it will be * presented to the user via {@link Delegate#confirm(String)} (which is * typically a call to {@link Window#confirm(String)}). If she cancels, the * current location will not change. Otherwise, the location changes and a * {@link PlaceChangeEvent} is posted announcing the new place. * * @param newPlace a {@link Place} instance */ public void goTo(Place newPlace) { log().fine("goTo: " + newPlace); if (getWhere().equals(newPlace)) { log().fine("Asked to return to the same place: " + newPlace); return; } String warning = maybeGoTo(newPlace); if (warning == null || delegate.confirm(warning)) { where = newPlace; eventBus.fireEvent(new PlaceChangeEvent(newPlace)); } }
PlaceController placeController = new PlaceController(eventBus);
/** * Request a change to a new place. It is not a given that we'll actually get * there. First a {@link PlaceChangeRequestEvent} will be posted to the event * bus. If any receivers post a warning message to that event, it will be * presented to the user via {@link Delegate#confirm(String)} (which is * typically a call to {@link Window#confirm(String)}). If she cancels, the * current location will not change. Otherwise, the location changes and a * {@link PlaceChangeEvent} is posted announcing the new place. * * @param newPlace a {@link Place} instance */ public void goTo(Place newPlace) { log().fine("goTo: " + newPlace); if (getWhere().equals(newPlace)) { log().fine("Asked to return to the same place: " + newPlace); return; } String warning = maybeGoTo(newPlace); if (warning == null || delegate.confirm(warning)) { where = newPlace; eventBus.fireEvent(new PlaceChangeEvent(newPlace)); } }
@Override public void goTo(Place place) { clientFactory.getPlaceController().goTo(place); }
/** * Request a change to a new place. It is not a given that we'll actually get * there. First a {@link PlaceChangeRequestEvent} will be posted to the event * bus. If any receivers post a warning message to that event, it will be * presented to the user via {@link Delegate#confirm(String)} (which is * typically a call to {@link Window#confirm(String)}). If she cancels, the * current location will not change. Otherwise, the location changes and a * {@link PlaceChangeEvent} is posted announcing the new place. * * @param newPlace a {@link Place} instance */ public void goTo(Place newPlace) { log().fine("goTo: " + newPlace); if (getWhere().equals(newPlace)) { log().fine("Asked to return to the same place: " + newPlace); return; } String warning = maybeGoTo(newPlace); if (warning == null || delegate.confirm(warning)) { where = newPlace; eventBus.fireEvent(new PlaceChangeEvent(newPlace)); } }
@Override public Place getWhere() { return placeController.getWhere(); } }
/** * Navigate to a new Place in the browser. */ public void goTo(Place place) { clientFactory.getPlaceController().goTo(place); }
@Override public Place getWhere() { return placeController.getWhere(); } }
@Override public void goTo(Place place) { clientFactory.getPlaceController().goTo(place); }
@Override public void goTo(Place place) { clientFactory.getPlaceController().goTo(place); }
@Override public void goTo(Place place) { clientFactory.getPlaceController().goTo(place); }
@Override public void goToHome() { clientFactory.getPlaceController().goTo(clientFactory.getHomePlace()); } }
private void handleHistoryToken(String token) { Place newPlace = null; if ("".equals(token)) { newPlace = defaultPlace; } if (newPlace == null) { newPlace = mapper.getPlace(token); } if (newPlace == null) { log().warning("Unrecognized history token: " + token); newPlace = defaultPlace; } placeController.goTo(newPlace); }
@Override public void goTo(Place place, boolean ignore) { MGWTPlaceHistoryHandler.this.ignore = ignore; placeController.goTo(place); }
@Override public void goTo(Place place, boolean ignore) { MGWTPlaceHistoryHandler.this.ignore = ignore; placeController.goTo(place); }
@Override public void goTo(Place place) { placeController.goTo(place); }
@Override public void goTo(Place place) { placeController.goTo(place); }
@Override public void gotoPlace(Place place) { if (place == null) { History.back(); return; } placeController.goTo(place); }