public final class ColumnInfoRecord extends StandardRecord
Modifier and Type | Field and Description |
---|---|
static short |
sid |
Constructor and Description |
---|
ColumnInfoRecord()
Creates a column info record with default width and format
|
ColumnInfoRecord(ColumnInfoRecord other) |
ColumnInfoRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
ColumnInfoRecord |
clone()
Deprecated.
|
boolean |
containsColumn(int columnIndex) |
ColumnInfoRecord |
copy() |
boolean |
formatMatches(ColumnInfoRecord other) |
boolean |
getCollapsed() |
int |
getColumnWidth() |
protected int |
getDataSize() |
int |
getFirstColumn()
get the first column this record defines formatting info for
|
boolean |
getHidden() |
int |
getLastColumn()
get the last column this record defines formatting info for
|
int |
getOutlineLevel() |
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) |
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
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 |
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)
|
getRecordSize, serialize
cloneViaReserialise, serialize
public static final short sid
public ColumnInfoRecord()
public ColumnInfoRecord(ColumnInfoRecord other)
public ColumnInfoRecord(RecordInputStream in)
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.public void setOutlineLevel(int olevel)
olevel
- -outline level for the cellspublic void setCollapsed(boolean isCollapsed)
isCollapsed
- - whether the cells are collapsedpublic int getFirstColumn()
public int getLastColumn()
public int getColumnWidth()
public int getXFIndex()
ExtendedFormatRecord
public boolean getHidden()
public int getOutlineLevel()
public boolean getCollapsed()
public boolean containsColumn(int columnIndex)
public boolean isAdjacentBefore(ColumnInfoRecord other)
public boolean formatMatches(ColumnInfoRecord other)
other
- the format to match withtrue
if the format, options and column width matchpublic short getSid()
Record
public void serialize(LittleEndianOutput out)
StandardRecord
The number of bytes written must equal the record size reported by
RecordBase.getRecordSize()
} minus four (
record header consisting of a 'ushort sid' and 'ushort reclength' has
already been written by their superclass).
serialize
in class StandardRecord
out
- the output objectprotected int getDataSize()
getDataSize
in class StandardRecord
public java.lang.String toString()
Record
@Deprecated @Removal(version="5.0.0") public ColumnInfoRecord clone()
clone
in class java.lang.Object
public ColumnInfoRecord copy()
copy
in interface Duplicatable
copy
in class StandardRecord
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.