public interface ColumnTotalsDataRange
An instance of this interface represents the contiguous range of rows that can be used as a source for totals formula.
Data range is started when the instance is created, and ended when endOnCurrentRow()
or endOnPreviousRow() called explicitly or when the object is used to render totals.
| 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() |
void endOnCurrentRow()
Mark 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.int getStartRowNo()
int getEndRowNo()
boolean isEndMarked()
endOnCurrentRow() or endOnPreviousRow() was called and therefore,
calling either of these methods will produce an error (cannot mark the end twice)void endOnPreviousRow()
void endOn(int rowOffset)
rowOffset - example values:
endOnCurrentRow()endOnPreviousRow()Copyright © 2014. All rights reserved.