public final class SelectionRecord extends StandardRecord
Modifier and Type | Field and Description |
---|---|
static short |
sid |
Constructor and Description |
---|
SelectionRecord(int activeCellRow, int activeCellCol)
Creates a default selection record (cell A1, in pane ID 3)
|
SelectionRecord(RecordInputStream in) |
SelectionRecord(SelectionRecord other) |
Modifier and Type | Method and Description |
---|---|
SelectionRecord |
copy() |
int |
getActiveCellCol()
get the active cell's col
(获取活动单元格的 col)
|
int |
getActiveCellRef()
get the active cell's reference number
(获取活动单元格的参考号)
|
int |
getActiveCellRow()
get the active cell's row
(获取活动单元格的行)
|
protected int |
getDataSize() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
byte |
getPane() |
short |
getSid()
return the non static version of the id for this record.
(返回此记录的 id 的非静态版本。)
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
(写入此 BIFF 记录的数据内容。)
|
void |
setActiveCellCol(short col)
set the active cell's col
(设置活动单元格的 col)
|
void |
setActiveCellRef(short ref)
set the active cell's reference number
(设置活动单元格的参考号)
|
void |
setActiveCellRow(int row)
set the active cell's row
(设置活动单元格的行)
|
void |
setPane(byte pane)
set which window pane this is for
(设置这是用于哪个窗格)
|
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
public static final short sid
public SelectionRecord(SelectionRecord other)
public SelectionRecord(int activeCellRow, int activeCellCol)
activeCellRow
- the active cells row index
(activeCellRow - 活动单元格行索引)
activeCellCol
- the active cells column index
(activeCellCol - 活动单元格列索引)
public SelectionRecord(RecordInputStream in)
public void setPane(byte pane)
pane
- the window pane
(窗格 - 窗口窗格)
public void setActiveCellRow(int row)
row
- number of active cell
(行 - 活动单元格的数量)
public void setActiveCellCol(short col)
col
- number of active cell
(col - 活动单元格的数量)
public void setActiveCellRef(short ref)
ref
- number of active cell
(ref - 活动单元格的数量)
public byte getPane()
public int getActiveCellRow()
public int getActiveCellCol()
public int getActiveCellRef()
protected int getDataSize()
getDataSize
in class
StandardRecord
(类 StandardRecord 中的 getDataSize)
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 - 输出对象)
public short getSid()
Record
public SelectionRecord 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.