Class PropertyFilterConverter
java.lang.Object
io.jmix.flowui.component.genericfilter.converter.AbstractFilterComponentConverter<PropertyFilter,PropertyFilterCondition>
io.jmix.flowui.component.propertyfilter.PropertyFilterConverter
- All Implemented Interfaces:
FilterConverter<PropertyFilter,
PropertyFilterCondition>
@SpringComponent("flowui_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.flowui.component.genericfilter.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 com.vaadin.flow.component.HasValueAndElement<?,
?> protected FilterValueComponent
convertValueComponentToModel
(PropertyFilter component) protected PropertyFilter
protected PropertyFilterCondition
protected com.vaadin.flow.component.HasValueAndElement<?,
?> createValueComponent
(String componentName) protected com.vaadin.flow.component.HasValueAndElement<?,
?> protected String
getLocalizedModelLabel
(PropertyFilter component) void
setMetadata
(Metadata metadata) void
setMetadataTools
(MetadataTools metadataTools) void
setPropertyFilterSupport
(PropertyFilterSupport propertyFilterSupport) void
setSingleFilterSupport
(SingleFilterSupport singleFilterSupport) void
setUiComponents
(UiComponents uiComponents)
-
Field Details
-
propertyFilterSupport
-
singleFilterSupport
-
uiComponents
-
metadata
-
metadataTools
-
-
Constructor Details
-
PropertyFilterConverter
-
-
Method Details
-
setPropertyFilterSupport
-
setSingleFilterSupport
-
setUiComponents
-
setMetadata
-
setMetadataTools
-
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>
-
getLocalizedModelLabel
- Specified by:
getLocalizedModelLabel
in classAbstractFilterComponentConverter<PropertyFilter,
PropertyFilterCondition>
-
generateValueComponent
protected com.vaadin.flow.component.HasValueAndElement<?,?> generateValueComponent(PropertyFilterCondition model) -
convertValueComponentToComponent
protected com.vaadin.flow.component.HasValueAndElement<?,?> convertValueComponentToComponent(PropertyFilterCondition model) -
createValueComponent
protected com.vaadin.flow.component.HasValueAndElement<?,?> createValueComponent(String componentName) -
convertDefaultValueToComponent
-
convertValueComponentToModel
-
convertDefaultValueToModel
-