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
FieldsModifier and TypeFieldDescriptionprotected ViewSettingsComponentRegistryprotected UserSettingsCache -
Constructor Summary
ConstructorsConstructorDescriptionViewSettingsComponentManagerImpl(ViewSettingsComponentRegistry settingsRegistry, UserSettingsCache userSettingsCache) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyDataLoadingSettings(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) Applies data loading settings fromViewSettingsto provided components.voidapplySettings(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) Applies settings fromViewSettingsto provided components.voidsaveSettings(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:ViewSettingsComponentManagerApplies settings fromViewSettingsto provided components.Note, component should have and id and
ComponentSettingsBinder. Otherwise, it will be skipped while applying settings. SeeDataGridSettingsBinderas an example.- Specified by:
applySettingsin interfaceViewSettingsComponentManager- Parameters:
components- components to apply settingsviewSettings-Viewsettings
-
applyDataLoadingSettings
public void applyDataLoadingSettings(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) Description copied from interface:ViewSettingsComponentManagerApplies data loading settings fromViewSettingsto provided components.Note, component should have and id and
ComponentSettingsBinder. Otherwise, it will be skipped while applying settings. SeeDataGridSettingsBinderas an example.- Specified by:
applyDataLoadingSettingsin interfaceViewSettingsComponentManager- Parameters:
components- components to apply settingsviewSettings-Viewsettings
-
saveSettings
public void saveSettings(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) Description copied from interface:ViewSettingsComponentManagerPersists settings if they are changed orViewSettings.isModified()returnstrue.Note, component should have and id and
ComponentSettingsBinder. Otherwise, it will be skipped while saving settings. SeeDataGridSettingsBinderas an example.- Specified by:
saveSettingsin interfaceViewSettingsComponentManager- Parameters:
components- components to save settingsviewSettings- screen settings
-