Interface HasKanbanColumns
- All Known Implementing Classes:
JmixKanban
,Kanban
,KanbanColumn
public interface HasKanbanColumns
An object that supports
KanbanColumn
as internal elements.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumn
(KanbanColumn column) Adds a new column to the component.getColumnByDataField
(String dataField) void
removeColumn
(KanbanColumn column) Removes aKanbanColumn
from the component.void
removeColumnByDataField
(String dataField) Removes aKanbanColumn
with the givendataField
from the component.void
replaceColumn
(String dataField, KanbanColumn newColumn) Finds aKanbanColumn
with the passeddataField
and replaces it with the new one.void
setColumns
(List<KanbanColumn> columns) Sets a list of columns for a component.
-
Method Details
-
getColumns
List<KanbanColumn> getColumns()- Returns:
- an unmodifiable list of all
KanbanColumn
, including transitive columns
-
getOwnColumns
List<KanbanColumn> getOwnColumns()- Returns:
- an unmodifiable list of
KanbanColumn
that are direct elements of this component
-
getColumnByDataField
- 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
Removes aKanbanColumn
from the component. Updates the client-side of the component.- Parameters:
column
- the column to be removed, notnull
- Throws:
IllegalArgumentException
- if the passed column isnull
-
removeColumnByDataField
Removes aKanbanColumn
with the givendataField
from the component.- Parameters:
dataField
- thedataField
attribute of the column- Throws:
IllegalArgumentException
- if the passed dataField isnull
or the found column is not part of component
-
replaceColumn
Finds aKanbanColumn
with the passeddataField
and replaces it with the new one.- Parameters:
dataField
-dataField
attribute of the column being replacednewColumn
- a column for replacement- Throws:
IllegalArgumentException
- if any argument isnull
-
addColumn
Adds a new column to the component.- Parameters:
column
- column to add, notnull
- Throws:
IllegalArgumentException
- if the passed column isnull
-
setColumns
Sets a list of columns for a component.- Parameters:
columns
- list of columns to set- Throws:
IllegalArgumentException
- if the passed list isnull
-