Class AbstractGroupGridSettingsBinder<V extends JmixGroupGrid<?>,S extends DataGridSettings>
java.lang.Object
io.jmix.groupgridflowui.facet.settings.component.binder.AbstractGroupGridSettingsBinder<V,S>
- Type Parameters:
V- the type of the grid component extendingGridS- the type of the grid settings extendingDataGridSettings
- All Implemented Interfaces:
ComponentSettingsBinder<V,,S> DataLoadingSettingsBinder<V,S>
- Direct Known Subclasses:
GroupDataGridSettingsBinder
public abstract class AbstractGroupGridSettingsBinder<V extends JmixGroupGrid<?>,S extends DataGridSettings>
extends Object
implements DataLoadingSettingsBinder<V,S>
Abstract implementation of the
DataLoadingSettingsBinder interface for handling settings binding and
persistence in a Grid.-
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 voidapplySorting(V component, S settings) protected abstract Sprotected intfindFirstLeftNeighborIndex(List<? extends Grid.Column<?>> componentColumns, List<Grid.Column<?>> newColumnsOrder, Grid.Column<?> notIncludedColumn) protected abstract List<? extends Grid.Column<?>>getAllColumns(V grid) protected List<? extends Grid.Column<?>>getApplicableColumns(V component) protected abstract GroupDataGridItems<?>getGridItems(V grid) protected List<? extends Grid.Column<?>>getOrderedColumns(V grid) getSettings(V component) protected booleanisCollectionPropertyContainer(DataGridItems<?> items) protected booleanisColumnSettingsChanged(List<? extends Grid.Column<?>> componentColumns, List<DataGridSettings.Column> settingsColumns) protected booleanisColumnSortOrderChanged(List<? extends 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 Grid.Column<?>> componentColumns, DataGridSettings settings) protected voidsetSortOrderToSettings(List<? extends 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
-
AbstractGroupGridSettingsBinder
public AbstractGroupGridSettingsBinder()
-
-
Method Details
-
applySettings
Description copied from interface:ComponentSettingsBinderApplies settings to the component.- Specified by:
applySettingsin interfaceComponentSettingsBinder<V extends JmixGroupGrid<?>,S extends DataGridSettings> - Parameters:
component- componentsettings- settings for the component
-
findFirstLeftNeighborIndex
protected int findFirstLeftNeighborIndex(List<? extends Grid.Column<?>> componentColumns, List<Grid.Column<?>> newColumnsOrder, Grid.Column<?> notIncludedColumn) -
applyDataLoadingSettings
Description copied from interface:DataLoadingSettingsBinderApplies data loading settings.- Specified by:
applyDataLoadingSettingsin interfaceDataLoadingSettingsBinder<V extends JmixGroupGrid<?>,S extends DataGridSettings> - Parameters:
component- component to applysettings- settings for the component
-
applySorting
-
getApplicableColumns
-
saveSettings
Description copied from interface:ComponentSettingsBinderInvoked when component properties or states should be saved to settings.- Specified by:
saveSettingsin interfaceComponentSettingsBinder<V extends JmixGroupGrid<?>,S extends DataGridSettings> - Parameters:
component- componentsettings- settings for the component- Returns:
trueif settings were modified
-
getSettings
- Specified by:
getSettingsin interfaceComponentSettingsBinder<V extends JmixGroupGrid<?>,S extends DataGridSettings> - Parameters:
component- component- Returns:
- current component settings. It retrieves current property values from component and creates new settings instance.
-
createSettings
-
isDataLoadingSettingsEnabled
-
isCollectionPropertyContainer
-
getGridItems
-
isColumnSortOrderChanged
protected boolean isColumnSortOrderChanged(@Nullable List<? extends GridSortOrder<?>> componentSortOrder, @Nullable List<DataGridSettings.SortOrder> settingsSortOrder) -
setSortOrderToSettings
protected void setSortOrderToSettings(List<? extends GridSortOrder<?>> sortOrder, DataGridSettings settings) -
isColumnSettingsChanged
protected boolean isColumnSettingsChanged(@Nullable List<? extends Grid.Column<?>> componentColumns, @Nullable List<DataGridSettings.Column> settingsColumns) -
setColumnsToSettings
protected void setColumnsToSettings(@Nullable List<? extends Grid.Column<?>> componentColumns, DataGridSettings settings) -
getOrderedColumns
-
getAllColumns
-