use of org.eclipse.scout.rt.client.ui.basic.table.userfilter.TableTextUserFilterState in project scout.rt by eclipse.
the class JsonTable method createFilterState.
protected IUserFilterState createFilterState(JSONObject data) {
String filterType = data.getString("filterType");
if ("column".equals(filterType)) {
IColumn column = extractColumn(data);
JsonColumn jsonColumn = m_jsonColumns.get(column);
return jsonColumn.createFilterStateFromJson(data);
} else if ("text".equals(filterType)) {
String text = data.getString("text");
return new TableTextUserFilterState(text);
}
return null;
}
Aggregations