Interface ProgressColumn<C extends ProgressColumn<C>>
- All Superinterfaces:
Column<C>
,Comparable<C>
,Component<C>
,Copyable<C>
,CustomCssComponent<C>
,Serializable
- All Known Implementing Classes:
DefaultProgressColumn
The column type that is used to render the progress in percentage. Example:
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").
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
Column.ColumnAttributes
-
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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
The entity property name that represents the total items to process.default C
trailWidth
(Integer trailWidth) Width of the trail stroke.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
addCellCssClass, addCellCssClass, addCellCssClass, addHeaderCssClass, addHeaderCssClass, addHeaderCssClass, align, alignCenter, alignLeft, alignRight, clearCellCssClasses, clearHeaderCssClasses, colSpan, colSpan, filterAndSortAlias, getAlign, getColSpan, getDataCellCssClasses, getHeaderCssClasses, getName, getWidth, isSortable, name, notSortable, removeCellCssClass, removeCellCssClass, removeCellCssClass, removeHeaderCssClass, removeHeaderCssClass, removeHeaderCssClass, setAlign, setColSpan, setName, setSortable, setWidth, sortable, sortable, width
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findAttribute, findComponent, findComponent, findComponents, findEndpoint, 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
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClass
-
Method Details
-
strokeColor
The color of the progress line. It accepts the hexadecimal colors. Defaults to "#509922".- Parameters:
strokeColor
- the hexadecimal color- Returns:
- this column for further customization
-
strokeLinecap
The shape to be used at the end of the progress bar, can be `butt`, `square` or `round`. Defaults to "square".- Parameters:
strokeLinecap
- the shape to be used at the end of the progress bar- Returns:
- this column for further customization
-
strokeWidth
Width of the stroke. Unit is percentage of SVG canvas size. Defaults to "6".- Parameters:
strokeWidth
- the width of the stroke- Returns:
- this column for further customization
-
trailWidth
Width of the trail stroke. Unit is percentage of SVG canvas size. Trail is always centered relative to actual progress path. If trailWidth are not defined, it same as strokeWidth.- Parameters:
trailWidth
- the width of the trail stroke- Returns:
- this column for further customization
-
totalKey
The entity property name that represents the total items to process. Defaults to "total".- Parameters:
totalKey
- the entity property name- Returns:
- this column for further customization
-