Class AbstractGridSettingsBinder<V extends com.vaadin.flow.component.grid.Grid<?>,S extends DataGridSettings>
java.lang.Object
io.jmix.flowui.facet.settings.component.binder.AbstractGridSettingsBinder<V,S>
- All Implemented Interfaces:
ComponentSettingsBinder<V,,S> DataLoadingSettingsBinder<V,S>
- Direct Known Subclasses:
DataGridSettingsBinder,TreeDataGridSettingsBinder
public abstract class AbstractGridSettingsBinder<V extends com.vaadin.flow.component.grid.Grid<?>,S extends DataGridSettings>
extends Object
implements DataLoadingSettingsBinder<V,S>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyDataLoadingSettings(V component, S settings) Applies data loading settings.voidapplySettings(V component, S settings) Applies settings to the component.protected abstract Sprotected abstract List<? extends com.vaadin.flow.component.grid.Grid.Column<?>>getAllColumns(V grid) protected List<? extends com.vaadin.flow.component.grid.Grid.Column<?>>getApplicableColumns(V component) protected abstract DataGridItems<?>getGridItems(V grid) protected List<? extends com.vaadin.flow.component.grid.Grid.Column<?>>getOrderedColumns(V grid) getSettings(V component) protected booleanisColumnSettingsChanged(List<? extends com.vaadin.flow.component.grid.Grid.Column<?>> componentColumns, List<DataGridSettings.Column> settingsColumns) protected booleanisColumnSortOrderChanged(List<? extends com.vaadin.flow.component.grid.GridSortOrder<?>> componentSortOrder, List<DataGridSettings.SortOrder> settingsSortOrder) protected booleanbooleansaveSettings(V component, S settings) Invoked when component properties or states should be saved to settings.protected voidsetColumnsToSettings(List<? extends com.vaadin.flow.component.grid.Grid.Column<?>> componentColumns, DataGridSettings settings) protected voidsetSortOrderToSettings(List<? extends com.vaadin.flow.component.grid.GridSortOrder<?>> sortOrder, DataGridSettings settings) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.facet.settings.component.binder.ComponentSettingsBinder
getComponentClass, getSettingsClass
-
Constructor Details
-
AbstractGridSettingsBinder
public AbstractGridSettingsBinder()
-
-
Method Details
-
applySettings
Description copied from interface:ComponentSettingsBinderApplies settings to the component.- Specified by:
applySettingsin interfaceComponentSettingsBinder<V extends com.vaadin.flow.component.grid.Grid<?>,S extends DataGridSettings> - Parameters:
component- componentsettings- settings for the component
-
applyDataLoadingSettings
Description copied from interface:DataLoadingSettingsBinderApplies data loading settings.- Specified by:
applyDataLoadingSettingsin interfaceDataLoadingSettingsBinder<V extends com.vaadin.flow.component.grid.Grid<?>,S extends DataGridSettings> - Parameters:
component- component to applysettings- settings for the component
-
getApplicableColumns
-
saveSettings
Description copied from interface:ComponentSettingsBinderInvoked when component properties or states should be saved to settings.- Specified by:
saveSettingsin interfaceComponentSettingsBinder<V extends com.vaadin.flow.component.grid.Grid<?>,S extends DataGridSettings> - Parameters:
component- componentsettings- settings for the component- Returns:
trueif settings were modified
-
getSettings
- Specified by:
getSettingsin interfaceComponentSettingsBinder<V extends com.vaadin.flow.component.grid.Grid<?>,S extends DataGridSettings> - Parameters:
component- component- Returns:
- current component settings. It retrieves current property values from component and creates new settings instance.
-
createSettings
-
isDataLoadingSettingsEnabled
-
getGridItems
-
isColumnSortOrderChanged
protected boolean isColumnSortOrderChanged(@Nullable List<? extends com.vaadin.flow.component.grid.GridSortOrder<?>> componentSortOrder, @Nullable List<DataGridSettings.SortOrder> settingsSortOrder) -
setSortOrderToSettings
protected void setSortOrderToSettings(List<? extends com.vaadin.flow.component.grid.GridSortOrder<?>> sortOrder, DataGridSettings settings) -
isColumnSettingsChanged
protected boolean isColumnSettingsChanged(@Nullable List<? extends com.vaadin.flow.component.grid.Grid.Column<?>> componentColumns, @Nullable List<DataGridSettings.Column> settingsColumns) -
setColumnsToSettings
protected void setColumnsToSettings(@Nullable List<? extends com.vaadin.flow.component.grid.Grid.Column<?>> componentColumns, DataGridSettings settings) -
getOrderedColumns
-
getAllColumns
-