Class AbstractTableSettingsBinder
java.lang.Object
io.jmix.ui.settings.component.binder.AbstractTableSettingsBinder
- All Implemented Interfaces:
ComponentSettingsBinder<Table,,TableSettings> DataLoadingSettingsBinder<Table,TableSettings>
- Direct Known Subclasses:
GroupTableSettingsBinder,TableSettingsBinder,TreeTableSettingsBinder
public abstract class AbstractTableSettingsBinder
extends Object
implements DataLoadingSettingsBinder<Table,TableSettings>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyColumnSettings(TableSettings tableSettings, Table table) voidapplyDataLoadingSettings(Table table, SettingsWrapper wrapper) Applies data loading settings.voidapplySettings(Table table, SettingsWrapper wrapper) Applies settings to the componentprotected TableSettingsprotected intfindFirstLeftNeighborIndex(List<Object> componentColumns, List<Object> newColumnsOrder, Object notIncludedColumn) protected JmixEnhancedTablegetEnhancedTable(Table table) getSettings(Table table) Class<? extends ComponentSettings>protected List<TableSettings.ColumnSettings>getTableColumnSettings(Table table) protected com.vaadin.v7.ui.Tableprotected booleanisApplyDataLoadingSettings(Table table) protected booleanisCommonTableSettingsChanged(TableSettings tableSettings, Table table) protected booleanisPresentationsEnabled(Table table) protected booleanisSettingsSortPropertyChanged(String settingsSortProperty, Boolean settingsSortAscending, Table.SortInfo sortInfo) booleansaveSettings(Table table, SettingsWrapper wrapper)
-
Constructor Details
-
AbstractTableSettingsBinder
public AbstractTableSettingsBinder()
-
-
Method Details
-
getComponentClass
- Specified by:
getComponentClassin interfaceComponentSettingsBinder<Table,TableSettings> - Returns:
- component class, e.g.
TableImpl
-
getSettingsClass
- Specified by:
getSettingsClassin interfaceComponentSettingsBinder<Table,TableSettings> - Returns:
- component settings class, e.g.
TableSettings
-
applySettings
Description copied from interface:ComponentSettingsBinderApplies settings to the component- Specified by:
applySettingsin interfaceComponentSettingsBinder<Table,TableSettings> - Parameters:
table- componentwrapper- settings wrapper contains settings for the component
-
applyDataLoadingSettings
Description copied from interface:DataLoadingSettingsBinderApplies data loading settings.- Specified by:
applyDataLoadingSettingsin interfaceDataLoadingSettingsBinder<Table,TableSettings> - Parameters:
table- component to applywrapper- settings wrapper
-
saveSettings
- Specified by:
saveSettingsin interfaceComponentSettingsBinder<Table,TableSettings> - Parameters:
table- componentwrapper- settings wrapper contains settings for the component- Returns:
- true if settings were modified
-
getSettings
- Specified by:
getSettingsin interfaceComponentSettingsBinder<Table,TableSettings> - Parameters:
table- component- Returns:
- current component settings. It retrieves current property values from component and creates new settings instance.
-
createTableSettings
-
getTableColumnSettings
-
isCommonTableSettingsChanged
-
isSettingsSortPropertyChanged
protected boolean isSettingsSortPropertyChanged(@Nullable String settingsSortProperty, @Nullable Boolean settingsSortAscending, @Nullable Table.SortInfo sortInfo) -
applyColumnSettings
-
findFirstLeftNeighborIndex
-
isApplyDataLoadingSettings
-
isPresentationsEnabled
-
getEnhancedTable
-
getVTable
-