Exemple #1
0
  public void updateViewFromState() {
    customSqlBox.setText(savedSqlCondition);
    showInvalid.setChecked(savedShowInvalid);

    filterList.clear();
    for (FilterData filterData : savedFilters) {
      filterList.addWidget(filterFactory.getFilterWidgetFromData(filterData));
    }
  }
Exemple #2
0
  public void handleHistoryArguments(Map<String, String> arguments) {
    setSqlCondition(arguments.get("condition"));
    savedShowInvalid = Boolean.valueOf(arguments.get("show_invalid"));
    showInvalid.setChecked(savedShowInvalid);

    filterList.clear();
    for (int index = 0; ; index++) {
      FilterData filterData = FilterData.dataFromHistory(arguments, getListKey("filter", index));
      if (filterData == null) {
        break;
      }
      filterList.addWidget(filterFactory.getFilterWidgetFromData(filterData));
    }
  }