|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.ColumnInfoRecord
public final class ColumnInfoRecord
Title: COLINFO Record
Description: Defines with width and formatting for a range of columns REFERENCE: PG 293 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
Field Summary | |
---|---|
static short |
sid
|
Constructor Summary | |
---|---|
ColumnInfoRecord()
Creates a column info record with default width and format |
|
ColumnInfoRecord(RecordInputStream in)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
containsColumn(int columnIndex)
|
boolean |
formatMatches(ColumnInfoRecord other)
|
boolean |
getCollapsed()
get whether the cells are collapsed |
int |
getColumnWidth()
get the columns' width in 1/256 of a character width |
int |
getFirstColumn()
get the first column this record defines formatting info for |
boolean |
getHidden()
get whether or not these cells are hidden |
int |
getLastColumn()
get the last column this record defines formatting info for |
int |
getOptions()
|
int |
getOutlineLevel()
get the outline level for the cells |
int |
getRecordSize()
gives the current serialized size of the record. |
short |
getSid()
return the non static version of the id for this record. |
int |
getXFIndex()
get the columns' default format info |
boolean |
isAdjacentBefore(ColumnInfoRecord other)
|
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker. |
void |
setCollapsed(boolean iscollapsed)
set whether the cells are collapsed |
void |
setColumnWidth(int cw)
set the columns' width in 1/256 of a character width |
void |
setFirstColumn(int fc)
set the first column this record defines formatting info for |
void |
setHidden(boolean ishidden)
set whether or not these cells are hidden |
void |
setLastColumn(int lc)
set the last column this record defines formatting info for |
void |
setOptions(int field_5_options)
|
void |
setOutlineLevel(int olevel)
set the outline level for the cells |
void |
setXFIndex(int xfi)
set the columns' default format info |
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging) |
Methods inherited from class org.apache.poi.hssf.record.Record |
---|
cloneViaReserialise, serialize |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short sid
Constructor Detail |
---|
public ColumnInfoRecord()
public ColumnInfoRecord(RecordInputStream in)
Method Detail |
---|
public void setFirstColumn(int fc)
fc
- - the first column index (0-based)public void setLastColumn(int lc)
lc
- - the last column index (0-based)public void setColumnWidth(int cw)
cw
- - column widthpublic void setXFIndex(int xfi)
xfi
- - the extended format indexExtendedFormatRecord
public void setHidden(boolean ishidden)
ishidden
- - whether the cells are hidden.#setOptions(short)
public void setOutlineLevel(int olevel)
olevel
- -outline level for the cells#setOptions(short)
public void setCollapsed(boolean iscollapsed)
iscollapsed
- - wether the cells are collapsed#setOptions(short)
public int getFirstColumn()
public int getLastColumn()
public int getColumnWidth()
public int getXFIndex()
ExtendedFormatRecord
public int getOptions()
public void setOptions(int field_5_options)
public boolean getHidden()
#setOptions(short)
public int getOutlineLevel()
#setOptions(short)
public boolean getCollapsed()
#setOptions(short)
public boolean containsColumn(int columnIndex)
public boolean isAdjacentBefore(ColumnInfoRecord other)
public boolean formatMatches(ColumnInfoRecord other)
true
if the format, options and column width matchpublic short getSid()
Record
getSid
in class Record
public int serialize(int offset, byte[] data)
RecordBase
serialize
in class RecordBase
offset
- to begin writing atdata
- byte array containing instance data
public int getRecordSize()
Record
getRecordSize
in class Record
public java.lang.String toString()
Record
toString
in class Record
public java.lang.Object clone()
clone
in class Record
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |