Package io.jmix.ui.component.jpqlfilter
Class JpqlFilterConverter
java.lang.Object
io.jmix.ui.component.filter.converter.AbstractFilterComponentConverter<JpqlFilter,JpqlFilterCondition>
io.jmix.ui.component.jpqlfilter.JpqlFilterConverter
- All Implemented Interfaces:
FilterConverter<JpqlFilter,
JpqlFilterCondition>
@Component("ui_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.ui.component.filter.converter.AbstractFilterComponentConverter
filter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
convertDefaultValueToComponent
(JpqlFilter component, JpqlFilterCondition model) protected String
convertDefaultValueToModel
(JpqlFilter component) JpqlFilter<?>
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 HasValue
convertValueComponentToComponent
(JpqlFilter component, JpqlFilterCondition model) protected FilterValueComponent
convertValueComponentToModel
(JpqlFilter component) protected JpqlFilter
protected JpqlFilterCondition
protected HasValue
generateValueComponent
(JpqlFilter component, JpqlFilterCondition model) protected String
getLocalizedModelCaption
(JpqlFilter component)
-
Field Details
-
uiComponents
-
metadata
-
classManager
-
jpqlFilterSupport
-
singleFilterSupport
-
-
Constructor Details
-
JpqlFilterConverter
-
-
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<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>
-
getLocalizedModelCaption
- Specified by:
getLocalizedModelCaption
in classAbstractFilterComponentConverter<JpqlFilter,
JpqlFilterCondition>
-
generateValueComponent
-
convertValueComponentToComponent
protected HasValue convertValueComponentToComponent(JpqlFilter component, JpqlFilterCondition model) -
convertDefaultValueToComponent
@Nullable protected Object convertDefaultValueToComponent(JpqlFilter component, JpqlFilterCondition model) -
convertValueComponentToModel
-
convertDefaultValueToModel
-