Package loci.poi.hssf.record.aggregates
Class ColumnInfoRecordsAggregate
- java.lang.Object
-
- loci.poi.hssf.record.Record
-
- loci.poi.hssf.record.aggregates.ColumnInfoRecordsAggregate
-
public class ColumnInfoRecordsAggregate extends Record
- Version:
- $Id: ColumnInfoRecordsAggregate.java 496526 2007-01-15 22:46:35Z markt $
- Author:
- Glen Stampoultzis
-
-
Constructor Summary
Constructors Constructor Description ColumnInfoRecordsAggregate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Performs a deep clone of the recordvoid
collapseColInfoRecords(int columnIdx)
void
collapseColumn(short columnNumber)
static Record
createColInfo()
creates the ColumnInfo Record and sets it to a default column/widthvoid
expandColumn(short columnNumber)
protected void
fillFields(RecordInputStream in)
You never fill an aggregateint
findColumnIdx(int column, int fromIdx)
int
findEndOfColumnOutlineGroup(int idx)
int
findStartOfColumnOutlineGroup(int idx)
ColumnInfoRecord
getColInfo(int idx)
Iterator
getIterator()
int
getNumColumns()
int
getRecordSize()
gives the current serialized size of the record.short
getSid()
It's an aggregate...void
groupColumnRange(short fromColumn, short toColumn, boolean indent)
Creates an outline group for the specified columns.void
insertColumn(int idx, ColumnInfoRecord col)
Inserts a column into the aggregate (at the position specified byidx
.void
insertColumn(ColumnInfoRecord col)
Inserts a column into the aggregate (at the end of the list).boolean
isColumnGroupCollapsed(int idx)
boolean
isColumnGroupHiddenByParent(int idx)
int
serialize(int offset, byte[] data)
called by the class that is responsible for writing this sucker.void
setColumn(short column, Short xfIndex, Short width, Integer level, Boolean hidden, Boolean collapsed)
protected void
validateSid(short id)
Not required by an aggregateColumnInfoRecord
writeHidden(ColumnInfoRecord columnInfo, int idx, boolean hidden)
-
Methods inherited from class loci.poi.hssf.record.Record
isInValueSection, isValue, serialize, toString
-
-
-
-
Method Detail
-
fillFields
protected void fillFields(RecordInputStream in)
You never fill an aggregate- Specified by:
fillFields
in classRecord
- Parameters:
in
- the RecordInputstream to read the record from
-
validateSid
protected void validateSid(short id)
Not required by an aggregate- Specified by:
validateSid
in classRecord
- Parameters:
id
- alleged id for this record
-
getSid
public short getSid()
It's an aggregate... just made something up
-
getRecordSize
public int getRecordSize()
Description copied from class:Record
gives the current serialized size of the record. Should include the sid and reclength (4 bytes).- Overrides:
getRecordSize
in classRecord
-
getIterator
public Iterator getIterator()
-
insertColumn
public void insertColumn(ColumnInfoRecord col)
Inserts a column into the aggregate (at the end of the list).
-
insertColumn
public void insertColumn(int idx, ColumnInfoRecord col)
Inserts a column into the aggregate (at the position specified byidx
.
-
getNumColumns
public int getNumColumns()
-
serialize
public int serialize(int offset, byte[] data)
called by the class that is responsible for writing this sucker. Subclasses should implement this so that their data is passed back in a byte array.
-
findStartOfColumnOutlineGroup
public int findStartOfColumnOutlineGroup(int idx)
-
findEndOfColumnOutlineGroup
public int findEndOfColumnOutlineGroup(int idx)
-
getColInfo
public ColumnInfoRecord getColInfo(int idx)
-
writeHidden
public ColumnInfoRecord writeHidden(ColumnInfoRecord columnInfo, int idx, boolean hidden)
-
isColumnGroupCollapsed
public boolean isColumnGroupCollapsed(int idx)
-
isColumnGroupHiddenByParent
public boolean isColumnGroupHiddenByParent(int idx)
-
collapseColumn
public void collapseColumn(short columnNumber)
-
expandColumn
public void expandColumn(short columnNumber)
-
createColInfo
public static Record createColInfo()
creates the ColumnInfo Record and sets it to a default column/width- Returns:
- record containing a ColumnInfoRecord
- See Also:
ColumnInfoRecord
-
setColumn
public void setColumn(short column, Short xfIndex, Short width, Integer level, Boolean hidden, Boolean collapsed)
-
findColumnIdx
public int findColumnIdx(int column, int fromIdx)
-
collapseColInfoRecords
public void collapseColInfoRecords(int columnIdx)
-
groupColumnRange
public void groupColumnRange(short fromColumn, short toColumn, boolean indent)
Creates an outline group for the specified columns.- Parameters:
fromColumn
- group from this column (inclusive)toColumn
- group to this column (inclusive)indent
- if true the group will be indented by one level, if false indenting will be removed by one level.
-
-