public class RowContextNoImpl extends AbstractDelegatingRowContext
sheet| Constructor and Description |
|---|
RowContextNoImpl(SheetContext sheet) |
RowContextNoImpl(SheetContext sheet,
RowContext delegate) |
| Modifier and Type | Method and Description |
|---|---|
RowContext |
cellAt(int newIndex)
Place current cell pointer in the
newIndex-th position in the row. |
RowContext |
conditionalCell(boolean condition)
Make execution of the next cell conditional.
|
RowContext |
date(Date date)
Write mandatory date to the current cell.
|
RowContext |
date(Date date,
Style style)
Write mandatory date to the current cell.
|
RowContext |
date(com.google.common.base.Optional<Date> date) |
RowContext |
date(com.google.common.base.Optional<Date> date,
Style style) |
org.apache.poi.ss.usermodel.Row |
getNativeRow()
Retrieve POI row referred to by current
RowContext. |
RowContext |
header(String text) |
RowContext |
mergeCells(int number)
Merge cells of the current row starting from the current cell.
|
RowContext |
multilineText(Collection<String> lines)
Write mandatory multiline text to the current cell.
|
RowContext |
multilineText(Collection<String> lines,
Style style)
Write mandatory multiline text to the current cell.
|
RowContext |
number(Number number)
Write mandatory number to the current cell.
|
RowContext |
number(Number number,
Style style)
Write mandatory number to the current cell.
|
RowContext |
number(com.google.common.base.Optional<? extends Number> number)
Write optional number to the current cell.
|
RowContext |
number(com.google.common.base.Optional<? extends Number> number,
Style style)
Write optional number to the current cell and apply style provided.
|
RowContext |
percentage(Number number)
Write mandatory percentage to the current cell.
|
RowContext |
percentage(com.google.common.base.Optional<? extends Number> number) |
RowContext |
setColumnWidth(int width)
Set width of the last output cell.
|
RowContext |
setRowHeight(int height)
Set height of the current row.
|
RowContext |
setTotalsDataRange(ColumnTotalsDataRange data)
The data range will be used to render totals.
|
RowContext |
skipCell()
Move current cell pointer to the next position.
|
RowContext |
skipCells(int offset)
Move current cell pointer by
offset cells within the row. |
RowContext |
text(com.google.common.base.Optional<String> text)
Write optional text to the current cell.
|
RowContext |
text(com.google.common.base.Optional<String> text,
Style style)
Write optional text to the current cell and apply style provided.
|
RowContext |
text(String text)
Write mandatory text to the current cell.
|
RowContext |
text(String text,
Style style)
Write mandatory text to the current cell.
|
RowContext |
total(Formula formula) |
RowContext |
total(Formula formula,
Style style) |
RowContext |
total(String text) |
RowContext |
totals(Formula formula,
int times) |
RowContext |
totals(Formula formula,
int times,
Style style) |
currentRow, nextConditionalRow, nextRow, skipRow, skipRows, stepOneRowBackgetDateStyle, getHeaderStyle, getNumberStyle, getPercentageStyle, getStyleConfiguration, getTextStyle, getTotalStyle, setDateStyle, setHeaderStyle, setNumberStyle, setPercentageStyle, setStyleConfiguration, setTextStyle, setTotalStyleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDateStyle, getHeaderStyle, getNumberStyle, getPercentageStyle, getTextStyle, getTotalStylegetStyleConfiguration, setDateStyle, setHeaderStyle, setNumberStyle, setPercentageStyle, setStyleConfiguration, setTextStyle, setTotalStylepublic RowContextNoImpl(SheetContext sheet)
public RowContextNoImpl(SheetContext sheet, RowContext delegate)
public RowContext total(String text)
public RowContext header(String text)
public RowContext text(String text)
PlainDataOutputStyleConfiguration.getTextStyle() on the current level is applied.
For details of style configuration please see StyleConfiguration implementation used.text - non-null stringpublic RowContext text(String text, Style style)
PlainDataOutputStyleConfiguration.getTextStyle() with a provided style is applied.
For details of style configuration please see StyleConfiguration implementation used.
For details of style merging see actual Style in use.text - non-null stringstyle - style to be applied to the current cell on top of the predefined stylepublic RowContext text(com.google.common.base.Optional<String> text)
PlainDataOutputPlainDataOutput.text(String) but the value is optional.text - for Present string - value is written, on Absent value the cell is skippedpublic RowContext text(com.google.common.base.Optional<String> text, Style style)
PlainDataOutputPlainDataOutput.text(String, Style) but the value is optional.text - for Present string - value is written, on Absent value the cell is skippedstyle - style to be applied to the current cell on top of the predefined stylepublic RowContext multilineText(Collection<String> lines)
PlainDataOutputStyleConfiguration.getTextStyle() on the current level is applied.
For details of style configuration please see StyleConfiguration implementation used.lines - non-null collection of stringspublic RowContext multilineText(Collection<String> lines, Style style)
PlainDataOutputStyleConfiguration.getTextStyle() with a provided style is applied.
For details of style configuration please see StyleConfiguration implementation used.
For details of style merging see actual Style in use.lines - non-null collection of stringsstyle - style to be applied to the current cell on top of the predefined stylepublic RowContext number(Number number, Style style)
PlainDataOutputStyleConfiguration.getNumberStyle() with a provided style is applied.
For details of style configuration please see StyleConfiguration implementation used.
For details of style merging see actual Style in use.number - non-null numberstyle - style to be applied to the current cell on top of the predefined stylepublic RowContext number(com.google.common.base.Optional<? extends Number> number)
PlainDataOutputPlainDataOutput.number(Number) but the value is optional.number - Present value is written, on Absent value the cell is skippedpublic RowContext number(com.google.common.base.Optional<? extends Number> number, Style style)
PlainDataOutputPlainDataOutput.number(Number, Style) but the value is optional.number - Present value is written, on Absent value the cell is skippedstyle - style to be applied to the current cell on top of the predefined stylepublic RowContext number(Number number)
PlainDataOutputStyleConfiguration.getNumberStyle() on the current level is applied.
For details of style configuration please see StyleConfiguration implementation used.number - non-null numberpublic RowContext date(Date date)
PlainDataOutputStyleConfiguration.getDateStyle() on the current level is applied.
For details of style configuration please see StyleConfiguration implementation used.
For details of style merging see actual Style in use.date - non-null datepublic RowContext date(Date date, Style style)
PlainDataOutputStyleConfiguration.getDateStyle() with a provided style is applied.
For details of style configuration please see StyleConfiguration implementation used.
For details of style merging see actual Style in use.date - non-null datestyle - style to be applied to the current cell on top of the predefined stylepublic RowContext date(com.google.common.base.Optional<Date> date)
public RowContext date(com.google.common.base.Optional<Date> date, Style style)
public RowContext skipCell()
CellNavigationpublic RowContext skipCells(int offset)
CellNavigationoffset cells within the row.offset - number of cells to move pointer bypublic RowContext cellAt(int newIndex)
CellNavigationnewIndex-th position in the row.
Subject to an additional shift as set by SheetConfiguration.setDefaultRowIndent(int).
Therefore: absolute position = newIndex + page wide indentationnewIndex - new pointer absolute positionpublic RowContext percentage(Number number)
FormattedDataOutputStyleConfiguration.getPercentageStyle() on the current level is applied.
For details of style configuration please see StyleConfiguration implementation used.number - non-null percentagepublic RowContext percentage(com.google.common.base.Optional<? extends Number> number)
public RowContext conditionalCell(boolean condition)
CellConditioncondition - execution conditionpublic RowContext setColumnWidth(int width)
RowContext
Sample:
.nextRow()
.text("Some column header").setColumnWidth(25)
width - width in units, subject to multiplication - see Configuration.getColumnWidthBaseValue()public RowContext setRowHeight(int height)
RowContextConfiguration.getRowHeightBaseValue()height - by default, in points (as in Excel row height dialog).public RowContext mergeCells(int number)
RowContextnumber - total number of cells to merge (including the current one)public org.apache.poi.ss.usermodel.Row getNativeRow()
RowContextRowContext.
Please refrain from using the exposed HSSFRow directly unless you need functionality of POI not provided by RowContext.HSSFRowpublic RowContext setTotalsDataRange(ColumnTotalsDataRange data)
SupportsColumnTotalsRenderingColumnTotalsDataRange.endOnPreviousRow()
method will be calleddata - data range to be used for totals calculationpublic RowContext total(Formula formula)
public RowContext total(Formula formula, Style style)
public RowContext totals(Formula formula, int times)
public RowContext totals(Formula formula, int times, Style style)
Copyright © 2014. All rights reserved.