public abstract class AbstractDataGridSettingsBinder extends java.lang.Object implements DataLoadingSettingsBinder<DataGrid,DataGridSettings>
Constructor and Description |
---|
AbstractDataGridSettingsBinder() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyColumnSettings(DataGrid dataGrid,
DataGridSettings settings,
java.util.Collection<DataGrid.Column> oldColumns) |
void |
applyDataLoadingSettings(DataGrid dataGrid,
SettingsWrapper wrapper)
Applies data loading settings.
|
void |
applySettings(DataGrid dataGrid,
SettingsWrapper wrapper)
Applies settings to the component
|
protected DataGridSettings |
createSettings() |
protected java.util.List<DataGridSettings.ColumnSettings> |
getColumnsSettings(DataGrid dataGrid) |
java.lang.Class<? extends Component> |
getComponentClass() |
protected com.vaadin.ui.Grid |
getGrid(DataGrid dataGrid) |
DataGridSettings |
getSettings(DataGrid dataGrid) |
java.lang.Class<? extends ComponentSettings> |
getSettingsClass() |
protected boolean |
isApplyDataLoadingSettings(DataGrid dataGrid) |
protected boolean |
isCommonDataGridSettingsChanged(DataGrid dataGrid,
DataGridSettings settings) |
protected boolean |
isSortPropertySettingsChanged(DataGrid dataGrid,
java.lang.String settingsSortColumnId,
DataGrid.SortDirection settingsSort) |
boolean |
saveSettings(DataGrid dataGrid,
SettingsWrapper wrapper) |
public java.lang.Class<? extends Component> getComponentClass()
getComponentClass
in interface ComponentSettingsBinder<DataGrid,DataGridSettings>
TableImpl
public java.lang.Class<? extends ComponentSettings> getSettingsClass()
getSettingsClass
in interface ComponentSettingsBinder<DataGrid,DataGridSettings>
TableSettings
public void applySettings(DataGrid dataGrid, SettingsWrapper wrapper)
ComponentSettingsBinder
applySettings
in interface ComponentSettingsBinder<DataGrid,DataGridSettings>
dataGrid
- componentwrapper
- settings wrapper contains settings for the componentpublic void applyDataLoadingSettings(DataGrid dataGrid, SettingsWrapper wrapper)
DataLoadingSettingsBinder
applyDataLoadingSettings
in interface DataLoadingSettingsBinder<DataGrid,DataGridSettings>
dataGrid
- component to applywrapper
- settings wrapperpublic boolean saveSettings(DataGrid dataGrid, SettingsWrapper wrapper)
saveSettings
in interface ComponentSettingsBinder<DataGrid,DataGridSettings>
dataGrid
- componentwrapper
- settings wrapper contains settings for the componentpublic DataGridSettings getSettings(DataGrid dataGrid)
getSettings
in interface ComponentSettingsBinder<DataGrid,DataGridSettings>
dataGrid
- componentprotected java.util.List<DataGridSettings.ColumnSettings> getColumnsSettings(DataGrid dataGrid)
protected boolean isApplyDataLoadingSettings(DataGrid dataGrid)
protected void applyColumnSettings(DataGrid dataGrid, DataGridSettings settings, java.util.Collection<DataGrid.Column> oldColumns)
protected boolean isCommonDataGridSettingsChanged(DataGrid dataGrid, DataGridSettings settings)
protected boolean isSortPropertySettingsChanged(DataGrid dataGrid, @Nullable java.lang.String settingsSortColumnId, @Nullable DataGrid.SortDirection settingsSort)
protected DataGridSettings createSettings()
protected com.vaadin.ui.Grid getGrid(DataGrid dataGrid)