Search in sources :

Example 1 with TableTextUserFilterState

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;
}
Also used : IColumn(org.eclipse.scout.rt.client.ui.basic.table.columns.IColumn) TableTextUserFilterState(org.eclipse.scout.rt.client.ui.basic.table.userfilter.TableTextUserFilterState)

Aggregations

IColumn (org.eclipse.scout.rt.client.ui.basic.table.columns.IColumn)1 TableTextUserFilterState (org.eclipse.scout.rt.client.ui.basic.table.userfilter.TableTextUserFilterState)1