Class GenericFilterUrlQueryParametersBinder

java.lang.Object
io.jmix.flowui.facet.urlqueryparameters.AbstractUrlQueryParametersBinder
io.jmix.flowui.facet.urlqueryparameters.GenericFilterUrlQueryParametersBinder
All Implemented Interfaces:
UrlQueryParametersFacet.Binder

public class GenericFilterUrlQueryParametersBinder extends AbstractUrlQueryParametersBinder
  • Field Details

    • NAME

      public static final String NAME
      See Also:
    • PROPERTY_CONDITION_PREFIX

      public static final String PROPERTY_CONDITION_PREFIX
      See Also:
    • DEFAULT_CONFIGURATION_PARAM

      public static final String DEFAULT_CONFIGURATION_PARAM
      See Also:
    • DEFAULT_CONDITION_PARAM

      public static final String DEFAULT_CONDITION_PARAM
      See Also:
    • filter

      protected GenericFilter filter
    • configurationParam

      protected String configurationParam
    • conditionParam

      protected String conditionParam
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • urlParamSerializer

      protected UrlParamSerializer urlParamSerializer
    • uiComponents

      protected UiComponents uiComponents
    • singleFilterSupport

      protected SingleFilterSupport singleFilterSupport
    • filterUrlQueryParametersSupport

      protected FilterUrlQueryParametersSupport filterUrlQueryParametersSupport
    • filterComponentsChangeRegistration

      protected com.vaadin.flow.shared.Registration filterComponentsChangeRegistration
  • Constructor Details

    • GenericFilterUrlQueryParametersBinder

      public GenericFilterUrlQueryParametersBinder(GenericFilter filter, UrlParamSerializer urlParamSerializer, org.springframework.context.ApplicationContext applicationContext)
  • Method Details

    • autowireDependencies

      protected void autowireDependencies()
    • initComponent

      protected void initComponent(GenericFilter filter)
    • bindDataLoaderListener

      protected void bindDataLoaderListener(GenericFilter filter)
    • onPostLoad

      protected void onPostLoad(EventObject event)
    • onConfigurationChanged

      protected void onConfigurationChanged(GenericFilter.ConfigurationChangeEvent event)
    • onFilterComponentsChanged

      protected void onFilterComponentsChanged(LogicalFilterComponent.FilterComponentsChangeEvent<?> event)
    • updateQueryParameters

      protected void updateQueryParameters()
    • serializeConfigurationId

      protected String serializeConfigurationId(Configuration configuration)
    • serializePropertyCondition

      protected String serializePropertyCondition(PropertyCondition condition)
    • 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

      protected String deserializeConfigurationId(String configurationParam)
    • deserializeConditions

      protected List<FilterComponent> deserializeConditions(List<String> conditionParams, DataLoader dataLoader)
    • 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

      protected FilterComponent parseCondition(String conditionString, DataLoader dataLoader)
    • parsePropertyCondition

      protected PropertyFilter<?> parsePropertyCondition(String conditionString, DataLoader dataLoader)
    • generatePropertyFilterValueComponent

      protected com.vaadin.flow.component.HasValueAndElement<?,?> generatePropertyFilterValueComponent(PropertyFilter<?> propertyFilter)
    • bindFilterComponentsChangeListener

      protected void bindFilterComponentsChangeListener(GenericFilter filter)
    • unbindFilterComponentsChange

      protected void unbindFilterComponentsChange()
    • getConfigurationParam

      public String getConfigurationParam()
    • getConditionParam

      public String getConditionParam()
    • setConfigurationParam

      public void setConfigurationParam(@Nullable String conditionParam)
    • setConditionParam

      public void setConditionParam(@Nullable String conditionParam)
    • isPropertyMatched

      protected boolean isPropertyMatched(PropertyFilter<?> propertyFilter, PropertyFilter<?> anotherPropertyFilter)
    • isOperationMatched

      protected boolean isOperationMatched(PropertyFilter<?> propertyFilter, PropertyFilter<?> anotherPropertyFilter)
    • getSingleFilterSupport

      protected SingleFilterSupport getSingleFilterSupport()