public class ColumnTotalsDataRangeImpl extends Object implements ColumnTotalsDataRange
| Constructor and Description |
|---|
ColumnTotalsDataRangeImpl(SheetContextImpl sheetContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
endOn(int rowOffset) |
void |
endOnCurrentRow()
Mark the current row as the end of data range
|
void |
endOnPreviousRow()
Mark the row rendered before current one as the end of data range
|
int |
getEndRowNo() |
int |
getStartRowNo() |
boolean |
isEndMarked() |
String |
toString() |
public ColumnTotalsDataRangeImpl(SheetContextImpl sheetContext)
public void endOnCurrentRow()
ColumnTotalsDataRangeMark the current row as the end of data range
You can omit calling this method directly if the formula is generated on the line following the last line of the data range.
If you want to leave some lines between the data range and the formula that uses it, call this method when you finished writing your data.endOnCurrentRow in interface ColumnTotalsDataRangeSupportsColumnTotalsRendering.setTotalsDataRange(ColumnTotalsDataRange)public void endOnPreviousRow()
ColumnTotalsDataRangeendOnPreviousRow in interface ColumnTotalsDataRangepublic void endOn(int rowOffset)
endOn in interface ColumnTotalsDataRangerowOffset - example values:
ColumnTotalsDataRange.endOnCurrentRow()ColumnTotalsDataRange.endOnPreviousRow()public int getStartRowNo()
getStartRowNo in interface ColumnTotalsDataRangepublic int getEndRowNo()
getEndRowNo in interface ColumnTotalsDataRangepublic boolean isEndMarked()
isEndMarked in interface ColumnTotalsDataRangeColumnTotalsDataRange.endOnCurrentRow() or ColumnTotalsDataRange.endOnPreviousRow() was called and therefore,
calling either of these methods will produce an error (cannot mark the end twice)Copyright © 2014. All rights reserved.