Interface ExportRenderer<C extends ExportCell,M extends ExportColumn<C>>
- Type Parameters:
C- The expected cell type.M- The expected column type.
An ExportRenderer corresponds to a single column of the underlying table-like medium (e.g. an Excel sheet
or an HTML table). The renderer is responsible for configuring the column and rendering its cells.
Single-format renderers can be parameterized with the expected ExportCell and ExportColumn
subtypes. Generic or multiple-format renderers can use the basic cell and column types or implement the raw
interface.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureColumn(M column, ExportRenderContext context) Configure the column, i.e.voidprepare(ExportRequestContext context) Allows the renderer to do one-time preparations before rendering a forest.voidrenderCell(C cell, ExportRow row, ExportRenderContext context) Render the cell, i.e.
-
Method Details
-
prepare
Allows the renderer to do one-time preparations before rendering a forest. The renderer should request attributes that it needs for rendering throughExportRequestContext.requireAttribute(com.almworks.jira.structure.api.attribute.AttributeSpec<?>).- Parameters:
context- rendering context
-
configureColumn
Configure the column, i.e. set the column name (through theheader cell) and, probably, other column options, depending on the medium. This method is called once for export request.- Parameters:
column- The column instance to configure.context- The current request context.
-
renderCell
Render the cell, i.e. set its value and, probably, other cell options, depending on the medium. This method is called once for each issue in the exported structure (or part of a structure).- Parameters:
cell- The cell instance to render into.row- The current row.context- The current request context.
-