Class KanbanSettingsBinder
java.lang.Object
io.jmix.kanbanflowui.component.settings.binder.KanbanSettingsBinder
- All Implemented Interfaces:
ComponentSettingsBinder<Kanban<?>,
KanbanSettings>
@Order(1000)
@Component("kanban_KanbanSettingsBinder")
public class KanbanSettingsBinder
extends Object
implements ComponentSettingsBinder<Kanban<?>,KanbanSettings>
Kanban
component settings registration.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applySettings
(Kanban<?> component, KanbanSettings settings) Applies settings to the component.protected KanbanSettings.Column
convertToSettings
(KanbanColumn column) protected KanbanSettings
protected List<? extends KanbanColumn>
getColumns
(Kanban<?> component) Class<? extends com.vaadin.flow.component.Component>
getSettings
(Kanban<?> component) protected boolean
isColumnSettingsChanged
(List<? extends KanbanColumn> componentColumns, List<KanbanSettings.Column> settingsColumns) boolean
saveSettings
(Kanban<?> component, KanbanSettings settings) Invoked when component properties or states should be saved to settings.protected void
setColumnsToSettings
(List<? extends KanbanColumn> componentColumns, KanbanSettings settings)
-
Constructor Details
-
KanbanSettingsBinder
public KanbanSettingsBinder()
-
-
Method Details
-
getComponentClass
- Specified by:
getComponentClass
in interfaceComponentSettingsBinder<Kanban<?>,
KanbanSettings> - Returns:
- component class, e.g.
JmixDetails
-
getSettingsClass
- Specified by:
getSettingsClass
in interfaceComponentSettingsBinder<Kanban<?>,
KanbanSettings> - Returns:
- component settings class, e.g.
JmixDetailsSettings
-
applySettings
Description copied from interface:ComponentSettingsBinder
Applies settings to the component.- Specified by:
applySettings
in interfaceComponentSettingsBinder<Kanban<?>,
KanbanSettings> - Parameters:
component
- componentsettings
- settings for the component
-
saveSettings
Description copied from interface:ComponentSettingsBinder
Invoked when component properties or states should be saved to settings.- Specified by:
saveSettings
in interfaceComponentSettingsBinder<Kanban<?>,
KanbanSettings> - Parameters:
component
- componentsettings
- settings for the component- Returns:
true
if settings were modified
-
getSettings
- Specified by:
getSettings
in interfaceComponentSettingsBinder<Kanban<?>,
KanbanSettings> - Parameters:
component
- component- Returns:
- current component settings. It retrieves current property values from component and creates new settings instance.
-
isColumnSettingsChanged
protected boolean isColumnSettingsChanged(@Nullable List<? extends KanbanColumn> componentColumns, @Nullable List<KanbanSettings.Column> settingsColumns) -
setColumnsToSettings
protected void setColumnsToSettings(@Nullable List<? extends KanbanColumn> componentColumns, KanbanSettings settings) -
convertToSettings
-
getColumns
-
createSettings
-