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.
(按照写入文件的顺序访问此 RecordAggregate 中包含的每个原子 BIFF 记录。)
|
getRecordSize, serialize
public RowRecordsAggregate()
public RowRecordsAggregate(RecordStream rs, SharedValueManager svm)
rs
- record stream with all
SharedFormulaRecord
ArrayRecord
,
TableRecord
MergeCellsRecord
Records removed
(rs - 删除所有 SharedFormulaRecord ArrayRecord、TableRecord MergeCellsRecord 记录的记录流)
svm
- an initialised
SharedValueManager
(from the shared formula, array and table records of the current sheet). Never
null
.
(svm - 一个初始化的 SharedValueManager(来自当前工作表的共享公式、数组和表记录)。从不为空。)
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
(返回行块的数量。行块是包含 DBCell 记录的行的组合)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 cloning
(按照写入文件的顺序访问此 RecordAggregate 中包含的每个原子 BIFF 记录。实施者可能会或可能不会返回用于管理 POI 内部实施的实际记录。调用者不应采取任何一种方式,因此仅在克隆后尝试修改这些记录)
visitContainedRecords
in class
RecordAggregate
(类 RecordAggregate 中的 visitContainedRecords)
rv
- The visitor to use for callbacks while walking this object
(rv - 访问此对象时用于回调的访问者)
public 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 number
(rowNumber - 行号)
RowRecord
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 2021 The Apache Software Foundation or its licensors, as applicable.