Package io.jmix.searchflowui.utils
Class FullTextFilterConverter
java.lang.Object
io.jmix.flowui.component.genericfilter.converter.AbstractFilterComponentConverter<FullTextFilter,FullTextFilterCondition>
io.jmix.searchflowui.utils.FullTextFilterConverter
- All Implemented Interfaces:
FilterConverter<FullTextFilter,
FullTextFilterCondition>
@Component("search_FullTextFilterConverter")
@Scope("prototype")
public class FullTextFilterConverter
extends AbstractFilterComponentConverter<FullTextFilter,FullTextFilterCondition>
-
Field Summary
Modifier and TypeFieldDescriptionprotected Metadata
protected SingleFilterSupport
protected UiComponents
Fields inherited from class io.jmix.flowui.component.genericfilter.converter.AbstractFilterComponentConverter
filter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns an instance of the UI filter component whose state was retrieved from the model.convertToModel
(FullTextFilter fullTextFilter) Returns an instance of model whose state was retrieved from the UI filter component.protected com.vaadin.flow.component.HasValueAndElement<?,
String> protected FilterValueComponent
convertValueComponentToModel
(FullTextFilter component) protected FullTextFilter
protected FullTextFilterCondition
protected com.vaadin.flow.component.HasValueAndElement<?,
String> createValueComponent
(String componentName) protected String
getLocalizedModelLabel
(FullTextFilter component) void
setMetadata
(Metadata metadata) void
setSingleFilterSupport
(SingleFilterSupport singleFilterSupport) void
setUiComponents
(UiComponents uiComponents)
-
Field Details
-
uiComponents
-
metadata
-
singleFilterSupport
-
-
Constructor Details
-
FullTextFilterConverter
-
-
Method Details
-
setUiComponents
-
setMetadata
-
setSingleFilterSupport
-
createComponent
- Specified by:
createComponent
in classAbstractFilterComponentConverter<FullTextFilter,
FullTextFilterCondition>
-
createModel
- Specified by:
createModel
in classAbstractFilterComponentConverter<FullTextFilter,
FullTextFilterCondition>
-
getLocalizedModelLabel
- Specified by:
getLocalizedModelLabel
in classAbstractFilterComponentConverter<FullTextFilter,
FullTextFilterCondition>
-
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<FullTextFilter,
FullTextFilterCondition> - Overrides:
convertToComponent
in classAbstractFilterComponentConverter<FullTextFilter,
FullTextFilterCondition> - 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<FullTextFilter,
FullTextFilterCondition> - Overrides:
convertToModel
in classAbstractFilterComponentConverter<FullTextFilter,
FullTextFilterCondition> - Parameters:
fullTextFilter
- a filter component instance- Returns:
- a model instance
-
convertValueComponentToComponent
protected com.vaadin.flow.component.HasValueAndElement<?,String> convertValueComponentToComponent(FullTextFilterCondition model) -
createValueComponent
-
convertValueComponentToModel
-