| |
|
| java.lang.Object org.apache.poi.hssf.record.Record org.apache.poi.hssf.record.NumberRecord
NumberRecord | public class NumberRecord extends Record implements CellValueRecordInterface,Comparable(Code) | | Contains a numeric cell value.
REFERENCE: PG 334 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
author: Andrew C. Oliver (acoliver at apache dot org) author: Jason Height (jheight at chariot dot net dot au) version: 2.0-pre |
Field Summary | |
final public static short | sid |
sid | final public static short sid(Code) | | |
NumberRecord | public NumberRecord()(Code) | | Creates new NumberRecord
|
NumberRecord | public NumberRecord(RecordInputStream in)(Code) | | Constructs a Number record and sets its fields appropriately.
Parameters: in - the RecordInputstream to read the record from |
fillFields | protected void fillFields(RecordInputStream in)(Code) | | Parameters: in - the RecordInputstream to read the record from |
getColumn | public short getColumn()(Code) | | |
getRecordSize | public int getRecordSize()(Code) | | |
getRow | public int getRow()(Code) | | |
getSid | public short getSid()(Code) | | |
getValue | public double getValue()(Code) | | get the value for the cell
double representing the value |
isInValueSection | public boolean isInValueSection()(Code) | | |
isValue | public boolean isValue()(Code) | | |
serialize | public int serialize(int offset, byte[] data)(Code) | | called by the class that is responsible for writing this sucker.
Subclasses should implement this so that their data is passed back in a
byte array.
byte array containing instance data |
setColumn | public void setColumn(short col)(Code) | | |
setRow | public void setRow(int row)(Code) | | |
setValue | public void setValue(double value)(Code) | | set the value for the cell
Parameters: value - double representing the value |
validateSid | protected void validateSid(short id)(Code) | | called by constructor, should throw runtime exception in the event of a
record passed with a differing ID.
Parameters: id - alleged id for this record |
|
|
|