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;
}
Aggregations