public interface ProgressColumn<C extends ProgressColumn<C>> extends Column<C>
Columns.progress().name("completeCount").totalKey("totalItems")completeCount - is the "done" amount
totalItems - is the "total" amount. The percentage is calculated as "done / total * 100". By default this column uses the rc-progress component to render the line progress. You can specify the properties of this component using the attributes, e.g. .attribute("strokeColor", "#509922").
Modifier and Type | Interface and Description |
---|---|
static class |
ProgressColumn.Attributes |
Column.ColumnAttributes
Modifier and Type | Method and Description |
---|---|
default C |
strokeColor(String strokeColor)
The color of the progress line.
|
default C |
strokeLinecap(String strokeLinecap)
The shape to be used at the end of the progress bar, can be `butt`, `square` or `round`.
|
default C |
strokeWidth(Integer strokeWidth)
Width of the stroke.
|
default C |
totalKey(String totalKey)
The entity property name that represents the total items to process.
|
default C |
trailWidth(Integer trailWidth)
Width of the trail stroke.
|
align, alignCenter, alignLeft, alignRight, colSpan, colSpan, filterAndSortAlias, getAlign, getColSpan, getName, getWidth, isSortable, name, notSortable, setAlign, setColSpan, setName, setSortable, setWidth, sortable, sortable, width
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
compareTo
default C strokeColor(String strokeColor)
strokeColor
- the hexadecimal colordefault C strokeLinecap(String strokeLinecap)
strokeLinecap
- the shape to be used at the end of the progress bardefault C strokeWidth(Integer strokeWidth)
strokeWidth
- the width of the strokedefault C trailWidth(Integer trailWidth)
trailWidth
- the width of the trail strokeCopyright © 2021. All rights reserved.