Class JmixKanban<T>
java.lang.Object
com.vaadin.flow.component.Component
io.jmix.kanbanflowui.kit.component.JmixKanban<T>
- Type Parameters:
T- type of items contained
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,HasActions,HasKanbanColumns,Serializable
- Direct Known Subclasses:
Kanban
@Tag("smart-kanban")
@JsModule("./src/kanban/vendor/modules/smart.kanban.js")
@CssImport("./src/kanban/vendor/styles/smart.default.css") @CssImport("./src/kanban/styles/kanban-styles.css")
public class JmixKanban<T>
extends com.vaadin.flow.component.Component
implements HasKanbanColumns, HasActions, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasEnabled
Base component for implementing kanban board.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHierarchy mode for Kanban cards.static classThe internationalization properties forJmixKanban.static classPOJO class for storing mapping of item attributes to properties of Kanban items.static enumTask positioning mode for Kanban columns. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JmixKanbanActionsSupport<? extends JmixKanban<?>>protected static final Stringprotected static final Stringprotected Stringprotected Stringprotected List<KanbanColumn>protected JmixKanban.KanbanI18nprotected JmixKanbanItems<T>protected JmixKanban.PropertiesMappingprotected JmixKanbanSerializerprotected List<KanbanSwimlane>protected static final Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddColumn(KanbanColumn column) Adds a new column to the component.com.vaadin.flow.shared.RegistrationaddColumnClickListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnClickEvent> listener) Add a listener that is called when a column is clicked.com.vaadin.flow.shared.RegistrationaddColumnCollapseListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnCollapseEvent> listener) Add a listener that is called when a column is collapsed.com.vaadin.flow.shared.RegistrationaddColumnDoubleClickListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnDoubleClickEvent> listener) Add a listener that is called when a column is double-clicked.com.vaadin.flow.shared.RegistrationaddColumnExpandListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnExpandEvent> listener) Add a listener that is called when a column is collapsed.com.vaadin.flow.shared.RegistrationaddColumnHideListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnHideEvent> listener) Add a listener that is called when a column is hidden.com.vaadin.flow.shared.RegistrationaddColumnReorderListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnReorderEvent> listener) Add a listener that is called when a column is reordered.com.vaadin.flow.shared.RegistrationaddColumnShowListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnShowEvent> listener) Add a listener that is called when a column is showed.com.vaadin.flow.shared.RegistrationaddDragEndListener(com.vaadin.flow.component.ComponentEventListener<KanbanDragEndEvent<T>> listener) Add a listener that is called when a task card is dropped.com.vaadin.flow.shared.RegistrationaddDragStartListener(com.vaadin.flow.component.ComponentEventListener<KanbanDragStartEvent<T>> listener) Add a listener that is called when a task card is dragged.voidaddSwimlane(KanbanSwimlane swimlane) Adds a new swimlane to the Kanban.com.vaadin.flow.shared.RegistrationaddTaskClickListener(com.vaadin.flow.component.ComponentEventListener<KanbanTaskClickEvent<T>> listener) Add a listener that is called when a task card is clicked.com.vaadin.flow.shared.RegistrationaddTaskDoubleClickListener(com.vaadin.flow.component.ComponentEventListener<KanbanTaskDoubleClickEvent<T>> listener) Add a listener that is called when a task card is double-clicked.protected voidappendChildColumns(List<KanbanColumn> columns, KanbanColumn column) protected JmixKanbanActionsSupport<? extends JmixKanban<?>>protected JmixKanbanSerializervoidExpands all columns of a component.protected JmixKanbanActionsSupport<? extends JmixKanban<?>>getColumnByDataField(String dataField) intprotected ObjectgetEnumValue(T item, String propertyName, String newValue) getI18n()Gets the internationalization object previously set for this component.getItems()protected StringgetPropertySetupExpression(String propertyName, String propertyValue) getSwimlaneByDataField(String dataField) protected voidprotected voidprotected voidprotected voidbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanprotected booleanisPropertyModifiableBySecurity(String attributeName) booleanbooleanbooleanbooleanbooleanbooleanprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidonColumnStateChange(AbstractKanbanColumnEvent event, Consumer<Boolean> method, boolean value) protected voidonTaskUpdate(com.vaadin.flow.dom.DomEvent event) protected voidprotected voidvoidremoveAction(Action action) voidremoveColumn(KanbanColumn column) Removes aKanbanColumnfrom the component.voidremoveColumnByDataField(String dataField) Removes aKanbanColumnwith the givendataFieldfrom the component.voidremoveSwimlane(KanbanSwimlane swimlane) Removes aKanbanSwimlanefrom the Kanban.voidremoveSwimlaneByDataField(String dataField) Removes aKanbanSwimlanewith the passeddataFieldfrom the Kanban.voidreplaceColumn(String dataField, KanbanColumn newColumn) Finds aKanbanColumnwith the passeddataFieldand replaces it with the new one.protected voidrunBeforeClientResponse(com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.UI> command) voidsetApplyColumnColorToTasksEnabled(boolean applyColumnColorToTasksEnabled) Sets whether applying column color to tasks is enabled.voidsetAutoColumnHeightEnabled(boolean autoColumnHeightEnabled) Sets whether automatically updating of columns height depending on the tasks inside is enabled.voidsetCollapsible(boolean collapsible) Sets whether collapsing the card content is allowed.voidsetColumnActionsEnabled(boolean columnActionsEnabled) Sets whether to display a column actions icon.voidsetColumnColorEntireSurfaceEnabled(boolean columnColorEntireSurfaceEnabled) Sets whether to display background in theKanbanColumn.voidsetColumnFooterRendererFunction(String columnFooterRenderer) Sets callback function which can be used for customizing the column footer rendering.voidsetColumnFooterVisible(boolean columnFooterVisible) Sets whether to display a column footer which shows the summary of the column.voidsetColumnHeaderRendererFunction(String columnHeaderRenderer) Sets callback function which can be used for customizing the column header rendering.voidsetColumnHidingAllowed(boolean columnHidingAllowed) Sets whether column hiding is allowed.voidsetColumnReorderingAllowed(boolean columnReorderingAllowed) Sets whether column reordering is allowed.voidsetColumns(List<KanbanColumn> columns) Sets columns properties.voidsetColumnSummaryEnabled(boolean columnSummaryEnabled) Sets whether task count information is displayed in column headers.voidsetColumnsWidth(int columnsWidth) Sets the same width for all columns.voidsetDragAllowed(boolean dragAllowed) Sets whether dragging tasks is allowed.voidsetDropAllowed(boolean dropAllowed) Sets whether dropping tasks is allowed.voidsetDropPlaceholderAllowed(boolean dropPlaceholderAllowed) Sets whether dropping of tasks placeholder is allowed.voidsetHierarchyMode(JmixKanban.HierarchyMode hierarchyMode) Sets the way column hierarchy is represented.voidsetI18n(JmixKanban.KanbanI18n i18n) Sets the internationalization properties for Kanban component.voidsetPropertiesMapping(JmixKanban.PropertiesMapping propertiesMapping) Sets object for storing mapping of item attributes to properties of Kanban items.protected voidsetPropertyInternal(String propertyName, String propertyValue) voidsetSaveDelegate(Consumer<T> saveDelegate) Sets the function which will be used to save data that has been updated on the client-side of the component.voidsetSwimlanes(List<KanbanSwimlane> swimlanes) Sets a list of swimlanes for a Kanban.voidsetSwimlanesFrom(Integer swimlanesFrom) Sets the index of the column at which to start the swimlanes.voidsetSwimlanesTo(Integer swimlanesTo) Sets the index of the column at which to end the swimlanes.voidsetTaskColorEntireSurfaceEnabled(boolean taskColorEntireSurfaceEnabled) Sets whether the task card background color depends on the task's color property.voidsetTaskDueDateVisible(boolean taskDueDateVisible) Sets the visibility of the task due icon.voidsetTaskPosition(JmixKanban.TaskPosition taskPosition) Sets task positioning mode of the Kanban.voidsetTaskPriorityVisible(boolean taskPriorityVisible) Sets whether the task priority icon is visible.voidsetTaskProgressVisible(boolean taskProgressVisible) Sets whether the task progress bar is visible.voidsetTaskRendererFunction(String taskRenderer) Sets callback function which can be used for customizing the tasks rendering.voidsetTaskTagsVisible(boolean taskTagsVisible) Sets the visibility of the task tags.voidsetTaskUserAvatarVisible(boolean taskUserAvatarVisible) Sets the visibility of the task user avatar.voidShows all columns of a component.protected voidupdateItemValues(T item, elemental.json.JsonObject jsonObject) Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface io.jmix.flowui.kit.component.HasActions
removeAction, removeAllActionsMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
COLUMN_HEADER_RENDERER_NAME
- See Also:
-
COLUMN_FOOTER_RENDERER_NAME
- See Also:
-
TASK_RENDERER_NAME
- See Also:
-
jmixKanbanItems
-
propertiesMapping
-
serializer
-
actionsSupport
-
saveDelegate
-
columns
-
swimlanes
-
i18n
-
columnHeaderRenderer
-
taskRenderer
-
-
Constructor Details
-
JmixKanban
public JmixKanban()
-
-
Method Details
-
initComponent
protected void initComponent() -
initComponentProperties
protected void initComponentProperties() -
initTaskListeners
protected void initTaskListeners() -
initColumnListeners
protected void initColumnListeners() -
isColumnReorderingAllowed
public boolean isColumnReorderingAllowed()- Returns:
- whether column reordering is allowed
-
setColumnReorderingAllowed
public void setColumnReorderingAllowed(boolean columnReorderingAllowed) Sets whether column reordering is allowed.falseby default.- Parameters:
columnReorderingAllowed- whether column reordering is allowed
-
isColumnHidingAllowed
public boolean isColumnHidingAllowed()- Returns:
- whether column hiding is allowed
-
setColumnHidingAllowed
public void setColumnHidingAllowed(boolean columnHidingAllowed) Sets whether column hiding is allowed.trueby default.- Parameters:
columnHidingAllowed- whether column hiding is allowed
-
isDragAllowed
public boolean isDragAllowed()- Returns:
- whether dragging tasks is allowed
-
setDragAllowed
public void setDragAllowed(boolean dragAllowed) Sets whether dragging tasks is allowed.trueby default.- Parameters:
dragAllowed- whether dragging tasks is allowed
-
isDropAllowed
public boolean isDropAllowed()- Returns:
- whether dropping tasks is allowed
-
setDropAllowed
public void setDropAllowed(boolean dropAllowed) Sets whether dropping tasks is allowed.trueby default.- Parameters:
dropAllowed- whether dropping tasks is allowed
-
isDropPlaceholderAllowed
public boolean isDropPlaceholderAllowed()- Returns:
- whether dropping of tasks placeholder is allowed
-
setDropPlaceholderAllowed
public void setDropPlaceholderAllowed(boolean dropPlaceholderAllowed) Sets whether dropping of tasks placeholder is allowed.falseby default. If set totrue, then if a task overlaps another task, an empty space appears for it.- Parameters:
dropPlaceholderAllowed- whether dripping of tasks placeholder is allowed
-
isApplyColumnColorToTasksEnabled
public boolean isApplyColumnColorToTasksEnabled()- Returns:
- whether applying column color to tasks is enabled
-
setApplyColumnColorToTasksEnabled
public void setApplyColumnColorToTasksEnabled(boolean applyColumnColorToTasksEnabled) Sets whether applying column color to tasks is enabled.falseby default. When set totrueand theKanbanColumnhave theirKanbanColumn.colorproperty set, the color is also applied to the tasks card.- Parameters:
applyColumnColorToTasksEnabled- whether applying column color to tasks is enabled- See Also:
-
isAutoColumnHeightEnabled
public boolean isAutoColumnHeightEnabled()- Returns:
- whether automatically updating of columns height is enabled
-
setAutoColumnHeightEnabled
public void setAutoColumnHeightEnabled(boolean autoColumnHeightEnabled) Sets whether automatically updating of columns height depending on the tasks inside is enabled.falseby default. The effect is observed when 'columnColorEntireSurfaceEnabled' property istrue.- Parameters:
autoColumnHeightEnabled- whether automatically updating of column height depending on the tasks inside is enabled- See Also:
-
isCollapsible
public boolean isCollapsible()- Returns:
- whether collapsing the card content is allowed
-
setCollapsible
public void setCollapsible(boolean collapsible) Sets whether collapsing the card content is allowed.falseby default.- Parameters:
collapsible- whether collapsing the card content is allowed
-
getColumnsWidth
public int getColumnsWidth()- Returns:
- columns width in pixels or
0if value doesn't set
-
setColumnsWidth
public void setColumnsWidth(int columnsWidth) Sets the same width for all columns.0by default.- Parameters:
columnsWidth- column width to set in pixels- See Also:
-
isColumnColorEntireSurfaceEnabled
public boolean isColumnColorEntireSurfaceEnabled()- Returns:
- whether to display background in the
KanbanColumn.
-
setColumnColorEntireSurfaceEnabled
public void setColumnColorEntireSurfaceEnabled(boolean columnColorEntireSurfaceEnabled) Sets whether to display background in theKanbanColumn.falseby default.- Parameters:
columnColorEntireSurfaceEnabled- whether to display background in theKanbanColumn
-
isColumnActionsEnabled
public boolean isColumnActionsEnabled()- Returns:
- whether to display a column actions icon
-
setColumnActionsEnabled
public void setColumnActionsEnabled(boolean columnActionsEnabled) Sets whether to display a column actions icon.falseby default.- Parameters:
columnActionsEnabled- whether to display a column actions icon
-
isColumnSummaryEnabled
public boolean isColumnSummaryEnabled()- Returns:
- whether task count information is displayed in column headers
-
setColumnSummaryEnabled
public void setColumnSummaryEnabled(boolean columnSummaryEnabled) Sets whether task count information is displayed in column headers.falseby default.- Parameters:
columnSummaryEnabled- whether task count information is displayed in column headers
-
getHierarchyMode
- Returns:
- the way column hierarchy is represented
-
setHierarchyMode
Sets the way column hierarchy is represented.JmixKanban.HierarchyMode.COLUMNSby default.- Parameters:
hierarchyMode- mode to set
-
getSwimlanesFrom
- Returns:
- index of the column at which to start the swimlanes
-
setSwimlanesFrom
Sets the index of the column at which to start the swimlanes.0by default, all swimlanes start from the first column.- Parameters:
swimlanesFrom- the index of the column at which to start the swimlanes
-
getSwimlanesTo
- Returns:
- index of the column at which to end the swimlanes
-
setSwimlanesTo
Sets the index of the column at which to end the swimlanes. Equals the number columns by default, all swimlanes end at the last column.- Parameters:
swimlanesTo- the index of the column at which to end the swimlanes
-
isTaskDueDateVisible
public boolean isTaskDueDateVisible()- Returns:
- whether the task due icon is visible
-
setTaskDueDateVisible
public void setTaskDueDateVisible(boolean taskDueDateVisible) Sets the visibility of the task due icon.falseby default.- Parameters:
taskDueDateVisible- the visibility of the task due icon
-
isTaskUserAvatarVisible
public boolean isTaskUserAvatarVisible()- Returns:
- whether the task user avatar is visible
-
setTaskUserAvatarVisible
public void setTaskUserAvatarVisible(boolean taskUserAvatarVisible) Sets the visibility of the task user avatar.falseby default.- Parameters:
taskUserAvatarVisible- the visibility of the task user avatar
-
getTaskPosition
- Returns:
- task positioning mode of the Kanban
-
setTaskPosition
Sets task positioning mode of the Kanban.JmixKanban.TaskPosition.ALLby default.- Parameters:
taskPosition- task positioning mode of the Kanban
-
isTaskPriorityVisible
public boolean isTaskPriorityVisible()- Returns:
- whether the task priority icon is visible
-
setTaskPriorityVisible
public void setTaskPriorityVisible(boolean taskPriorityVisible) Sets whether the task priority icon is visible.trueby default.- Parameters:
taskPriorityVisible- whether the task priority icon is visible
-
isTaskProgressVisible
public boolean isTaskProgressVisible()- Returns:
- whether the task progress bar is visible
-
setTaskProgressVisible
public void setTaskProgressVisible(boolean taskProgressVisible) Sets whether the task progress bar is visible.falseby default.- Parameters:
taskProgressVisible- whether the task progress bar is visible
-
isTaskColorEntireSurfaceEnabled
public boolean isTaskColorEntireSurfaceEnabled()- Returns:
- whether the task card background color depends on the task's color property
-
setTaskColorEntireSurfaceEnabled
public void setTaskColorEntireSurfaceEnabled(boolean taskColorEntireSurfaceEnabled) Sets whether the task card background color depends on the task's color property.falseby default. By default, the color is renderer within the task's left border.- Parameters:
taskColorEntireSurfaceEnabled- whether the task card background color depends on the task's color property
-
isTaskTagsVisible
public boolean isTaskTagsVisible()- Returns:
- whether the task tags is visible
-
setTaskTagsVisible
public void setTaskTagsVisible(boolean taskTagsVisible) Sets the visibility of the task tags.trueby default.- Parameters:
taskTagsVisible- the visibility of the task tags
-
getColumnHeaderRendererFunction
- Returns:
- callback function which can be used for customizing the column header rendering
-
setColumnHeaderRendererFunction
Sets callback function which can be used for customizing the column header rendering. The Kanban calls it with 3 arguments - column header HTML element, column data and column data field.Example:
(header, data, dataField) => { let color = ''; switch (data.label) { case 'In Progress': { color = '#0B88DA'; break; } case 'Testing': { color = '#30C1E3'; break; } case 'Done': { color = '#34C8BA'; break; } } header.style.background = color; header.style.color = '#fff'; }- Parameters:
columnHeaderRenderer- renderer to set
-
getTaskRendererFunction
- Returns:
- callback function which can be used for customizing the tasks rendering
-
setTaskRendererFunction
Sets callback function which can be used for customizing the tasks rendering. The Kanban calls it with 2 arguments - task HTML element and task data.Example:
(task, data) => { task.style.color = data.priority === 'Critical' ? '#0B88DA' : '#3634C8'; }- Parameters:
taskRenderer- renderer to set
-
getI18n
Gets the internationalization object previously set for this component.Note: updating the object content that is gotten from this method will not update the lang on the component if not set back using
setI18n(KanbanI18n)- Returns:
- the i18n object, or
null, if the i18n properties weren't set
-
setI18n
Sets the internationalization properties for Kanban component.- Parameters:
i18n- the internationalized properties, notnull
-
getSwimlanes
- Returns:
- an unmodifiable list of
KanbanSwimlane
-
getSwimlaneByDataField
- Parameters:
dataField- thedataFieldattribute of the swimlane to get- Returns:
- the swimlane corresponding to the given swimlane
dataField, ornullif no swimlane has suchdataField - See Also:
-
removeSwimlane
Removes aKanbanSwimlanefrom the Kanban. Updates the client-side of the Kanban.- Parameters:
swimlane- the swimlane to be removed, notnull- Throws:
IllegalArgumentException- if the passed column isnull
-
removeSwimlaneByDataField
Removes aKanbanSwimlanewith the passeddataFieldfrom the Kanban.- Parameters:
dataField- thedataFieldattribute of the swimlane
-
addSwimlane
Adds a new swimlane to the Kanban.- Parameters:
swimlane- swimlane to add, notnull- Throws:
IllegalArgumentException- if the passed swimlane isnull
-
setSwimlanes
Sets a list of swimlanes for a Kanban.- Parameters:
swimlanes- list of swimlanes to set- Throws:
IllegalArgumentException- if the passed list isnull
-
expandAllColumns
public void expandAllColumns()Expands all columns of a component. -
showAllColumns
public void showAllColumns()Shows all columns of a component. -
getColumns
- Specified by:
getColumnsin interfaceHasKanbanColumns- Returns:
- an unmodifiable list of all
KanbanColumn, including transitive columns
-
getOwnColumns
- Specified by:
getOwnColumnsin interfaceHasKanbanColumns- Returns:
- an unmodifiable list of
KanbanColumnthat are direct elements of this component
-
getColumnByDataField
- Specified by:
getColumnByDataFieldin interfaceHasKanbanColumns- Parameters:
dataField- thedataFieldattribute of the column to get- Returns:
- the column corresponding to the given column
dataField, ornullif no column has suchdataField - See Also:
-
removeColumn
Description copied from interface:HasKanbanColumnsRemoves aKanbanColumnfrom the component. Updates the client-side of the component.- Specified by:
removeColumnin interfaceHasKanbanColumns- Parameters:
column- the column to be removed, notnull
-
removeColumnByDataField
Description copied from interface:HasKanbanColumnsRemoves aKanbanColumnwith the givendataFieldfrom the component.- Specified by:
removeColumnByDataFieldin interfaceHasKanbanColumns- Parameters:
dataField- thedataFieldattribute of the column
-
replaceColumn
Description copied from interface:HasKanbanColumnsFinds aKanbanColumnwith the passeddataFieldand replaces it with the new one.- Specified by:
replaceColumnin interfaceHasKanbanColumns- Parameters:
dataField-dataFieldattribute of the column being replacednewColumn- a column for replacement
-
addColumn
Description copied from interface:HasKanbanColumnsAdds a new column to the component.- Specified by:
addColumnin interfaceHasKanbanColumns- Parameters:
column- column to add, notnull
-
setColumns
Sets columns properties. Each column's properties are represented byKanbanColumnobject.- Specified by:
setColumnsin interfaceHasKanbanColumns- Parameters:
columns- columns properties to set
-
getItems
-
getPropertiesMapping
- Returns:
- object for storing mapping of item attributes to properties of Kanban items
-
setPropertiesMapping
Sets object for storing mapping of item attributes to properties of Kanban items.- Parameters:
propertiesMapping- object for storing mapping
-
addAction
- Specified by:
addActionin interfaceHasActions
-
addAction
- Specified by:
addActionin interfaceHasActions
-
removeAction
- Specified by:
removeActionin interfaceHasActions
-
getActions
- Specified by:
getActionsin interfaceHasActions
-
getAction
- Specified by:
getActionin interfaceHasActions
-
addColumnReorderListener
public com.vaadin.flow.shared.Registration addColumnReorderListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnReorderEvent> listener) Add a listener that is called when a column is reordered.- Parameters:
listener- a listener to add- Returns:
- a handle that can be used for removing the listener
-
addColumnClickListener
public com.vaadin.flow.shared.Registration addColumnClickListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnClickEvent> listener) Add a listener that is called when a column is clicked.- Parameters:
listener- a listener to add- Returns:
- a handle that can be used for removing the listener
-
addColumnDoubleClickListener
public com.vaadin.flow.shared.Registration addColumnDoubleClickListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnDoubleClickEvent> listener) Add a listener that is called when a column is double-clicked.- Parameters:
listener- a listener to add- Returns:
- a handle that can be used for removing the listener
-
addColumnShowListener
public com.vaadin.flow.shared.Registration addColumnShowListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnShowEvent> listener) Add a listener that is called when a column is showed.- Parameters:
listener- a listener to add- Returns:
- a handle that can be used for removing the listener
-
addColumnHideListener
public com.vaadin.flow.shared.Registration addColumnHideListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnHideEvent> listener) Add a listener that is called when a column is hidden.- Parameters:
listener- a listener to add- Returns:
- a handle that can be used for removing the listener
-
addColumnCollapseListener
public com.vaadin.flow.shared.Registration addColumnCollapseListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnCollapseEvent> listener) Add a listener that is called when a column is collapsed.- Parameters:
listener- a listener to add- Returns:
- a handle that can be used for removing the listener
-
addColumnExpandListener
public com.vaadin.flow.shared.Registration addColumnExpandListener(com.vaadin.flow.component.ComponentEventListener<KanbanColumnExpandEvent> listener) Add a listener that is called when a column is collapsed.- Parameters:
listener- a listener to add- Returns:
- a handle that can be used for removing the listener
-
addDragEndListener
public com.vaadin.flow.shared.Registration addDragEndListener(com.vaadin.flow.component.ComponentEventListener<KanbanDragEndEvent<T>> listener) Add a listener that is called when a task card is dropped.- Parameters:
listener- a listener to add- Returns:
- a handle that can be used for removing the listener
-
addDragStartListener
public com.vaadin.flow.shared.Registration addDragStartListener(com.vaadin.flow.component.ComponentEventListener<KanbanDragStartEvent<T>> listener) Add a listener that is called when a task card is dragged.- Parameters:
listener- a listener to add- Returns:
- a handle that can be used for removing the listener
-
addTaskClickListener
public com.vaadin.flow.shared.Registration addTaskClickListener(com.vaadin.flow.component.ComponentEventListener<KanbanTaskClickEvent<T>> listener) Add a listener that is called when a task card is clicked.- Parameters:
listener- a listener to add- Returns:
- a handle that can be used for removing the listener
-
addTaskDoubleClickListener
public com.vaadin.flow.shared.Registration addTaskDoubleClickListener(com.vaadin.flow.component.ComponentEventListener<KanbanTaskDoubleClickEvent<T>> listener) Add a listener that is called when a task card is double-clicked.- Parameters:
listener- a listener to add- Returns:
- a handle that can be used for removing the listener
-
getSaveDelegate
- Returns:
- the function which will be used to save data that has been updated on the client-side of the component
-
setSaveDelegate
Sets the function which will be used to save data that has been updated on the client-side of the component.- Parameters:
saveDelegate- function to set
-
refreshColumns
protected void refreshColumns() -
refreshSwimlanes
protected void refreshSwimlanes() -
appendChildColumns
-
onTaskUpdate
protected void onTaskUpdate(com.vaadin.flow.dom.DomEvent event) -
updateItemValues
-
onColumnShow
-
onColumnHide
-
onColumnExpand
-
onColumnCollapse
-
onColumnReorder
-
onColumnStateChange
protected void onColumnStateChange(AbstractKanbanColumnEvent event, Consumer<Boolean> method, boolean value) -
getEnumValue
-
runBeforeClientResponse
protected void runBeforeClientResponse(com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.UI> command) -
isPropertyModifiableBySecurity
-
createSerializer
-
getActionsSupport
-
createActionsSupport
-
setPropertyInternal
-
getPropertySetupExpression
-