Search in sources :

Example 1 with AbstractSingleFilterCondition

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;
}
Also used : AbstractSingleFilterCondition(io.jmix.ui.entity.AbstractSingleFilterCondition) FilterCondition(io.jmix.ui.entity.FilterCondition) JpqlFilterCondition(io.jmix.ui.entity.JpqlFilterCondition) HeaderFilterCondition(io.jmix.ui.entity.HeaderFilterCondition) AbstractSingleFilterCondition(io.jmix.ui.entity.AbstractSingleFilterCondition) FilterValueComponent(io.jmix.ui.entity.FilterValueComponent)

Aggregations

AbstractSingleFilterCondition (io.jmix.ui.entity.AbstractSingleFilterCondition)1 FilterCondition (io.jmix.ui.entity.FilterCondition)1 FilterValueComponent (io.jmix.ui.entity.FilterValueComponent)1 HeaderFilterCondition (io.jmix.ui.entity.HeaderFilterCondition)1 JpqlFilterCondition (io.jmix.ui.entity.JpqlFilterCondition)1