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 |
---|---|
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
(获取此记录定义格式信息的第一列)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
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.
(返回此记录的 id 的非静态版本。)
|
int |
getXFIndex()
get the columns' default format info
(获取列的默认格式信息)
|
boolean |
isAdjacentBefore(ColumnInfoRecord other) |
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
(写入此 BIFF 记录的数据内容。)
|
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
(将列的宽度设置为字符宽度的 1/256)
|
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
(设置列的默认格式信息)
|
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
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)
(fc - - 第一列索引(从 0 开始))
public void setLastColumn(int lc)
lc
- - the last column index (0-based)
(lc - - 最后一列索引(从 0 开始))
public void setColumnWidth(int cw)
cw
- - column width
(cw - - 列宽)
public void setXFIndex(int xfi)
xfi
- - the extended format index
(xfi - - 扩展格式索引)
ExtendedFormatRecord
public void setHidden(boolean ishidden)
ishidden
- - whether the cells are hidden.
(ishidden - - 单元格是否被隐藏。)
public void setOutlineLevel(int olevel)
olevel
- -outline level for the cells
(olevel - 单元格的轮廓级别)
public void setCollapsed(boolean isCollapsed)
isCollapsed
- - whether the cells are collapsed
(isCollapsed - - 单元格是否折叠)
public 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 with
(other - 匹配的格式)
true
if the format, options and column width match
(如果格式、选项和列宽匹配,则为 true)
public 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
(在 StandardRecord 类中序列化)
out
- the output object
(out - 输出对象)
protected int getDataSize()
getDataSize
in class
StandardRecord
(类 StandardRecord 中的 getDataSize)
public ColumnInfoRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
StandardRecord
(在 StandardRecord 类中复制)
public HSSFRecordTypes getGenericRecordType()
getGenericRecordType
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericRecordType)
getGenericRecordType
in class
Record
(类 Record 中的 getGenericRecordType)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.