Search in sources :

Example 1 with IUiFilterTools

use of org.jowidgets.cap.ui.api.filter.IUiFilterTools in project jo-client-platform by jo-source.

the class BeanRelationNodeModelImpl method removeFiltersForProperty.

@Override
public void removeFiltersForProperty(final String id, final String propertyName) {
    final IUiFilterTools filterTools = CapUiToolkit.filterToolkit().filterTools();
    final IUiFilter currentFilter = getFilter(id);
    if (currentFilter != null) {
        setFilter(id, filterTools.removeProperty(currentFilter, propertyName));
    }
}
Also used : IUiFilter(org.jowidgets.cap.ui.api.filter.IUiFilter) IUiFilterTools(org.jowidgets.cap.ui.api.filter.IUiFilterTools)

Example 2 with IUiFilterTools

use of org.jowidgets.cap.ui.api.filter.IUiFilterTools in project jo-client-platform by jo-source.

the class BeanTableModelImpl method addFilter.

@Override
public void addFilter(final String id, final IUiFilter addedFilter) {
    Assert.paramNotNull(id, "id");
    Assert.paramNotNull(addedFilter, "addedFilter");
    final IUiFilterTools filterTools = CapUiToolkit.filterToolkit().filterTools();
    final IUiFilter currentFilter = getFilter(id);
    setFilter(id, filterTools.addFilter(currentFilter, addedFilter));
}
Also used : IUiFilter(org.jowidgets.cap.ui.api.filter.IUiFilter) IUiFilterTools(org.jowidgets.cap.ui.api.filter.IUiFilterTools)

Example 3 with IUiFilterTools

use of org.jowidgets.cap.ui.api.filter.IUiFilterTools in project jo-client-platform by jo-source.

the class BeanTableModelImpl method removeFiltersForProperty.

@Override
public void removeFiltersForProperty(final String id, final String propertyName) {
    final IUiFilterTools filterTools = CapUiToolkit.filterToolkit().filterTools();
    final IUiFilter currentFilter = getFilter(id);
    if (currentFilter != null) {
        setFilter(id, filterTools.removeProperty(currentFilter, propertyName));
    }
}
Also used : IUiFilter(org.jowidgets.cap.ui.api.filter.IUiFilter) IUiFilterTools(org.jowidgets.cap.ui.api.filter.IUiFilterTools)

Example 4 with IUiFilterTools

use of org.jowidgets.cap.ui.api.filter.IUiFilterTools in project jo-client-platform by jo-source.

the class BeanRelationNodeModelImpl method addFilter.

@Override
public void addFilter(final String id, final IUiFilter addedFilter) {
    Assert.paramNotNull(id, "id");
    Assert.paramNotNull(addedFilter, "addedFilter");
    final IUiFilterTools filterTools = CapUiToolkit.filterToolkit().filterTools();
    final IUiFilter currentFilter = getFilter(id);
    setFilter(id, filterTools.addFilter(currentFilter, addedFilter));
}
Also used : IUiFilter(org.jowidgets.cap.ui.api.filter.IUiFilter) IUiFilterTools(org.jowidgets.cap.ui.api.filter.IUiFilterTools)

Example 5 with IUiFilterTools

use of org.jowidgets.cap.ui.api.filter.IUiFilterTools in project jo-client-platform by jo-source.

the class BeanTabFolderModelImpl method addFilter.

@Override
public void addFilter(final String id, final IUiFilter addedFilter) {
    Assert.paramNotNull(id, "id");
    Assert.paramNotNull(addedFilter, "addedFilter");
    final IUiFilterTools filterTools = CapUiToolkit.filterToolkit().filterTools();
    final IUiFilter currentFilter = getFilter(id);
    setFilter(id, filterTools.addFilter(currentFilter, addedFilter));
}
Also used : IUiFilter(org.jowidgets.cap.ui.api.filter.IUiFilter) IUiFilterTools(org.jowidgets.cap.ui.api.filter.IUiFilterTools)

Aggregations

IUiFilter (org.jowidgets.cap.ui.api.filter.IUiFilter)7 IUiFilterTools (org.jowidgets.cap.ui.api.filter.IUiFilterTools)7