Package io.jmix.flowui.facet.settings
Interface ComponentSettingsManager
- All Known Subinterfaces:
ViewSettingsComponentManager
- All Known Implementing Classes:
ComponentSettingsManagerImpl
public interface ComponentSettingsManager
Saves and restores settings for components.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyDataLoadingSettings(Collection<com.vaadin.flow.component.Component> components, UiComponentSettings<?> settings) Applies data loading settings fromUiComponentSettingsto provided components.voidapplySettings(Collection<com.vaadin.flow.component.Component> components, UiComponentSettings<?> settings) Applies settings fromUiComponentSettingsto provided components.voidsaveSettings(Collection<com.vaadin.flow.component.Component> components, UiComponentSettings<?> settings) Persists settings if they are changed orUiComponentSettings.isModified()returnstrue.
-
Method Details
-
applySettings
void applySettings(Collection<com.vaadin.flow.component.Component> components, UiComponentSettings<?> settings) Applies settings fromUiComponentSettingsto 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 settingssettings-UiComponentSettings
-
applyDataLoadingSettings
void applyDataLoadingSettings(Collection<com.vaadin.flow.component.Component> components, UiComponentSettings<?> settings) Applies data loading settings fromUiComponentSettingsto 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 settingssettings-UiComponentSettings
-
saveSettings
void saveSettings(Collection<com.vaadin.flow.component.Component> components, UiComponentSettings<?> settings) Persists settings if they are changed orUiComponentSettings.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 settingssettings-UiComponentSettings
-