Exemplo n.º 1
0
  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();
  }
Exemplo n.º 2
0
 public void setNoResultsLabel(List<VariableDetailsLight> data) {
   if (data.isEmpty()) {
     resultsPanel.setResultsLabel("No results found for this query");
     return;
   }
 }
Exemplo n.º 3
0
 public void clearResultPanel() {
   resultsPanel.setResultsLabel("");
   resultsPanel.clearResultTable();
 }