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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyColumnSettings
(TableSettings tableSettings, Table table) void
applyDataLoadingSettings
(Table table, SettingsWrapper wrapper) Applies data loading settings.void
applySettings
(Table table, SettingsWrapper wrapper) Applies settings to the componentprotected TableSettings
protected JmixEnhancedTable
getEnhancedTable
(Table table) getSettings
(Table table) Class<? extends ComponentSettings>
protected List<TableSettings.ColumnSettings>
getTableColumnSettings
(Table table) protected com.vaadin.v7.ui.Table
protected boolean
isApplyDataLoadingSettings
(Table table) protected boolean
isCommonTableSettingsChanged
(TableSettings tableSettings, Table table) protected boolean
isSettingsSortPropertyChanged
(String settingsSortProperty, Boolean settingsSortAscending, Table.SortInfo sortInfo) boolean
saveSettings
(Table table, SettingsWrapper wrapper)
-
Constructor Details
-
AbstractTableSettingsBinder
public AbstractTableSettingsBinder()
-
-
Method Details
-
getComponentClass
- Specified by:
getComponentClass
in interfaceComponentSettingsBinder<Table,
TableSettings> - Returns:
- component class, e.g.
TableImpl
-
getSettingsClass
- Specified by:
getSettingsClass
in interfaceComponentSettingsBinder<Table,
TableSettings> - Returns:
- component settings class, e.g.
TableSettings
-
applySettings
Description copied from interface:ComponentSettingsBinder
Applies settings to the component- Specified by:
applySettings
in interfaceComponentSettingsBinder<Table,
TableSettings> - Parameters:
table
- componentwrapper
- settings wrapper contains settings for the component
-
applyDataLoadingSettings
Description copied from interface:DataLoadingSettingsBinder
Applies data loading settings.- Specified by:
applyDataLoadingSettings
in interfaceDataLoadingSettingsBinder<Table,
TableSettings> - Parameters:
table
- component to applywrapper
- settings wrapper
-
saveSettings
- Specified by:
saveSettings
in interfaceComponentSettingsBinder<Table,
TableSettings> - Parameters:
table
- componentwrapper
- settings wrapper contains settings for the component- Returns:
- true if settings were modified
-
getSettings
- Specified by:
getSettings
in 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
-
isApplyDataLoadingSettings
-
getEnhancedTable
-
getVTable
-