public final class CFRecordsAggregate extends RecordAggregate implements GenericRecord
CFRecordsAggregate - aggregates Conditional Formatting records CFHeaderRecord and number of up CFRuleRecord records together to simplify access to them.
Note that Excel versions before 2007 can only cope with a maximum of 3 Conditional Formatting rules per sheet. Excel 2007 or newer can cope with unlimited numbers, as can Apache OpenOffice. This is an Excel limitation, not a file format one.
(CFRecordsAggregate - 将条件格式记录 CFHeaderRecord 和 CFRuleRecord 记录的数量聚合在一起,以简化对它们的访问。请注意,2007 年之前的 Excel 版本最多只能处理每张工作表 3 条条件格式规则。 Excel 2007 或更新版本可以处理无限数量,Apache OpenOffice 也可以。这是 Excel 限制,而不是文件格式限制。)RecordAggregate.PositionTrackingVisitor, RecordAggregate.RecordVisitor
Constructor and Description |
---|
CFRecordsAggregate(CellRangeAddress[] regions, CFRuleBase[] rules) |
CFRecordsAggregate(CFRecordsAggregate other) |
Modifier and Type | Method and Description |
---|---|
void |
addRule(CFRuleBase r) |
CFRecordsAggregate |
cloneCFAggregate()
Create a deep clone of the record
(创建记录的深层克隆)
|
static CFRecordsAggregate |
createCFAggregate(RecordStream rs)
Create CFRecordsAggregate from a list of CF Records
(从 CF 记录列表创建 CFRecordsAggregate)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
CFHeaderBase |
getHeader() |
int |
getNumberOfRules() |
CFRuleBase |
getRule(int idx) |
void |
setRule(int idx, CFRuleBase r) |
java.lang.String |
toString()
String representation of CFRecordsAggregate
(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.
(按照写入文件的顺序访问此 RecordAggregate 中包含的每个原子 BIFF 记录。)
|
getRecordSize, serialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericRecordType
public CFRecordsAggregate(CFRecordsAggregate other)
public CFRecordsAggregate(CellRangeAddress[] regions, CFRuleBase[] rules)
public static CFRecordsAggregate createCFAggregate(RecordStream rs)
rs
- - the stream to read from
(rs - - 要读取的流)
public CFRecordsAggregate cloneCFAggregate()
public CFHeaderBase getHeader()
null
.
(标题。从不为空。)
public CFRuleBase getRule(int idx)
public void setRule(int idx, CFRuleBase r)
public void addRule(CFRuleBase r)
public int getNumberOfRules()
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
public java.lang.String toString()
toString
in class
java.lang.Object
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 boolean updateFormulasAfterCellShift(FormulaShifter shifter, int currentExternSheetIx)
shifter
- The
FormulaShifter
to use
(shifter - 要使用的 FormulaShifter)
currentExternSheetIx
- The index for extern sheets
(currentExternSheetIx - 外部工作表的索引)
false
if this whole
CFHeaderRecord
/
CFRuleRecord
s should be deleted
(如果应该删除整个 CFHeaderRecord / CFRuleRecords,则为 false)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.