public void setData(List<VariableDetailsLight> data) { resultsPanel.setResultsLabel(""); resultsPanel.clearResultTable(); if (data.isEmpty()) { return; } resultsPanel.addResultRow(0, new String[] {"Index", "Variable URL"}); for (int i = 0; i < data.size(); ++i) { resultsPanel.addResultRow(i + 1, data.get(i).getDisplayContent()); } resultsPanel.applyResultTableStyles(); }
public void setNoResultsLabel(List<VariableDetailsLight> data) { if (data.isEmpty()) { resultsPanel.setResultsLabel("No results found for this query"); return; } }
public void clearResultPanel() { resultsPanel.setResultsLabel(""); resultsPanel.clearResultTable(); }