public class PercentageColumn extends Object implements IColumnRenderer
| Constructor and Description |
|---|
PercentageColumn(ICoverageNode.CounterEntity entity,
Locale locale)
Creates a new column that is based on the
ICounter for the given
entity. |
| Modifier and Type | Method and Description |
|---|---|
void |
footer(HTMLElement td,
ICoverageNode total,
Resources resources,
ReportOutputFolder base)
Renders the footer for this column.
|
Comparator<ITableItem> |
getComparator()
Returns the comparator to sort this table column.
|
boolean |
init(List<? extends ITableItem> items,
ICoverageNode total)
Initializes the column before any output method is called.
|
void |
item(HTMLElement td,
ITableItem item,
Resources resources,
ReportOutputFolder base)
Renders a single item in this column.
|
public PercentageColumn(ICoverageNode.CounterEntity entity, Locale locale)
ICounter for the given
entity.entity - counter entity for this columnlocale - locale for rendering numberspublic boolean init(List<? extends ITableItem> items, ICoverageNode total)
IColumnRendererinit in interface IColumnRendereritems - all items that will be displayed in the tabletotal - the summary of all coverage data items in the tabletrue if the column should be visiblepublic void footer(HTMLElement td, ICoverageNode total, Resources resources, ReportOutputFolder base) throws IOException
IColumnRendererfooter in interface IColumnRenderertd - the parent table celltotal - the summary of all coverage data items in the tableresources - static resources that might be referencedbase - base folder of the tableIOException - in case of IO problems with the element outputpublic void item(HTMLElement td, ITableItem item, Resources resources, ReportOutputFolder base) throws IOException
IColumnRendereritem in interface IColumnRenderertd - the parent table cellitem - the item to displayresources - static resources that might be referencedbase - base folder of the tableIOException - in case of IO problems with the element outputpublic Comparator<ITableItem> getComparator()
IColumnRenderergetComparator in interface IColumnRendererCopyright © 2024. All rights reserved.