use of org.eclipse.scout.rt.ui.html.json.table.userfilter.JsonTableUserFilter in project scout.rt by eclipse.
the class JsonTable method filtersToJson.
protected JSONArray filtersToJson(Collection<IUserFilterState> filters) {
JSONArray jsonFilters = new JSONArray();
for (IUserFilterState filter : filters) {
JsonTableUserFilter jsonFilter = (JsonTableUserFilter) MainJsonObjectFactory.get().createJsonObject(filter);
jsonFilter.setJsonTable(this);
if (jsonFilter.isValid()) {
jsonFilters.put(jsonFilter.toJson());
} else {
LOG.info("Filter is not valid, maybe column is invisible. {}", jsonFilter);
}
}
return jsonFilters;
}
Aggregations