@PublicApi
public interface ExportCell
ExportCell
represents a single cell in the underlying table-like medium (e.g. an Excel sheet or an HTML
table) that a structure can be exported into. Structure creates a new cell for each column and each issue in the
exported structure (or part of a structure), and passes an ExportCell
instance to the ExportRenderer
responsible for the column for rendering the cell. Please note that the same ExportCell
instances may be
reused in many calls to export renderers in order to put less stress on the garbage collector.
An ExportCell
has a bunch of methods to put different types of values into the cell. The actual
representation of a particular value type may depend on the underlying medium, the user's locale, and other settings.
If not specified otherwise, passing a null
value to any of the value-setting methods clears the cell.
Media-specific sub-interfaces may add methods for setting other types of values and configuring the cell.
ExportColumn
,
ExportRenderer
Modifier and Type | Method and Description |
---|---|
void |
setDate(Date date)
Set a date as the cell value.
|
void |
setDatetime(Date date)
Set a date and time as the cell value.
|
void |
setDuration(Long duration)
Set a duration as the cell value.
|
void |
setHyperlink(String text,
String url)
Set a hyperlink as the cell value.
|
void |
setNumber(Number number)
Set a number as the cell value.
|
void |
setPercentage(Double percentage)
Set a percentage as the cell value.
|
void |
setText(String text)
Set a simple text string as the cell value.
|
void setText(@Nullable String text)
text
- The text.void setNumber(@Nullable Number number)
number
- The number.void setPercentage(@Nullable Double percentage)
percentage
- The percentage, 1.0 is interpreted as 100%.void setDate(@Nullable Date date)
date
- The date.void setDatetime(@Nullable Date date)
date
- The date and time.void setDuration(@Nullable Long duration)
duration
- The duration, in seconds.Copyright © 2024 Tempo Software. All Rights Reserved.