use of org.jowidgets.cap.ui.api.filter.IUiFilter in project jo-client-platform by jo-source.
the class BeanRelationNodeModelImpl method getFilter.
private IFilter getFilter() {
final IFilter addedDataFilter = getAddedDataFilter();
if (filters.size() > 0 || addedDataFilter != null) {
final IBooleanFilterBuilder builder = CapCommonToolkit.filterFactory().booleanFilterBuilder();
builder.setOperator(BooleanOperator.AND);
final IUiFilterFactory filterFactory = CapUiToolkit.filterToolkit().filterFactory();
for (final IUiFilter uiFilter : filters.values()) {
builder.addFilter(filterFactory.convert(uiFilter));
}
if (addedDataFilter != null) {
builder.addFilter(addedDataFilter);
}
return builder.build();
} else {
return addedDataFilter;
}
}
use of org.jowidgets.cap.ui.api.filter.IUiFilter 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));
}
}
use of org.jowidgets.cap.ui.api.filter.IUiFilter 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));
}
use of org.jowidgets.cap.ui.api.filter.IUiFilter 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));
}
}
use of org.jowidgets.cap.ui.api.filter.IUiFilter in project jo-client-platform by jo-source.
the class BeanTableModelImpl method getFilter.
private IFilter getFilter() {
final IFilter addedDataFilter = getAddedDataFilter();
if (filters.size() > 0 || addedDataFilter != null) {
final IBooleanFilterBuilder builder = CapCommonToolkit.filterFactory().booleanFilterBuilder();
builder.setOperator(BooleanOperator.AND);
final IUiFilterFactory filterFactory = CapUiToolkit.filterToolkit().filterFactory();
for (final IUiFilter uiFilter : filters.values()) {
builder.addFilter(filterFactory.convert(uiFilter));
}
if (addedDataFilter != null) {
builder.addFilter(addedDataFilter);
}
return builder.build();
} else {
return addedDataFilter;
}
}
Aggregations