/** * Reset the current history. */ public void resetCurrentHistory() { historyParams.clear(); String historyToken = UrlParams.generateParamsUrl(historyParams); History.newItem(historyToken, false); }
/** * Adds a new browser history entry. Calling this method will cause * {@link ValueChangeHandler#onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)} * to be called as well. * * @param historyToken the token to associate with the new history item */ public static void newItem(String historyToken) { newItem(historyToken, true); }
public void newItem(String token, boolean issueEvent) { History.newItem(token, issueEvent); } }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); if (DOM.eventGetType(event) == Event.ONCLICK && impl.handleAsClick(event)) { History.newItem(getTargetHistoryToken()); event.preventDefault(); } }
/** * Adds a new browser history entry. Calling this method will cause * {@link ValueChangeHandler#onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)} * to be called as well. * * @param historyToken the token to associate with the new history item */ public static void newItem(String historyToken) { newItem(historyToken, true); }
private void recordHistory(String toolsetId, String toolId) { String toolToken = toolId != null ? toolId : "none"; String historyToken = "errai_" + toolsetId + ";" + toolToken; History.newItem(historyToken, false); }
@Override public void onHide(Component component) { History.newItem(""); }
@Override public void setValue(final String value) { History.newItem(value); }
@Override public void onClick(ClickEvent event) { String req = ImportProjectPresenter.PLACE.getId(); History.newItem(req); } });
@Override public void onClick(ClickEvent event) { String req = ExportProjectPresenter.PLACE.getId(); History.newItem(req); } });
@Override public void onClick(ClickEvent event) { String req = OpenProjectPresenter.PLACE.getId(); History.newItem(req); } });
public void goTo( Place place ) { if( activityMng.mayStop() ) { String token = placeTokenizer.getToken( place ); History.newItem( token ); } }
@Override public void onValueChange( ValueChangeEvent<String> event ) { currentPlace = placeTokenizer.getPlace( event.getValue() ); if( currentPlace == null ) { History.newItem( "" ); return; } activityMng.setPlace( currentPlace, this ); } }
/** * @see History#newItem(String, boolean) */ public static void newItem(String historyToken, boolean fireEvent) { if (PushStateUtil.isPushStateActivated()) { maybeInitPushState(); pushStateHistory.newItem(historyToken, fireEvent); } else { History.newItem(historyToken, fireEvent); } }
@Override public void onValueChange( ValueChangeEvent<String> event ) { currentPlace = placeTokenizer.getPlace( event.getValue() ); if( currentPlace == null ) { History.newItem( "" ); return; } activityMng.setPlace( currentPlace, this ); } }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); if (DOM.eventGetType(event) == Event.ONCLICK && impl.handleAsClick(event)) { History.newItem(getTargetHistoryToken()); event.preventDefault(); } }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); if (DOM.eventGetType(event) == Event.ONCLICK && impl.handleAsClick(event)) { History.newItem(getTargetHistoryToken()); event.preventDefault(); } }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); if (getTargetHistoryToken() != null) { // implementation is based on Hyperlink#onBrowserEvent if (DOM.eventGetType(event) == Event.ONCLICK && impl.handleAsClick(event)) { History.newItem(getTargetHistoryToken()); event.preventDefault(); } } }
@Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); if (getTargetHistoryToken() != null) { // implementation is based on Hyperlink#onBrowserEvent if (DOM.eventGetType(event) == Event.ONCLICK && impl.handleAsClick(event)) { History.newItem(getTargetHistoryToken()); event.preventDefault(); } } }
protected void update() { History.newItem( queryTokenObject.toString(), false ); Window.setTitle(getCurrentTitle()); notifyListeners(); SweetAnalytics sweetAnalytics = new SweetAnalytics(queryTokenObject.getViewAnalytics(), queryTokenObject.getFilterAnalytics(), queryTokenObject.getInstanceAnalytics()); recordAnalyticsHit(sweetAnalytics.toString()); } // -- END update application methods