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
Modifier and TypeClassDescriptionstatic enum
Hierarchy mode for Kanban cards.static class
The internationalization properties forJmixKanban
.static class
POJO class for storing mapping of item attributes to properties of Kanban items.static enum
Task positioning mode for Kanban columns. -
Field Summary
Modifier and TypeFieldDescriptionprotected JmixKanbanActionsSupport<? extends JmixKanban<?>>
protected static final String
protected static final String
protected String
protected String
protected List<KanbanColumn>
protected JmixKanban.KanbanI18n
protected JmixKanbanItems<T>
protected JmixKanban.PropertiesMapping
protected JmixKanbanSerializer
protected List<KanbanSwimlane>
protected static final String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addColumn
(KanbanColumn column) Adds a new column to the component.com.vaadin.flow.shared.Registration
addColumnClickListener
(com.vaadin.flow.component.ComponentEventListener<KanbanColumnClickEvent> listener) Add a listener that is called when a column is clicked.com.vaadin.flow.shared.Registration
addColumnCollapseListener
(com.vaadin.flow.component.ComponentEventListener<KanbanColumnCollapseEvent> listener) Add a listener that is called when a column is collapsed.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.com.vaadin.flow.shared.Registration
addColumnExpandListener
(com.vaadin.flow.component.ComponentEventListener<KanbanColumnExpandEvent> listener) Add a listener that is called when a column is collapsed.com.vaadin.flow.shared.Registration
addColumnHideListener
(com.vaadin.flow.component.ComponentEventListener<KanbanColumnHideEvent> listener) Add a listener that is called when a column is hidden.com.vaadin.flow.shared.Registration
addColumnReorderListener
(com.vaadin.flow.component.ComponentEventListener<KanbanColumnReorderEvent> listener) Add a listener that is called when a column is reordered.com.vaadin.flow.shared.Registration
addColumnShowListener
(com.vaadin.flow.component.ComponentEventListener<KanbanColumnShowEvent> listener) Add a listener that is called when a column is showed.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.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.void
addSwimlane
(KanbanSwimlane swimlane) Adds a new swimlane to the Kanban.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.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.protected void
appendChildColumns
(List<KanbanColumn> columns, KanbanColumn column) protected JmixKanbanActionsSupport<? extends JmixKanban<?>>
protected JmixKanbanSerializer
void
Expands all columns of a component.protected JmixKanbanActionsSupport<? extends JmixKanban<?>>
getColumnByDataField
(String dataField) int
protected Object
getEnumValue
(T item, String propertyName, String newValue) getI18n()
Gets the internationalization object previously set for this component.getItems()
protected String
getPropertySetupExpression
(String propertyName, String propertyValue) getSwimlaneByDataField
(String dataField) protected void
protected void
protected void
protected void
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
protected boolean
isPropertyModifiableBySecurity
(String attributeName) boolean
boolean
boolean
boolean
boolean
boolean
protected void
protected void
protected void
protected void
protected void
protected void
onColumnStateChange
(AbstractKanbanColumnEvent event, Consumer<Boolean> method, boolean value) protected void
onTaskUpdate
(com.vaadin.flow.dom.DomEvent event) protected void
protected void
void
removeAction
(Action action) void
removeColumn
(KanbanColumn column) Removes aKanbanColumn
from the component.void
removeColumnByDataField
(String dataField) Removes aKanbanColumn
with the givendataField
from the component.void
removeSwimlane
(KanbanSwimlane swimlane) Removes aKanbanSwimlane
from the Kanban.void
removeSwimlaneByDataField
(String dataField) Removes aKanbanSwimlane
with the passeddataField
from the Kanban.void
replaceColumn
(String dataField, KanbanColumn newColumn) Finds aKanbanColumn
with the passeddataField
and replaces it with the new one.protected void
runBeforeClientResponse
(com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.UI> command) void
setApplyColumnColorToTasksEnabled
(boolean applyColumnColorToTasksEnabled) Sets whether applying column color to tasks is enabled.void
setAutoColumnHeightEnabled
(boolean autoColumnHeightEnabled) Sets whether automatically updating of columns height depending on the tasks inside is enabled.void
setCollapsible
(boolean collapsible) Sets whether collapsing the card content is allowed.void
setColumnActionsEnabled
(boolean columnActionsEnabled) Sets whether to display a column actions icon.void
setColumnColorEntireSurfaceEnabled
(boolean columnColorEntireSurfaceEnabled) Sets whether to display background in theKanbanColumn
.void
setColumnFooterRendererFunction
(String columnFooterRenderer) Sets callback function which can be used for customizing the column footer rendering.void
setColumnFooterVisible
(boolean columnFooterVisible) Sets whether to display a column footer which shows the summary of the column.void
setColumnHeaderRendererFunction
(String columnHeaderRenderer) Sets callback function which can be used for customizing the column header rendering.void
setColumnHidingAllowed
(boolean columnHidingAllowed) Sets whether column hiding is allowed.void
setColumnReorderingAllowed
(boolean columnReorderingAllowed) Sets whether column reordering is allowed.void
setColumns
(List<KanbanColumn> columns) Sets columns properties.void
setColumnSummaryEnabled
(boolean columnSummaryEnabled) Sets whether task count information is displayed in column headers.void
setColumnsWidth
(int columnsWidth) Sets the same width for all columns.void
setDragAllowed
(boolean dragAllowed) Sets whether dragging tasks is allowed.void
setDropAllowed
(boolean dropAllowed) Sets whether dropping tasks is allowed.void
setDropPlaceholderAllowed
(boolean dropPlaceholderAllowed) Sets whether dropping of tasks placeholder is allowed.void
setHierarchyMode
(JmixKanban.HierarchyMode hierarchyMode) Sets the way column hierarchy is represented.void
setI18n
(JmixKanban.KanbanI18n i18n) Sets the internationalization properties for Kanban component.void
setPropertiesMapping
(JmixKanban.PropertiesMapping propertiesMapping) Sets object for storing mapping of item attributes to properties of Kanban items.protected void
setPropertyInternal
(String propertyName, String propertyValue) void
setSaveDelegate
(Consumer<T> saveDelegate) Sets the function which will be used to save data that has been updated on the client-side of the component.void
setSwimlanes
(List<KanbanSwimlane> swimlanes) Sets a list of swimlanes for a Kanban.void
setSwimlanesFrom
(Integer swimlanesFrom) Sets the index of the column at which to start the swimlanes.void
setSwimlanesTo
(Integer swimlanesTo) Sets the index of the column at which to end the swimlanes.void
setTaskColorEntireSurfaceEnabled
(boolean taskColorEntireSurfaceEnabled) Sets whether the task card background color depends on the task's color property.void
setTaskDueDateVisible
(boolean taskDueDateVisible) Sets the visibility of the task due icon.void
setTaskPosition
(JmixKanban.TaskPosition taskPosition) Sets task positioning mode of the Kanban.void
setTaskPriorityVisible
(boolean taskPriorityVisible) Sets whether the task priority icon is visible.void
setTaskProgressVisible
(boolean taskProgressVisible) Sets whether the task progress bar is visible.void
setTaskRendererFunction
(String taskRenderer) Sets callback function which can be used for customizing the tasks rendering.void
setTaskTagsVisible
(boolean taskTagsVisible) Sets the visibility of the task tags.void
setTaskUserAvatarVisible
(boolean taskUserAvatarVisible) Sets the visibility of the task user avatar.void
Shows all columns of a component.protected void
updateItemValues
(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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface io.jmix.flowui.kit.component.HasActions
removeAction, removeAllActions
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
Methods 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, setWidthFull
Methods 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.false
by 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.true
by 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.true
by 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.true
by 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.false
by 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.false
by default. When set totrue
and theKanbanColumn
have theirKanbanColumn.color
property 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.false
by 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.false
by default.- Parameters:
collapsible
- whether collapsing the card content is allowed
-
getColumnsWidth
public int getColumnsWidth()- Returns:
- columns width in pixels or
0
if value doesn't set
-
setColumnsWidth
public void setColumnsWidth(int columnsWidth) Sets the same width for all columns.0
by 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
.false
by 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.false
by 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.false
by 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.COLUMNS
by 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.0
by 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.false
by 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.false
by 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.ALL
by 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.true
by 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.false
by 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.false
by 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.true
by 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
- thedataField
attribute of the swimlane to get- Returns:
- the swimlane corresponding to the given swimlane
dataField
, ornull
if no swimlane has suchdataField
- See Also:
-
removeSwimlane
Removes aKanbanSwimlane
from 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 aKanbanSwimlane
with the passeddataField
from the Kanban.- Parameters:
dataField
- thedataField
attribute 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:
getColumns
in interfaceHasKanbanColumns
- Returns:
- an unmodifiable list of all
KanbanColumn
, including transitive columns
-
getOwnColumns
- Specified by:
getOwnColumns
in interfaceHasKanbanColumns
- Returns:
- an unmodifiable list of
KanbanColumn
that are direct elements of this component
-
getColumnByDataField
- Specified by:
getColumnByDataField
in interfaceHasKanbanColumns
- Parameters:
dataField
- thedataField
attribute of the column to get- Returns:
- the column corresponding to the given column
dataField
, ornull
if no column has suchdataField
- See Also:
-
removeColumn
Description copied from interface:HasKanbanColumns
Removes aKanbanColumn
from the component. Updates the client-side of the component.- Specified by:
removeColumn
in interfaceHasKanbanColumns
- Parameters:
column
- the column to be removed, notnull
-
removeColumnByDataField
Description copied from interface:HasKanbanColumns
Removes aKanbanColumn
with the givendataField
from the component.- Specified by:
removeColumnByDataField
in interfaceHasKanbanColumns
- Parameters:
dataField
- thedataField
attribute of the column
-
replaceColumn
Description copied from interface:HasKanbanColumns
Finds aKanbanColumn
with the passeddataField
and replaces it with the new one.- Specified by:
replaceColumn
in interfaceHasKanbanColumns
- Parameters:
dataField
-dataField
attribute of the column being replacednewColumn
- a column for replacement
-
addColumn
Description copied from interface:HasKanbanColumns
Adds a new column to the component.- Specified by:
addColumn
in interfaceHasKanbanColumns
- Parameters:
column
- column to add, notnull
-
setColumns
Sets columns properties. Each column's properties are represented byKanbanColumn
object.- Specified by:
setColumns
in 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:
addAction
in interfaceHasActions
-
addAction
- Specified by:
addAction
in interfaceHasActions
-
removeAction
- Specified by:
removeAction
in interfaceHasActions
-
getActions
- Specified by:
getActions
in interfaceHasActions
-
getAction
- Specified by:
getAction
in 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
-