Package io.jmix.flowui.facet.settings
Interface ViewSettingsComponentManager
- All Known Implementing Classes:
ViewSettingsComponentManagerImpl
public interface ViewSettingsComponentManager
Saves and restores settings for components.
-
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.
-
Method Details
-
applySettings
void applySettings(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) Applies settings fromViewSettingsto provided components.Note, component should have and id and
ComponentSettingsBinder. Otherwise, it will be skipped while applying settings. SeeDataGridSettingsBinderas an example.- Parameters:
components- components to apply settingsviewSettings-Viewsettings
-
applyDataLoadingSettings
void applyDataLoadingSettings(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) Applies 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.- Parameters:
components- components to apply settingsviewSettings-Viewsettings
-
saveSettings
void saveSettings(Collection<com.vaadin.flow.component.Component> components, ViewSettings viewSettings) 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. SeeDataGridSettingsBinderas an example.- Parameters:
components- components to save settingsviewSettings- screen settings
-