Class SimplePaginationSettingsBinder
java.lang.Object
io.jmix.flowui.facet.settings.component.binder.SimplePaginationSettingsBinder
- All Implemented Interfaces:
ComponentSettingsBinder<SimplePagination,
,SimplePaginationSettings> DataLoadingSettingsBinder<SimplePagination,
SimplePaginationSettings>
@Component("flowui_SimplePaginationSettingsBinder")
public class SimplePaginationSettingsBinder
extends Object
implements DataLoadingSettingsBinder<SimplePagination,SimplePaginationSettings>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDataLoadingSettings
(SimplePagination component, SimplePaginationSettings settings) Applies data loading settings.void
applySettings
(SimplePagination component, SimplePaginationSettings settings) Applies settings to the component.protected SimplePaginationSettings
Class<? extends com.vaadin.flow.component.Component>
protected Integer
getItemsPerPageValue
(SimplePagination component) getSettings
(SimplePagination component) protected boolean
isItemsPerPageValueChanged
(SimplePagination component, SimplePaginationSettings settings) boolean
saveSettings
(SimplePagination component, SimplePaginationSettings settings) Invoked when component properties or states should be saved to settings.
-
Constructor Details
-
SimplePaginationSettingsBinder
public SimplePaginationSettingsBinder()
-
-
Method Details
-
getComponentClass
- Specified by:
getComponentClass
in interfaceComponentSettingsBinder<SimplePagination,
SimplePaginationSettings> - Returns:
- component class, e.g.
JmixDetails
-
getSettingsClass
- Specified by:
getSettingsClass
in interfaceComponentSettingsBinder<SimplePagination,
SimplePaginationSettings> - Returns:
- component settings class, e.g.
JmixDetailsSettings
-
applySettings
Description copied from interface:ComponentSettingsBinder
Applies settings to the component.- Specified by:
applySettings
in interfaceComponentSettingsBinder<SimplePagination,
SimplePaginationSettings> - Parameters:
component
- componentsettings
- settings for the component
-
applyDataLoadingSettings
Description copied from interface:DataLoadingSettingsBinder
Applies data loading settings.- Specified by:
applyDataLoadingSettings
in interfaceDataLoadingSettingsBinder<SimplePagination,
SimplePaginationSettings> - Parameters:
component
- component to applysettings
- settings for the component
-
saveSettings
Description copied from interface:ComponentSettingsBinder
Invoked when component properties or states should be saved to settings.- Specified by:
saveSettings
in interfaceComponentSettingsBinder<SimplePagination,
SimplePaginationSettings> - Parameters:
component
- componentsettings
- settings for the component- Returns:
true
if settings were modified
-
isItemsPerPageValueChanged
protected boolean isItemsPerPageValueChanged(SimplePagination component, SimplePaginationSettings settings) -
getSettings
- Specified by:
getSettings
in interfaceComponentSettingsBinder<SimplePagination,
SimplePaginationSettings> - Parameters:
component
- component- Returns:
- current component settings. It retrieves current property values from component and creates new settings instance.
-
createSettings
-
getItemsPerPageValue
-