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 java.lang.Objectclone()Performs a deep clone of the recordvoidcollapseColInfoRecords(int columnIdx)voidcollapseColumn(short columnNumber)static RecordcreateColInfo()creates the ColumnInfo Record and sets it to a default column/widthvoidexpandColumn(short columnNumber)protected voidfillFields(RecordInputStream in)You never fill an aggregateintfindColumnIdx(int column, int fromIdx)intfindEndOfColumnOutlineGroup(int idx)intfindStartOfColumnOutlineGroup(int idx)ColumnInfoRecordgetColInfo(int idx)java.util.IteratorgetIterator()intgetNumColumns()intgetRecordSize()gives the current serialized size of the record.shortgetSid()It's an aggregate...voidgroupColumnRange(short fromColumn, short toColumn, boolean indent)Creates an outline group for the specified columns.voidinsertColumn(int idx, ColumnInfoRecord col)Inserts a column into the aggregate (at the position specified byidx.voidinsertColumn(ColumnInfoRecord col)Inserts a column into the aggregate (at the end of the list).booleanisColumnGroupCollapsed(int idx)booleanisColumnGroupHiddenByParent(int idx)intserialize(int offset, byte[] data)called by the class that is responsible for writing this sucker.voidsetColumn(short column, java.lang.Short xfIndex, java.lang.Short width, java.lang.Integer level, java.lang.Boolean hidden, java.lang.Boolean collapsed)protected voidvalidateSid(short id)Not required by an aggregateColumnInfoRecordwriteHidden(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:
fillFieldsin classRecord- Parameters:
in- the RecordInputstream to read the record from
-
validateSid
protected void validateSid(short id)
Not required by an aggregate- Specified by:
validateSidin 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:Recordgives the current serialized size of the record. Should include the sid and reclength (4 bytes).- Overrides:
getRecordSizein classRecord
-
getIterator
public java.util.Iterator getIterator()
-
clone
public java.lang.Object clone()
Performs a deep clone of the record
-
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, java.lang.Short xfIndex, java.lang.Short width, java.lang.Integer level, java.lang.Boolean hidden, java.lang.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.
-
-