public final class RowRecord extends StandardRecord
Modifier and Type | Field and Description |
---|---|
static int |
ENCODED_SIZE |
static short |
sid |
Constructor and Description |
---|
RowRecord(int rowNumber) |
RowRecord(RecordInputStream in) |
RowRecord(RowRecord other) |
Modifier and Type | Method and Description |
---|---|
RowRecord |
copy() |
boolean |
getBadFontHeight()
get whether the font and row height are not compatible
(获取字体和行高是否不兼容)
|
boolean |
getBottomBorder()
A bit that specifies whether any cell in the row has a medium or thick bottom border, or any cell in the row directly below the current row has a medium or thick top border.
(一个位,用于指定行中的任何单元格是否具有中等或厚底边框,或者当前行正下方的行中的任何单元格是否具有中等或厚顶边框。)
|
boolean |
getColapsed()
get whether or not to colapse this row
(获取是否折叠这一行)
|
protected int |
getDataSize() |
int |
getFirstCol()
get the logical col number for the first cell this row (0 based index)
(获取该行第一个单元格的逻辑列号(基于 0 的索引))
|
boolean |
getFormatted()
get whether the row has been formatted (even if its got all blank cells)
(获取该行是否已被格式化(即使它得到了所有空白单元格))
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
short |
getHeight()
get the height of the row
(获取行的高度)
|
int |
getLastCol()
get the logical col number for the last cell this row (0 based index), plus one
(获取该行最后一个单元格的逻辑列号(基于 0 的索引),加一)
|
short |
getOptimize()
get whether to optimize or not (set to 0)
(获取是否优化(设置为0))
|
short |
getOptionFlags()
gets the option bitmask.
(获取选项位掩码。)
|
short |
getOptionFlags2()
gets the 2nd option bitmask.
(获得第二个选项位掩码。)
|
short |
getOutlineLevel()
get the outline level of this row
(获取该行的大纲级别)
|
boolean |
getPhoeneticGuide()
A bit that specifies whether the phonetic guide feature is enabled for any cell in this row.
(指定是否为该行中的任何单元格启用拼音指南功能的位。)
|
int |
getRowNumber()
get the logical row number for this row (0 based index)
(获取该行的逻辑行号(基于 0 的索引))
|
short |
getSid()
return the non static version of the id for this record.
(返回此记录的 id 的非静态版本。)
|
boolean |
getTopBorder()
A bit that specifies whether any cell in the row has a thick top border, or any cell in the row directly above the current row has a thick bottom border.
(一个位,用于指定行中的任何单元格是否具有粗上边框,或者行中当前行正上方的任何单元格是否具有粗下边框。)
|
short |
getXFIndex()
if the row is formatted then this is the index to the extended format record
(如果该行已格式化,则这是扩展格式记录的索引)
|
boolean |
getZeroHeight()
get whether or not to display this row with 0 height
(获取是否以 0 高度显示该行)
|
boolean |
isEmpty() |
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
(写入此 BIFF 记录的数据内容。)
|
void |
setBadFontHeight(boolean f)
set whether the font and row height are not compatible
(设置字体和行高是否不兼容)
|
void |
setBottomBorder(boolean f)
A bit that specifies whether any cell in the row has a medium or thick bottom border, or any cell in the row directly below the current row has a medium or thick top border.
(一个位,用于指定行中的任何单元格是否具有中等或厚底边框,或者当前行正下方的行中的任何单元格是否具有中等或厚顶边框。)
|
void |
setColapsed(boolean c)
set whether or not to collapse this row
(设置是否折叠该行)
|
void |
setEmpty()
Updates the firstCol and lastCol fields to the reserved value (-1) to signify that this row is empty
(将 firstCol 和 lastCol 字段更新为保留值 (-1) 以表示该行为空)
|
void |
setFirstCol(int col)
set the logical col number for the first cell this row (0 based index)
(为该行的第一个单元格设置逻辑列号(基于 0 的索引))
|
void |
setFormatted(boolean f)
set whether the row has been formatted (even if its got all blank cells)
(设置该行是否已被格式化(即使它得到了所有空白单元格))
|
void |
setHeight(short height)
set the height of the row
(设置行高)
|
void |
setLastCol(int col) |
void |
setOptimize(short optimize)
set whether to optimize or not (set to 0)
(设置是否优化(设置为0))
|
void |
setOutlineLevel(short ol)
set the outline level of this row
(设置该行的大纲级别)
|
void |
setPhoeneticGuide(boolean f)
A bit that specifies whether the phonetic guide feature is enabled for any cell in this row.
(指定是否为该行中的任何单元格启用拼音指南功能的位。)
|
void |
setRowNumber(int row)
set the logical row number for this row (0 based index)
(设置该行的逻辑行号(基于 0 的索引))
|
void |
setTopBorder(boolean f)
bit that specifies whether any cell in the row has a thick top border, or any cell in the row directly above the current row has a thick bottom border.
(位,指定行中的任何单元格是否具有粗上边框,或者行中当前行正上方的任何单元格是否具有粗下边框。)
|
void |
setXFIndex(short index)
if the row is formatted then this is the index to the extended format record
(如果该行已格式化,则这是扩展格式记录的索引)
|
void |
setZeroHeight(boolean z)
set whether or not to display this row with 0 height
(设置是否以 0 高度显示该行)
|
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
public static final short sid
public static final int ENCODED_SIZE
public RowRecord(RowRecord other)
public RowRecord(int rowNumber)
public RowRecord(RecordInputStream in)
public void setEmpty()
public boolean isEmpty()
public void setRowNumber(int row)
row
- - the row number
(row - - 行号)
public void setFirstCol(int col)
col
- - the col number
(col - - 列号)
public void setLastCol(int col)
col
- - one past the zero-based index to the last cell in this row
(col - 从从零开始的索引到此行中的最后一个单元格的一个过去)
public void setHeight(short height)
height
- of the row
(高度 - 行)
public void setOptimize(short optimize)
optimize
- (set to 0)
(优化 - (设置为 0))
public void setOutlineLevel(short ol)
ol
- - the outline level
(ol - - 大纲级别)
public void setColapsed(boolean c)
c
- - collapse or not
(c -- 倒塌与否)
public void setZeroHeight(boolean z)
z
- height is zero or not.
(z - 高度是否为零。)
public void setBadFontHeight(boolean f)
f
- true if they aren't compatible (damn not logic)
(f - 如果它们不兼容,则为真(该死的不是逻辑))
public void setFormatted(boolean f)
f
- formatted or not
(f - 格式化与否)
public void setXFIndex(short index)
index
- to the XF record
(index - 到 XF 记录)
ExtendedFormatRecord
public void setTopBorder(boolean f)
f
- has thick top border
(f - 有厚的上边框)
public void setBottomBorder(boolean f)
f
- has thick bottom border
(f - 有厚底边框)
public void setPhoeneticGuide(boolean f)
f
- use phoenetic guide
(f - 使用语音指南)
public int getRowNumber()
public int getFirstCol()
public int getLastCol()
public short getHeight()
public short getOptimize()
public short getOptionFlags()
public short getOutlineLevel()
getOptionFlags()
public boolean getColapsed()
getOptionFlags()
public boolean getZeroHeight()
getOptionFlags()
public boolean getBadFontHeight()
getOptionFlags()
public boolean getFormatted()
getOptionFlags()
public short getOptionFlags2()
public short getXFIndex()
ExtendedFormatRecord
public boolean getTopBorder()
public boolean getBottomBorder()
public boolean getPhoeneticGuide()
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 short getSid()
Record
public RowRecord 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.