public final class RowRecordsAggregate extends RecordAggregate
RecordAggregate.PositionTrackingVisitor, RecordAggregate.RecordVisitor
Constructor and Description |
---|
RowRecordsAggregate()
Creates a new instance of ValueRecordsAggregate
|
RowRecordsAggregate(RecordStream rs,
SharedValueManager svm) |
Modifier and Type | Method and Description |
---|---|
void |
collapseRow(int rowNumber) |
DimensionsRecord |
createDimensions() |
FormulaRecordAggregate |
createFormula(int row,
int col) |
IndexRecord |
createIndexRecord(int indexRecordOffset,
int sizeOfInitialSheetRecords) |
static RowRecord |
createRow(int rowNumber)
Create a row record.
|
void |
expandRow(int rowNumber) |
int |
findEndOfRowOutlineGroup(int row) |
int |
findStartOfRowOutlineGroup(int row) |
java.util.Iterator<CellValueRecordInterface> |
getCellValueIterator()
Returns an iterator for the cell values
|
int |
getFirstRowNum() |
java.util.Iterator<RowRecord> |
getIterator() |
int |
getLastRowNum() |
int |
getPhysicalNumberOfRows() |
RowRecord |
getRow(int rowIndex) |
int |
getRowBlockCount()
Returns the number of row blocks.
|
int |
getRowCountForBlock(int block)
Returns the number of physical rows within a block
|
void |
insertCell(CellValueRecordInterface cvRec) |
void |
insertRow(RowRecord row) |
boolean |
isRowGroupCollapsed(int row) |
boolean |
isRowGroupHiddenByParent(int row) |
void |
removeCell(CellValueRecordInterface cvRec) |
void |
removeRow(RowRecord row) |
void |
updateFormulasAfterRowShift(FormulaShifter formulaShifter,
int currentExternSheetIndex) |
void |
visitContainedRecords(RecordAggregate.RecordVisitor rv)
Visit each of the atomic BIFF records contained in this
RecordAggregate in the order
that they should be written to file. |
getRecordSize, serialize
public RowRecordsAggregate()
public RowRecordsAggregate(RecordStream rs, SharedValueManager svm)
rs
- record stream with all SharedFormulaRecord
ArrayRecord
, TableRecord
MergeCellsRecord
Records removedsvm
- an initialised SharedValueManager
(from the shared formula, array
and table records of the current sheet). Never null
.public void insertRow(RowRecord row)
public void removeRow(RowRecord row)
public RowRecord getRow(int rowIndex)
public int getPhysicalNumberOfRows()
public int getFirstRowNum()
public int getLastRowNum()
public int getRowBlockCount()
The row blocks are goupings of rows that contain the DBCell record after them
public int getRowCountForBlock(int block)
public void visitContainedRecords(RecordAggregate.RecordVisitor rv)
RecordAggregate
RecordAggregate
in the order
that they should be written to file. Implementors may or may not return the actual
Record
s being used to manage POI's internal implementation. Callers should not
assume either way, and therefore only attempt to modify those Record
s after cloningvisitContainedRecords
in class RecordAggregate
rv
- The visitor to use for callbacks while walking this objectpublic java.util.Iterator<RowRecord> getIterator()
public int findStartOfRowOutlineGroup(int row)
public int findEndOfRowOutlineGroup(int row)
public void collapseRow(int rowNumber)
public static RowRecord createRow(int rowNumber)
rowNumber
- row numberRowRecord
public boolean isRowGroupCollapsed(int row)
public void expandRow(int rowNumber)
public boolean isRowGroupHiddenByParent(int row)
public java.util.Iterator<CellValueRecordInterface> getCellValueIterator()
public IndexRecord createIndexRecord(int indexRecordOffset, int sizeOfInitialSheetRecords)
public void insertCell(CellValueRecordInterface cvRec)
public void removeCell(CellValueRecordInterface cvRec)
public FormulaRecordAggregate createFormula(int row, int col)
public void updateFormulasAfterRowShift(FormulaShifter formulaShifter, int currentExternSheetIndex)
public DimensionsRecord createDimensions()
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.