public final class SelectionRecord extends StandardRecord
Description: shows the user's selection on the sheet for write set num refs to 0
REFERENCE: PG 291 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
| Modifier and Type | Field | Description |
|---|---|---|
static short |
sid |
| Constructor | Description |
|---|---|
SelectionRecord(int activeCellRow,
int activeCellCol) |
Creates a default selection record (cell A1, in pane ID 3)
|
SelectionRecord(RecordInputStream in) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
clone() |
|
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)
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcloneViaReserialise, serializegetRecordSize, serializepublic static final short sid
public SelectionRecord(int activeCellRow,
int activeCellCol)
public SelectionRecord(RecordInputStream in)
public void setPane(byte pane)
public 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()
Recordprotected int getDataSize()
getDataSize in class StandardRecordpublic void serialize(LittleEndianOutput out)
StandardRecordRecordBase.getRecordSize()} minus four
( record header consiting of a 'ushort sid' and 'ushort reclength' has already been written
by thye superclass).serialize in class StandardRecordpublic short getSid()
RecordCopyright 2018 The Apache Software Foundation or its licensors, as applicable.