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, 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 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 StandardRecord
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 objectpublic short getSid()
Record
public SelectionRecord copy()
copy
in interface Duplicatable
copy
in class StandardRecord
public HSSFRecordTypes getGenericRecordType()
getGenericRecordType
in interface GenericRecord
getGenericRecordType
in class Record
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.