C - The expected cell type.M - The expected column type.@PublicSpi
public interface ExportRenderer<C extends ExportCell,M extends ExportColumn<C>>
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.
ExportCell,
ExportColumn| Modifier and Type | Method and Description |
|---|---|
void |
configureColumn(M column,
ExportRenderContext context)
Configure the column, i.e.
|
void |
prepare(ExportRequestContext context)
Allows the renderer to do one-time preparations before rendering a forest.
|
void |
renderCell(C cell,
ExportRow row,
ExportRenderContext context)
Render the cell, i.e.
|
void prepare(@NotNull
ExportRequestContext context)
ExportRequestContext.requireAttribute(com.almworks.jira.structure.api.attribute.AttributeSpec<?>).context - rendering contextvoid configureColumn(@NotNull
M column,
@NotNull
ExportRenderContext context)
header cell)
and, probably, other column options, depending on the medium. This method is called once for export request.column - The column instance to configure.context - The current request context.void renderCell(@NotNull
C cell,
@NotNull
ExportRow row,
@NotNull
ExportRenderContext context)
cell - The cell instance to render into.row - The current row.context - The current request context.Copyright © 2021 ALM Works. All Rights Reserved.