public interface RowContext extends PlainDataOutput, FormattedDataOutput, CellNavigation<RowContext>, CellCondition<RowContext>, RowNavigation<SheetContext,RowContext>, StyleConfiguration, StyleConfigurable<RowContext>, SupportsColumnTotalsRendering<RowContext>
| Modifier and Type | Method and Description |
|---|---|
org.apache.poi.ss.usermodel.Row |
getNativeRow()
Retrieve POI row referred to by current
RowContext. |
RowContext |
mergeCells(int number)
Merge cells of the current row starting from the current cell.
|
RowContext |
setColumnWidth(int width)
Set width of the last output cell.
|
RowContext |
setRowHeight(int height)
Set height of the current row.
|
date, date, date, date, multilineText, multilineText, number, number, number, number, text, text, text, textheader, percentage, percentage, totalcellAt, skipCell, skipCellsconditionalCellcurrentRow, nextRow, skipRow, skipRows, stepOneRowBacknextConditionalRowgetDateStyle, getHeaderStyle, getNumberStyle, getPercentageStyle, getTextStyle, getTotalStylegetStyleConfiguration, setDateStyle, setHeaderStyle, setNumberStyle, setPercentageStyle, setStyleConfiguration, setTextStyle, setTotalStylesetTotalsDataRange, total, total, totals, totalsRowContext setColumnWidth(int width)
Sample:
.nextRow()
.text("Some column header").setColumnWidth(25)
width - width in units, subject to multiplication - see Configuration.getColumnWidthBaseValue()RowContext setRowHeight(int height)
Configuration.getRowHeightBaseValue()height - by default, in points (as in Excel row height dialog).RowContext mergeCells(int number)
number - total number of cells to merge (including the current one)org.apache.poi.ss.usermodel.Row getNativeRow()
RowContext.
Please refrain from using the exposed HSSFRow directly unless you need functionality of POI not provided by RowContext.HSSFRowCopyright © 2014. All rights reserved.