-
- All Implemented Interfaces:
public final class Row extends ExcelElement
Represents a row in a sheet
-
-
Field Summary
Fields Modifier and Type Field Description private final XSSFRowxssfRowprivate final XSSFWorkbookxssfWorkbook
-
Method Summary
Modifier and Type Method Description final XSSFRowgetXssfRow()XSSFWorkbookgetXssfWorkbook()final Unitcell(Object content, XSSFCellStyle style)Creates a new cell in the rowCell explicitly support the following data types: Formula
Boolean
Number
Date
Calendar
LocalDate
LocalDateTime
-
-
Constructor Detail
-
Row
Row(XSSFWorkbook xssfWorkbook, XSSFCellStyle style, XSSFSheet xssfSheet, Integer index)
- Parameters:
xssfSheet- underlying apache poi xssfSheet where row was createdindex- the index on the sheet where row was created
-
-
Method Detail
-
getXssfRow
final XSSFRow getXssfRow()
-
getXssfWorkbook
XSSFWorkbook getXssfWorkbook()
-
cell
final Unit cell(Object content, XSSFCellStyle style)
Creates a new cell in the row
Cell explicitly support the following data types:
Formula
Boolean
Number
Date
Calendar
LocalDate
LocalDateTime
All other data types will be converted to a string to be displayed.
Example of all data types in use:
row { cell(Formula("A1 + A2")) cell(true) cell(12.2) cell(Date()) cell(Calendar.getInstance()) cell(LocalDate.now()) cell(LocalDateTime.now()) }- Parameters:
content- the content to be displayed in the cellstyle- optional cell style to be applied to this cell
-
-
-