@PublicApi public interface ExcelCell extends ExportCell
ExcelCell is a specialization of ExportCell for exporting to the Microsoft Excel format, offering
limited support for Excel-specific styling.
Excel export is backed by Apache POI. For advanced formatting you can call the underlying POI objects directly, obtaining them from the column context.
ExcelColumn,
AttributeContext.getObject(Object),
ExportContextKeys.Excel| Modifier and Type | Method and Description |
|---|---|
void |
setIndention(int indention)
Set the indentation level for the cell.
|
void |
setRichTextFromHtml(String html)
Attempts to convert an HTML fragment into a rich text string and set that as the cell value.
|
void |
setStyle(ExcelStyle style)
Set the cell style.
|
setDate, setDatetime, setDuration, setHyperlink, setNumber, setPercentage, setTextvoid setRichTextFromHtml(@Nullable
String html)
<b>, <i>, <em>, and
<strong> HTML tags. If the passed HTML fragment is invalid, it may be treated as a literal string.html - The HTML fragment.void setStyle(@Nullable
ExcelStyle style)
ExcelColumn.setDefaultStyle(ExcelStyle) once instead of setting the
same style to each data cell. It is OK to use setStyle() for column header cells.style - The style.void setIndention(int indention)
indention - The indentation level, clamped to be between 0 and 15, inclusive.Copyright © 2019 ALM Works. All Rights Reserved.