Search in sources :

Example 1 with PropertyFilter

use of io.jmix.ui.component.PropertyFilter in project jmix by jmix-framework.

the class PropertyFilterConverter method convertToComponent.

@SuppressWarnings("unchecked")
@Override
public PropertyFilter<?> convertToComponent(PropertyFilterCondition model) {
    PropertyFilter propertyFilter = super.convertToComponent(model);
    propertyFilter.setCaption(model.getCaption());
    propertyFilter.setCaptionPosition(model.getCaptionPosition());
    propertyFilter.setRequired(model.getRequired());
    propertyFilter.setProperty(model.getProperty());
    propertyFilter.setOperation(model.getOperation());
    propertyFilter.setOperationEditable(model.getOperationEditable());
    propertyFilter.setOperationCaptionVisible(model.getOperationCaptionVisible());
    propertyFilter.setParameterName(model.getParameterName());
    HasValue valueComponent = convertValueComponentToComponent(model);
    propertyFilter.setValueComponent(valueComponent);
    Object defaultValue = convertDefaultValueToComponent(model);
    propertyFilter.setValue(defaultValue);
    return propertyFilter;
}
Also used : PropertyFilter(io.jmix.ui.component.PropertyFilter) HasValue(io.jmix.ui.component.HasValue)

Aggregations

HasValue (io.jmix.ui.component.HasValue)1 PropertyFilter (io.jmix.ui.component.PropertyFilter)1