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
|
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.
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
void |
setActiveCellCol(short col)
set the active cell's 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, serializecloneViaReserialise, serialize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGenericChildrenpublic static final short sid
public SelectionRecord(SelectionRecord other)
public SelectionRecord(int activeCellRow,
int activeCellCol)
activeCellRow - the active cells row indexactiveCellCol - the active cells column indexpublic SelectionRecord(RecordInputStream in)
public void setPane(byte pane)
pane - the window panepublic void setActiveCellRow(int row)
row - number of active cellpublic void setActiveCellCol(short col)
col - number of active cellpublic void setActiveCellRef(short ref)
ref - number of active cellpublic byte getPane()
public int getActiveCellRow()
public int getActiveCellCol()
public int getActiveCellRef()
protected int getDataSize()
getDataSize in class StandardRecordpublic 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 StandardRecordout - the output objectpublic short getSid()
Recordpublic SelectionRecord copy()
copy in interface Duplicatablecopy in class StandardRecordpublic HSSFRecordTypes getGenericRecordType()
getGenericRecordType in interface GenericRecordgetGenericRecordType in class Recordpublic java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.