use of io.jmix.ui.entity.AbstractSingleFilterCondition in project jmix by jmix-framework.
the class AddConditionScreen method createFilterCondition.
protected FilterCondition createFilterCondition(Class<? extends FilterCondition> modelClass) {
FilterCondition newCondition = metadata.create(modelClass);
if (newCondition instanceof AbstractSingleFilterCondition) {
FilterValueComponent filterValueComponent = metadata.create(FilterValueComponent.class);
((AbstractSingleFilterCondition) newCondition).setValueComponent(filterValueComponent);
}
return newCondition;
}
Aggregations