|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.record.aggregates.SharedValueManager
public final class SharedValueManager
Manages various auxiliary records while constructing a
RowRecordsAggregate
:
Method Summary | |
---|---|
void |
addArrayRecord(ArrayRecord ar)
Add specified Array Record. |
static SharedValueManager |
create(SharedFormulaRecord[] sharedFormulaRecords,
CellReference[] firstCells,
ArrayRecord[] arrayRecords,
TableRecord[] tableRecords)
|
static SharedValueManager |
createEmpty()
|
ArrayRecord |
getArrayRecord(int firstRow,
int firstColumn)
|
SharedValueRecordBase |
getRecordForFirstCell(FormulaRecordAggregate agg)
Gets the SharedValueRecordBase record if it should be encoded immediately after the
formula record contained in the specified FormulaRecordAggregate agg. |
SharedFormulaRecord |
linkSharedFormulaRecord(CellReference firstCell,
FormulaRecordAggregate agg)
|
CellRangeAddress8Bit |
removeArrayFormula(int rowIndex,
int columnIndex)
Removes the ArrayRecord for the cell group containing the specified cell. |
void |
unlink(SharedFormulaRecord sharedFormulaRecord)
Converts all FormulaRecord s handled by sharedFormulaRecord
to plain unshared formulas |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SharedValueManager createEmpty()
SharedValueManager
.public static SharedValueManager create(SharedFormulaRecord[] sharedFormulaRecords, CellReference[] firstCells, ArrayRecord[] arrayRecords, TableRecord[] tableRecords)
public SharedFormulaRecord linkSharedFormulaRecord(CellReference firstCell, FormulaRecordAggregate agg)
firstCell
- as extracted from the ExpPtg
from the cell's formula.
null
public SharedValueRecordBase getRecordForFirstCell(FormulaRecordAggregate agg)
SharedValueRecordBase
record if it should be encoded immediately after the
formula record contained in the specified FormulaRecordAggregate
agg. Note - the
shared value record always appears after the first formula record in the group. For arrays
and tables the first formula is always the in the top left cell. However, since shared
formula groups can be sparse and/or overlap, the first formula may not actually be in the
top left cell.
null
if the formula cell is not shared/array/table,
or if the specified formula is not the the first in the group.public void unlink(SharedFormulaRecord sharedFormulaRecord)
FormulaRecord
s handled by sharedFormulaRecord
to plain unshared formulas
public void addArrayRecord(ArrayRecord ar)
public CellRangeAddress8Bit removeArrayFormula(int rowIndex, int columnIndex)
ArrayRecord
for the cell group containing the specified cell.
The caller should clear (set blank) all cells in the returned range.
null
.public ArrayRecord getArrayRecord(int firstRow, int firstColumn)
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |