Package io.jmix.flowui.facet.settings
Class SettingsFacetUrlQueryParametersHelper
java.lang.Object
io.jmix.flowui.facet.settings.SettingsFacetUrlQueryParametersHelper
@Component("flowui_SettingsFacetUrlQueryParametersHelper")
public class SettingsFacetUrlQueryParametersHelper
extends Object
Provides methods for collaboration between
SettingsFacet
and UrlQueryParametersFacet
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsParametersForBinder
(com.vaadin.flow.router.QueryParameters queryParameters, UrlQueryParametersFacet.Binder binder) protected boolean
containsParametersForPagination
(Map<String, List<String>> parameters, PaginationUrlQueryParametersBinder paginationBinder) Checks onlyPaginationUrlQueryParametersBinder.getMaxResultsParam()
sincePaginationComponent
supports 'maxResult' in settings.Optional<com.vaadin.flow.component.Component>
-
Constructor Details
-
SettingsFacetUrlQueryParametersHelper
public SettingsFacetUrlQueryParametersHelper()
-
-
Method Details
-
containsParametersForBinder
public boolean containsParametersForBinder(com.vaadin.flow.router.QueryParameters queryParameters, UrlQueryParametersFacet.Binder binder) - Parameters:
queryParameters
- URL query parametersbinder
- binder- Returns:
true
if URL query parameters contain specific parameters for theUrlQueryParametersFacet.Binder
-
getComponentFromBinder
public Optional<com.vaadin.flow.component.Component> getComponentFromBinder(UrlQueryParametersFacet.Binder binder) - Parameters:
binder
- URL query parameters binder- Returns:
- component that associated with the provided binder
-
containsParametersForPagination
protected boolean containsParametersForPagination(Map<String, List<String>> parameters, PaginationUrlQueryParametersBinder paginationBinder) Checks onlyPaginationUrlQueryParametersBinder.getMaxResultsParam()
sincePaginationComponent
supports 'maxResult' in settings.- Parameters:
parameters
- query parameters mappaginationBinder
- pagination URL query binder- Returns:
true
if parameters map contains 'maxResult' parameter
-