Interface HasKanbanColumns
- All Known Implementing Classes:
JmixKanban,Kanban,KanbanColumn
public interface HasKanbanColumns
An object that supports
KanbanColumn as internal elements.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(KanbanColumn column) Adds a new column to the component.getColumnByDataField(String dataField) voidremoveColumn(KanbanColumn column) Removes aKanbanColumnfrom the component.voidremoveColumnByDataField(String dataField) Removes aKanbanColumnwith the givendataFieldfrom the component.voidreplaceColumn(String dataField, KanbanColumn newColumn) Finds aKanbanColumnwith the passeddataFieldand replaces it with the new one.voidsetColumns(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
KanbanColumnthat are direct elements of this component
-
getColumnByDataField
- 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
Removes aKanbanColumnfrom 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 aKanbanColumnwith the givendataFieldfrom the component.- Parameters:
dataField- thedataFieldattribute of the column- Throws:
IllegalArgumentException- if the passed dataField isnullor the found column is not part of component
-
replaceColumn
Finds aKanbanColumnwith the passeddataFieldand replaces it with the new one.- Parameters:
dataField-dataFieldattribute 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
-