Class PropertyFilterConverter
java.lang.Object
io.jmix.ui.component.filter.converter.AbstractFilterComponentConverter<PropertyFilter,PropertyFilterCondition>
io.jmix.ui.component.propertyfilter.PropertyFilterConverter
- All Implemented Interfaces:
FilterConverter<PropertyFilter,
PropertyFilterCondition>
@Component("ui_PropertyFilterConverter")
@Scope("prototype")
public class PropertyFilterConverter
extends AbstractFilterComponentConverter<PropertyFilter,PropertyFilterCondition>
-
Field Summary
Modifier and TypeFieldDescriptionprotected Metadata
protected MetadataTools
protected PropertyFilterSupport
protected SingleFilterSupport
protected UiComponents
Fields inherited from class io.jmix.ui.component.filter.converter.AbstractFilterComponentConverter
filter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
protected String
convertDefaultValueToModel
(PropertyFilter component) Returns an instance of the UI filter component whose state was retrieved from the model.convertToModel
(PropertyFilter propertyFilter) Returns an instance of model whose state was retrieved from the UI filter component.protected HasValue
protected FilterValueComponent
convertValueComponentToModel
(PropertyFilter component) protected PropertyFilter
protected PropertyFilterCondition
protected HasValue
protected String
getLocalizedModelCaption
(PropertyFilter component)
-
Field Details
-
propertyFilterSupport
-
singleFilterSupport
-
uiComponents
-
metadata
-
metadataTools
-
-
Constructor Details
-
PropertyFilterConverter
-
-
Method Details
-
convertToComponent
Description copied from interface:FilterConverter
Returns an instance of the UI filter component whose state was retrieved from the model.- Specified by:
convertToComponent
in interfaceFilterConverter<PropertyFilter,
PropertyFilterCondition> - Overrides:
convertToComponent
in classAbstractFilterComponentConverter<PropertyFilter,
PropertyFilterCondition> - Parameters:
model
- a model instance- Returns:
- an instance of the UI filter component
-
convertToModel
Description copied from interface:FilterConverter
Returns an instance of model whose state was retrieved from the UI filter component.- Specified by:
convertToModel
in interfaceFilterConverter<PropertyFilter,
PropertyFilterCondition> - Overrides:
convertToModel
in classAbstractFilterComponentConverter<PropertyFilter,
PropertyFilterCondition> - Parameters:
propertyFilter
- a filter component instance- Returns:
- a model instance
-
createComponent
- Specified by:
createComponent
in classAbstractFilterComponentConverter<PropertyFilter,
PropertyFilterCondition>
-
createModel
- Specified by:
createModel
in classAbstractFilterComponentConverter<PropertyFilter,
PropertyFilterCondition>
-
getLocalizedModelCaption
- Specified by:
getLocalizedModelCaption
in classAbstractFilterComponentConverter<PropertyFilter,
PropertyFilterCondition>
-
generateValueComponent
-
convertValueComponentToComponent
-
convertDefaultValueToComponent
-
convertValueComponentToModel
-
convertDefaultValueToModel
-