Class KanbanColumn
java.lang.Object
io.jmix.kanbanflowui.kit.component.KanbanColumn
- All Implemented Interfaces:
HasKanbanColumns,Serializable
A class representing
JmixKanban column properties.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected Stringprotected List<KanbanColumn>protected final Stringprotected Stringprotected KanbanColumn.Orientationprotected HasKanbanColumnsprotected booleanprotected booleanprotected booleanprotected Integer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(KanbanColumn column) Adds a new column to the component.protected voidappendChildColumns(List<KanbanColumn> columns, KanbanColumn column) getColor()getColumnByDataField(String dataField) getLabel()protected HasKanbanColumnsgetWidth()booleanbooleanbooleanbooleanbooleanvoidremoveColumn(KanbanColumn column) Removes aKanbanColumnfrom the component.voidremoveColumnByDataField(String dataField) Removes aKanbanColumnwith the givendataFieldfrom the component.protected voidvoidreplaceColumn(String dataField, KanbanColumn newColumn) Finds aKanbanColumnwith the passeddataFieldand replaces it with the new one.voidsetCollapsed(boolean collapsed) Sets whether the column is collapsed.protected voidsetCollapsedSilently(boolean collapsed) voidsetCollapsible(boolean collapsible) Sets whether the column is collapsible.voidSets the color property of the column.voidsetColumns(List<KanbanColumn> columns) Sets a list of columns for a component.voidSets the text displayed in the column's header.voidsetOrientation(KanbanColumn.Orientation orientation) Sets the orientation of tasks in the column.protected voidsetParent(HasKanbanColumns parent) voidsetReorder(boolean reorder) Sets whether a column can be reordered.voidsetSelected(boolean selected) Sets whether the current column is selected.voidsetVisible(boolean visible) Sets whether a column is visible.protected voidsetVisibleSilently(boolean visible) voidSets the column width.withCollapsed(boolean collapsed) withCollapsible(boolean collapsible) withOrientation(KanbanColumn.Orientation orientation) withReorder(boolean reorder) withSelected(boolean selected) withVisible(boolean visible)
-
Field Details
-
dataField
-
label
-
collapsed
protected boolean collapsed -
collapsible
protected boolean collapsible -
visible
protected boolean visible -
reorder
protected boolean reorder -
orientation
-
selected
protected boolean selected -
width
-
color
-
parent
-
columns
-
-
Constructor Details
-
KanbanColumn
-
-
Method Details
-
getDataField
- Returns:
- the column's data source bound field that corresponds to the status field in the data source
-
getLabel
- Returns:
- text displayed in the column's header
-
setLabel
Sets the text displayed in the column's header.- Parameters:
label- text to be displayed
-
withLabel
- Parameters:
label- text to be displayed- Returns:
- this
- See Also:
-
isCollapsed
public boolean isCollapsed()- Returns:
- whether the column is collapsed
-
setCollapsed
public void setCollapsed(boolean collapsed) Sets whether the column is collapsed.falseby default.- Parameters:
collapsed- whether the column is collapsed
-
setCollapsedSilently
protected void setCollapsedSilently(boolean collapsed) -
withCollapsed
- Parameters:
collapsed- whether the column is collapsed- Returns:
- this
- See Also:
-
isCollapsible
public boolean isCollapsible()- Returns:
- whether the column is collapsible, this works in conjunction with
the
JmixKanbanproperty of the same name
-
setCollapsible
public void setCollapsible(boolean collapsible) Sets whether the column is collapsible.trueby default.- Parameters:
collapsible- whether the column is collapsible
-
withCollapsible
- Parameters:
collapsible- whether the column is collapsible- Returns:
- this
- See Also:
-
isVisible
public boolean isVisible()- Returns:
- whether a column is visible
-
setVisible
public void setVisible(boolean visible) Sets whether a column is visible.trueby default.- Parameters:
visible- whether a column is visible
-
setVisibleSilently
protected void setVisibleSilently(boolean visible) -
withVisible
- Parameters:
visible- whether a column is visible- Returns:
- this
- See Also:
-
isReorder
public boolean isReorder()- Returns:
- whether a column can be reordered, this works in conjunction with
the
JmixKanban.setColumnReorderingAllowed(boolean)
-
setReorder
public void setReorder(boolean reorder) Sets whether a column can be reordered.trueby default.- Parameters:
reorder- whether a column can be reordered
-
withReorder
- Parameters:
reorder- whether a column can be reordered- Returns:
- this
- See Also:
-
getOrientation
- Returns:
- the orientation of tasks in the column
-
setOrientation
Sets the orientation of tasks in the column.- Parameters:
orientation- orientation to be set
-
withOrientation
- Parameters:
orientation- orientation to be set- Returns:
- this
- See Also:
-
isSelected
public boolean isSelected()- Returns:
- whether the current column is selected
-
setSelected
public void setSelected(boolean selected) Sets whether the current column is selected. Only applicable to sub-columns when * hierarchy is tabs.trueby default for the first tab.- Parameters:
selected- whether the current column is selected
-
withSelected
- Parameters:
selected- whether the current column is selected- Returns:
- this
- See Also:
-
getWidth
- Returns:
- the column width
-
setWidth
Sets the column width. When this property is set a horizontal scrollbar may appear.- Parameters:
width- width to set in pixels
-
withWidth
- Parameters:
width- width to set in pixels- Returns:
- this
- See Also:
-
getColor
- Returns:
- color property of the column
-
setColor
Sets the color property of the column.- Parameters:
color- HEX color code or named color to set
-
withColor
- Parameters:
color- color to set- Returns:
- this
- See Also:
-
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
Description copied from interface:HasKanbanColumnsSets a list of columns for a component.- Specified by:
setColumnsin interfaceHasKanbanColumns- Parameters:
columns- list of columns to set
-
getParent
-
setParent
-
removerParent
protected void removerParent() -
appendChildColumns
-