Class GenericFilterUrlQueryParametersBinder
java.lang.Object
io.jmix.flowui.facet.urlqueryparameters.AbstractUrlQueryParametersBinder
io.jmix.flowui.facet.urlqueryparameters.GenericFilterUrlQueryParametersBinder
- All Implemented Interfaces:
UrlQueryParametersFacet.Binder
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected org.springframework.context.ApplicationContext
protected String
protected String
static final String
static final String
protected GenericFilter
protected com.vaadin.flow.shared.Registration
protected FilterUrlQueryParametersSupport
protected MetadataTools
static final String
static final String
protected SingleFilterSupport
protected UiComponents
protected UrlParamSerializer
Fields inherited from class io.jmix.flowui.facet.urlqueryparameters.AbstractUrlQueryParametersBinder
id
-
Constructor Summary
ConstructorDescriptionGenericFilterUrlQueryParametersBinder
(GenericFilter filter, UrlParamSerializer urlParamSerializer, org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
bindDataLoaderListener
(GenericFilter filter) protected void
protected List<FilterComponent>
deserializeConditions
(List<String> conditionParams, DataLoader dataLoader) protected String
deserializeConfigurationId
(String configurationParam) protected com.vaadin.flow.component.HasValueAndElement<?,
?> generatePropertyFilterValueComponent
(PropertyFilter<?> propertyFilter) com.vaadin.flow.component.Component
protected MetadataTools
protected SingleFilterSupport
protected void
initComponent
(GenericFilter filter) protected boolean
isOperationMatched
(PropertyFilter<?> propertyFilter, PropertyFilter<?> anotherPropertyFilter) protected boolean
isPermitted
(DataLoader dataLoader, FilterComponent filterComponent) protected boolean
isPropertyMatched
(PropertyFilter<?> propertyFilter, PropertyFilter<?> anotherPropertyFilter) protected void
protected void
protected void
onPostLoad
(EventObject event) protected FilterComponent
parseCondition
(String conditionString, DataLoader dataLoader) protected PropertyFilter<?>
parsePropertyCondition
(String conditionString, DataLoader dataLoader) protected String
serializeConfigurationId
(Configuration configuration) protected String
serializePropertyCondition
(PropertyCondition condition) void
setConditionParam
(String conditionParam) void
setConfigurationParam
(String conditionParam) protected void
protected void
updateConfigurationConditions
(Configuration currentConfiguration, List<String> conditionParams) protected FilterComponent
updateFilterComponent
(FilterComponent configurationComponent, FilterComponent filterComponent) protected FilterComponent
updatePropertyCondition
(PropertyFilter configurationComponent, PropertyFilter filterComponent) protected void
void
updateState
(com.vaadin.flow.router.QueryParameters queryParameters) Informs query parameters binder that view query parameters has been changed.Methods inherited from class io.jmix.flowui.facet.urlqueryparameters.AbstractUrlQueryParametersBinder
addUrlQueryParametersChangeListener, fireQueryParametersChanged, getEventBus, getId, setId
-
Field Details
-
NAME
- See Also:
-
PROPERTY_CONDITION_PREFIX
- See Also:
-
DEFAULT_CONFIGURATION_PARAM
- See Also:
-
DEFAULT_CONDITION_PARAM
- See Also:
-
filter
-
configurationParam
-
conditionParam
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
urlParamSerializer
-
uiComponents
-
singleFilterSupport
-
metadataTools
-
filterUrlQueryParametersSupport
-
accessManager
-
filterComponentsChangeRegistration
protected com.vaadin.flow.shared.Registration filterComponentsChangeRegistration
-
-
Constructor Details
-
Method Details
-
autowireDependencies
protected void autowireDependencies() -
initComponent
-
bindDataLoaderListener
-
onPostLoad
-
onConfigurationChanged
-
onFilterComponentsChanged
protected void onFilterComponentsChanged(LogicalFilterComponent.FilterComponentsChangeEvent<?> event) -
updateQueryParameters
protected void updateQueryParameters() -
serializeQueryParameters
-
serializeConfigurationId
-
serializePropertyCondition
-
updateState
public void updateState(com.vaadin.flow.router.QueryParameters queryParameters) Description copied from interface:UrlQueryParametersFacet.Binder
Informs query parameters binder that view query parameters has been changed.- Parameters:
queryParameters
- a view query parameters
-
deserializeConfigurationId
-
deserializeConditions
protected List<FilterComponent> deserializeConditions(List<String> conditionParams, DataLoader dataLoader) -
isPermitted
-
updateConfigurationConditions
protected void updateConfigurationConditions(Configuration currentConfiguration, List<String> conditionParams) -
updateFilterComponent
@Nullable protected FilterComponent updateFilterComponent(FilterComponent configurationComponent, FilterComponent filterComponent) -
updatePropertyCondition
@Nullable protected FilterComponent updatePropertyCondition(PropertyFilter configurationComponent, PropertyFilter filterComponent) -
parseCondition
-
parsePropertyCondition
-
generatePropertyFilterValueComponent
protected com.vaadin.flow.component.HasValueAndElement<?,?> generatePropertyFilterValueComponent(PropertyFilter<?> propertyFilter) -
bindFilterComponentsChangeListener
-
unbindFilterComponentsChange
protected void unbindFilterComponentsChange() -
getConfigurationParam
-
getConditionParam
-
setConfigurationParam
-
setConditionParam
-
isPropertyMatched
protected boolean isPropertyMatched(PropertyFilter<?> propertyFilter, PropertyFilter<?> anotherPropertyFilter) -
isOperationMatched
protected boolean isOperationMatched(PropertyFilter<?> propertyFilter, PropertyFilter<?> anotherPropertyFilter) -
getMetadataTools
-
getSingleFilterSupport
-
getComponent
@Nullable public com.vaadin.flow.component.Component getComponent()- Specified by:
getComponent
in classAbstractUrlQueryParametersBinder
-