Class AbstractPaginationSettingsBinder<C extends AbstractPagination,S extends AbstractPaginationSettings>
java.lang.Object
io.jmix.ui.settings.component.binder.AbstractPaginationSettingsBinder<C,S>
- All Implemented Interfaces:
ComponentSettingsBinder<C,
,S> DataLoadingSettingsBinder<C,
S>
- Direct Known Subclasses:
PaginationSettingsBinder
,SimplePaginationSettingsBinder
public abstract class AbstractPaginationSettingsBinder<C extends AbstractPagination,S extends AbstractPaginationSettings>
extends Object
implements DataLoadingSettingsBinder<C,S>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDataLoadingSettings
(C component, SettingsWrapper wrapper) Applies data loading settings.void
applySettings
(C component, SettingsWrapper wrapper) Applies settings to the componentprotected abstract S
getSettings
(C component) protected boolean
isSettingsChanged
(C component, S settings) boolean
saveSettings
(C component, SettingsWrapper wrapper) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.settings.component.binder.ComponentSettingsBinder
getComponentClass, getSettingsClass
-
Constructor Details
-
AbstractPaginationSettingsBinder
public AbstractPaginationSettingsBinder()
-
-
Method Details
-
applySettings
Description copied from interface:ComponentSettingsBinder
Applies settings to the component- Specified by:
applySettings
in interfaceComponentSettingsBinder<C extends AbstractPagination,
S extends AbstractPaginationSettings> - Parameters:
component
- componentwrapper
- settings wrapper contains settings for the component
-
applyDataLoadingSettings
Description copied from interface:DataLoadingSettingsBinder
Applies data loading settings.- Specified by:
applyDataLoadingSettings
in interfaceDataLoadingSettingsBinder<C extends AbstractPagination,
S extends AbstractPaginationSettings> - Parameters:
component
- component to applywrapper
- settings wrapper
-
getSettings
- Specified by:
getSettings
in interfaceComponentSettingsBinder<C extends AbstractPagination,
S extends AbstractPaginationSettings> - Parameters:
component
- component- Returns:
- current component settings. It retrieves current property values from component and creates new settings instance.
-
saveSettings
- Specified by:
saveSettings
in interfaceComponentSettingsBinder<C extends AbstractPagination,
S extends AbstractPaginationSettings> - Parameters:
component
- componentwrapper
- settings wrapper contains settings for the component- Returns:
- true if settings were modified
-
isSettingsChanged
-
createSettings
-