@Override public void onSummaryRequest(SummaryRequiredEvent event) { datasource = event.getDatasource(); table = event.getTable(); variable = event.getVariable(); getView().setLimit(DEFAULT_LIMIT); UriBuilder resourceUri = event.getResourceUri(); resourceUri.query("fullIfCached", "true"); configureSummaryRequest(resourceUri, event.getMax(), datasource, table, variable); requestSummary(); }
@Override protected void onReveal() { handlerRegistration = getEventBus() .addHandler(SummaryRequiredEvent.getType(), new DeferredSummaryRequestHandler()); registerHandler(handlerRegistration); addRegisteredHandler( VariableRefreshEvent.getType(), new VariableRefreshEvent.Handler() { @Override public void onVariableRefresh(VariableRefreshEvent event) { requestSummary(); } }); }