public final class ColumnInfoRecordsAggregate extends RecordAggregate
RecordAggregate.PositionTrackingVisitor, RecordAggregate.RecordVisitor| Constructor and Description |
|---|
ColumnInfoRecordsAggregate()
Creates an empty aggregate
|
ColumnInfoRecordsAggregate(RecordStream rs) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Performs a deep clone of the record
|
void |
collapseColumn(int columnIndex) |
void |
expandColumn(int columnIndex) |
ColumnInfoRecord |
findColumnInfo(int columnIndex)
Finds the ColumnInfoRecord which contains the specified columnIndex
|
int |
getMaxColumn() |
int |
getMaxOutlineLevel() |
void |
groupColumnRange(int fromColumnIx,
int toColumnIx,
boolean indent)
Creates an outline group for the specified columns, by setting the level
field for each col info record in the range.
|
void |
insertColumn(ColumnInfoRecord col)
Inserts a column into the aggregate (at the end of the list).
|
void |
setColumn(int targetColumnIx,
Short xfIndex,
Integer width,
Integer level,
Boolean hidden,
Boolean collapsed) |
void |
setDefaultColumnWidth(int defaultColWidth) |
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, serializepublic ColumnInfoRecordsAggregate()
public ColumnInfoRecordsAggregate(RecordStream rs)
public void insertColumn(ColumnInfoRecord col)
public void visitContainedRecords(RecordAggregate.RecordVisitor rv)
RecordAggregateRecordAggregate in the order
that they should be written to file. Implementors may or may not return the actual
Records being used to manage POI's internal implementation. Callers should not
assume either way, and therefore only attempt to modify those Records after cloningvisitContainedRecords in class RecordAggregatepublic void collapseColumn(int columnIndex)
public void expandColumn(int columnIndex)
public void setColumn(int targetColumnIx,
Short xfIndex,
Integer width,
Integer level,
Boolean hidden,
Boolean collapsed)
public void groupColumnRange(int fromColumnIx,
int toColumnIx,
boolean indent)
ColumnInfoRecords
may be created, split or merged as a result of this operation.fromColumnIx - group from this column (inclusive)toColumnIx - group to this column (inclusive)indent - if true the group will be indented by one
level, if false indenting will be decreased by
one level.public ColumnInfoRecord findColumnInfo(int columnIndex)
columnIndex - index of the column (not the index of the ColumnInfoRecord)null if no column info found for the specified columnpublic int getMaxOutlineLevel()
public void setDefaultColumnWidth(int defaultColWidth)
public int getMaxColumn()
Copyright © 2020. All rights reserved.