Package io.jmix.flowuidata.settings
Class ViewSettingsComponentManagerImpl
java.lang.Object
io.jmix.flowuidata.settings.ViewSettingsComponentManagerImpl
- All Implemented Interfaces:
ViewSettingsComponentManager
@Component("flowui_ViewSettingsComponentManagerImpl")
public class ViewSettingsComponentManagerImpl
extends Object
implements ViewSettingsComponentManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected ViewSettingsComponentRegistry
protected UserSettingsCache
-
Constructor Summary
ConstructorDescriptionViewSettingsComponentManagerImpl
(ViewSettingsComponentRegistry settingsRegistry, UserSettingsCache userSettingsCache) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDataLoadingSettings
(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) Applies data loading settings fromViewSettings
to provided components.void
applySettings
(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) Applies settings fromViewSettings
to provided components.void
saveSettings
(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) Persists settings if they are changed orViewSettings.isModified()
returnstrue
.
-
Field Details
-
settingsRegistry
-
userSettingsCache
-
-
Constructor Details
-
ViewSettingsComponentManagerImpl
public ViewSettingsComponentManagerImpl(ViewSettingsComponentRegistry settingsRegistry, UserSettingsCache userSettingsCache)
-
-
Method Details
-
applySettings
public void applySettings(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) Description copied from interface:ViewSettingsComponentManager
Applies settings fromViewSettings
to provided components.Note, component should have and id and
ComponentSettingsBinder
. Otherwise, it will be skipped while applying settings. SeeDataGridSettingsBinder
as an example.- Specified by:
applySettings
in interfaceViewSettingsComponentManager
- Parameters:
components
- components to apply settingsviewSettings
-View
settings
-
applyDataLoadingSettings
public void applyDataLoadingSettings(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) Description copied from interface:ViewSettingsComponentManager
Applies data loading settings fromViewSettings
to provided components.Note, component should have and id and
ComponentSettingsBinder
. Otherwise, it will be skipped while applying settings. SeeDataGridSettingsBinder
as an example.- Specified by:
applyDataLoadingSettings
in interfaceViewSettingsComponentManager
- Parameters:
components
- components to apply settingsviewSettings
-View
settings
-
saveSettings
public void saveSettings(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) Description copied from interface:ViewSettingsComponentManager
Persists settings if they are changed orViewSettings.isModified()
returnstrue
.Note, component should have and id and
ComponentSettingsBinder
. Otherwise, it will be skipped while saving settings. SeeDataGridSettingsBinder
as an example.- Specified by:
saveSettings
in interfaceViewSettingsComponentManager
- Parameters:
components
- components to save settingsviewSettings
- screen settings
-