private void updateHistoryBar() { if (currentBookmarkableURLStatus.endsWith(BookmarkableUrlHelper.OTHER_SCREEN_SEP)) { currentBookmarkableURLStatus = currentBookmarkableURLStatus.substring(0, currentBookmarkableURLStatus.length() - 1); } historian.newItem(currentBookmarkableURLStatus, false); }
/** * Initialize this place history handler. * @return a registration object to de-register the handler */ public HandlerRegistration initialize(final PlaceManager placeManager, final EventBus eventBus, final PlaceRequest defaultPlaceRequest) { this.placeManager = placeManager; this.defaultPlaceRequest = defaultPlaceRequest; final HandlerRegistration historyReg = historian.addValueChangeHandler(event -> { //Temporarily disabled until https://issues.jboss.org/browse/AF-523 is ready // handleHistoryToken(event.getValue()); }); return () -> { PlaceHistoryHandler.this.defaultPlaceRequest = DefaultPlaceRequest.NOWHERE; PlaceHistoryHandler.this.placeManager = null; historyReg.removeHandler(); }; }
public String getToken() { return (historian.getToken()); }
/** * Handle the current history token. Typically called at application start, * to ensure bookmark launches work. */ public void handleCurrentHistory() { handleHistoryToken(historian.getToken()); }