Class JpqlFilterConverter
java.lang.Object
io.jmix.flowui.component.genericfilter.converter.AbstractFilterComponentConverter<JpqlFilter,JpqlFilterCondition>
io.jmix.flowui.component.jpqlfilter.JpqlFilterConverter
- All Implemented Interfaces:
FilterConverter<JpqlFilter,
JpqlFilterCondition>
@SpringComponent("flowui_JpqlFilterConverter")
@Scope("prototype")
public class JpqlFilterConverter
extends AbstractFilterComponentConverter<JpqlFilter,JpqlFilterCondition>
-
Field Summary
Modifier and TypeFieldDescriptionprotected ClassManager
protected JpqlFilterSupport
protected Metadata
protected SingleFilterSupport
protected UiComponents
Fields inherited from class io.jmix.flowui.component.genericfilter.converter.AbstractFilterComponentConverter
filter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
convertDefaultValueToComponent
(JpqlFilter component, JpqlFilterCondition model) protected String
convertDefaultValueToModel
(JpqlFilter component) Returns an instance of the UI filter component whose state was retrieved from the model.convertToModel
(JpqlFilter jpqlFilter) Returns an instance of model whose state was retrieved from the UI filter component.protected com.vaadin.flow.component.HasValueAndElement<?,
?> convertValueComponentToComponent
(JpqlFilter component, JpqlFilterCondition model) protected FilterValueComponent
convertValueComponentToModel
(JpqlFilter component) protected JpqlFilter
protected JpqlFilterCondition
protected com.vaadin.flow.component.HasValueAndElement<?,
?> createValueComponent
(String componentName) protected com.vaadin.flow.component.HasValueAndElement<?,
?> generateValueComponent
(JpqlFilter component, JpqlFilterCondition model) protected String
getLocalizedModelLabel
(JpqlFilter component) void
setClassManager
(ClassManager classManager) void
setJpqlFilterSupport
(JpqlFilterSupport jpqlFilterSupport) void
setMetadata
(Metadata metadata) void
setSingleFilterSupport
(SingleFilterSupport singleFilterSupport) void
setUiComponents
(UiComponents uiComponents)
-
Field Details
-
uiComponents
-
metadata
-
classManager
-
jpqlFilterSupport
-
singleFilterSupport
-
-
Constructor Details
-
JpqlFilterConverter
-
-
Method Details
-
setUiComponents
-
setMetadata
-
setClassManager
-
setJpqlFilterSupport
-
setSingleFilterSupport
-
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<JpqlFilter,
JpqlFilterCondition> - Overrides:
convertToComponent
in classAbstractFilterComponentConverter<JpqlFilter,
JpqlFilterCondition> - 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<JpqlFilter,
JpqlFilterCondition> - Overrides:
convertToModel
in classAbstractFilterComponentConverter<JpqlFilter,
JpqlFilterCondition> - Parameters:
jpqlFilter
- a filter component instance- Returns:
- a model instance
-
createComponent
- Specified by:
createComponent
in classAbstractFilterComponentConverter<JpqlFilter,
JpqlFilterCondition>
-
createModel
- Specified by:
createModel
in classAbstractFilterComponentConverter<JpqlFilter,
JpqlFilterCondition>
-
getLocalizedModelLabel
- Specified by:
getLocalizedModelLabel
in classAbstractFilterComponentConverter<JpqlFilter,
JpqlFilterCondition>
-
generateValueComponent
protected com.vaadin.flow.component.HasValueAndElement<?,?> generateValueComponent(JpqlFilter component, JpqlFilterCondition model) -
convertValueComponentToComponent
protected com.vaadin.flow.component.HasValueAndElement<?,?> convertValueComponentToComponent(JpqlFilter component, JpqlFilterCondition model) -
createValueComponent
protected com.vaadin.flow.component.HasValueAndElement<?,?> createValueComponent(String componentName) -
convertDefaultValueToComponent
@Nullable protected Object convertDefaultValueToComponent(JpqlFilter component, JpqlFilterCondition model) -
convertValueComponentToModel
-
convertDefaultValueToModel
-