Package loci.poi.hssf.record.aggregates
Class ColumnInfoRecordsAggregate
java.lang.Object
loci.poi.hssf.record.Record
loci.poi.hssf.record.aggregates.ColumnInfoRecordsAggregate
- Version:
- $Id: ColumnInfoRecordsAggregate.java 496526 2007-01-15 22:46:35Z markt $
- Author:
- Glen Stampoultzis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Performs a deep clone of the recordvoidcollapseColInfoRecords(int columnIdx) voidcollapseColumn(short columnNumber) static Recordcreates the ColumnInfo Record and sets it to a default column/widthvoidexpandColumn(short columnNumber) protected voidYou never fill an aggregateintfindColumnIdx(int column, int fromIdx) intfindEndOfColumnOutlineGroup(int idx) intfindStartOfColumnOutlineGroup(int idx) getColInfo(int idx) intintgives 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.voidInserts 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, Short xfIndex, Short width, Integer level, Boolean hidden, Boolean collapsed) protected voidvalidateSid(short id) Not required by an aggregatewriteHidden(ColumnInfoRecord columnInfo, int idx, boolean hidden) Methods inherited from class loci.poi.hssf.record.Record
isInValueSection, isValue, serialize, toString
-
Constructor Details
-
ColumnInfoRecordsAggregate
public ColumnInfoRecordsAggregate()
-
-
Method Details
-
fillFields
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
-
clone
Performs a deep clone of the record -
insertColumn
Inserts a column into the aggregate (at the end of the list). -
insertColumn
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
-
writeHidden
-
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
creates the ColumnInfo Record and sets it to a default column/width- Returns:
- record containing a ColumnInfoRecord
- See Also:
-
setColumn
-
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.
-