use of io.jmix.ui.component.GroupFilter in project jmix by jmix-framework.
the class GroupFilterConverter method convertToComponent.
@Override
public GroupFilter convertToComponent(GroupFilterCondition model) {
GroupFilter groupFilter = super.convertToComponent(model);
groupFilter.setOperation(model.getOperation());
groupFilter.setCaption(model.getCaption());
groupFilter.setOperationCaptionVisible(model.getOperationCaptionVisible());
if (model.getOwnFilterConditions() != null) {
for (FilterCondition ownFilterCondition : model.getOwnFilterConditions()) {
FilterConverter ownFilterConverter = filterComponents.getConverterByModelClass(ownFilterCondition.getClass(), filter);
groupFilter.add(ownFilterConverter.convertToComponent(ownFilterCondition));
}
}
return groupFilter;
}
Aggregations