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