public final class CFRecordsAggregate extends RecordAggregate
RecordAggregate.PositionTrackingVisitor, RecordAggregate.RecordVisitor
Constructor and Description |
---|
CFRecordsAggregate(CellRangeAddress[] regions,
CFRuleRecord[] rules) |
Modifier and Type | Method and Description |
---|---|
void |
addRule(CFRuleRecord r) |
CFRecordsAggregate |
cloneCFAggregate()
Create a deep clone of the record
|
static CFRecordsAggregate |
createCFAggregate(RecordStream rs)
Create CFRecordsAggregate from a list of CF Records
|
CFHeaderRecord |
getHeader() |
int |
getNumberOfRules() |
CFRuleRecord |
getRule(int idx) |
void |
setRule(int idx,
CFRuleRecord r) |
String |
toString()
String representation of CFRecordsAggregate
|
boolean |
updateFormulasAfterCellShift(FormulaShifter shifter,
int currentExternSheetIx) |
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 CFRecordsAggregate(CellRangeAddress[] regions, CFRuleRecord[] rules)
public static CFRecordsAggregate createCFAggregate(RecordStream rs)
rs
- - the stream to read frompublic CFRecordsAggregate cloneCFAggregate()
public CFHeaderRecord getHeader()
null
.public CFRuleRecord getRule(int idx)
public void setRule(int idx, CFRuleRecord r)
public void addRule(CFRuleRecord r)
public int getNumberOfRules()
public String toString()
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
public boolean updateFormulasAfterCellShift(FormulaShifter shifter, int currentExternSheetIx)
false
if this whole CFHeaderRecord
/ CFRuleRecord
s should be deletedCopyright © 2020. All rights reserved.