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 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) |
Modifier and Type | Method and Description |
---|---|
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
|
String |
toString()
get a string representation of the record (for biffview/debugging)
|
getRecordSize, serialize
cloneViaReserialise, serialize
public 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 String toString()
Record
protected int getDataSize()
getDataSize
in class StandardRecord
public void serialize(LittleEndianOutput out)
StandardRecord
RecordBase.getRecordSize()
} minus four
( record header consiting of a 'ushort sid' and 'ushort reclength' has already been written
by thye superclass).serialize
in class StandardRecord
public short getSid()
Record
Copyright © 2020. All rights reserved.