Interface IColumnRenderer
-
- All Known Implementing Classes:
BarColumn
,CounterColumn
,LabelColumn
,PercentageColumn
public interface IColumnRenderer
Renderer for a single column of a coverage table. The methods are always called in the sequenceinit header footer item*
. Implementations might be stateful.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
footer(HTMLElement td, ICoverageNode total, Resources resources, ReportOutputFolder base)
Renders the footer for this column.java.util.Comparator<ITableItem>
getComparator()
Returns the comparator to sort this table column.boolean
init(java.util.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.
-
-
-
Method Detail
-
init
boolean init(java.util.List<? extends ITableItem> items, ICoverageNode total)
Initializes the column before any output method is called.- Parameters:
items
- all items that will be displayed in the tabletotal
- the summary of all coverage data items in the table- Returns:
true
if the column should be visible
-
footer
void footer(HTMLElement td, ICoverageNode total, Resources resources, ReportOutputFolder base) throws java.io.IOException
Renders the footer for this column.- Parameters:
td
- the parent table celltotal
- the summary of all coverage data items in the tableresources
- static resources that might be referencedbase
- base folder of the table- Throws:
java.io.IOException
- in case of IO problems with the element output
-
item
void item(HTMLElement td, ITableItem item, Resources resources, ReportOutputFolder base) throws java.io.IOException
Renders a single item in this column.- Parameters:
td
- the parent table cellitem
- the item to displayresources
- static resources that might be referencedbase
- base folder of the table- Throws:
java.io.IOException
- in case of IO problems with the element output
-
getComparator
java.util.Comparator<ITableItem> getComparator()
Returns the comparator to sort this table column.- Returns:
- comparator for this column
-
-