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 |
clone()
Deprecated.
|
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() |
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
|
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging)
|
getRecordSize, serialize
cloneViaReserialise, serialize
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()
public java.lang.String toString()
Record
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
@Deprecated @Removal(version="5.0.0") public SelectionRecord clone()
clone
in class java.lang.Object
public SelectionRecord copy()
copy
in interface Duplicatable
copy
in class StandardRecord
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.