Save This Page
Home » poi-src-3.2-FINAL-20081019 » org.apache » poi » hssf » record » [javadoc | source]
org.apache.poi.hssf.record
public class: NumberRecord [javadoc | source]
java.lang.Object
   org.apache.poi.hssf.record.Record
      org.apache.poi.hssf.record.NumberRecord

All Implemented Interfaces:
    CellValueRecordInterface, Comparable

Contains a numeric cell value.

REFERENCE: PG 334 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

Field Summary
public static final  short sid     
Constructor:
 public NumberRecord() 
 public NumberRecord(RecordInputStream in) 
    Constructs a Number record and sets its fields appropriately.
    Parameters:
    in - the RecordInputstream to read the record from
Method from org.apache.poi.hssf.record.NumberRecord Summary:
clone,   compareTo,   equals,   fillFields,   getColumn,   getRecordSize,   getRow,   getSid,   getValue,   getXFIndex,   isAfter,   isBefore,   isEqual,   isInValueSection,   isValue,   serialize,   setColumn,   setRow,   setValue,   setXFIndex,   toString,   validateSid
Methods from org.apache.poi.hssf.record.Record:
clone,   cloneViaReserialise,   fillFields,   getRecordSize,   getSid,   isInValueSection,   isValue,   serialize,   serialize,   toString,   validateSid
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.poi.hssf.record.NumberRecord Detail:
 public Object clone() 
 public int compareTo(Object obj) 
 public boolean equals(Object obj) 
 protected  void fillFields(RecordInputStream in) 
 public short getColumn() 
 public int getRecordSize() 
 public int getRow() 
 public short getSid() 
 public double getValue() 
    get the value for the cell
 public short getXFIndex() 
    get the index to the ExtendedFormat
 public boolean isAfter(CellValueRecordInterface i) 
 public boolean isBefore(CellValueRecordInterface i) 
 public boolean isEqual(CellValueRecordInterface i) 
 public boolean isInValueSection() 
 public boolean isValue() 
 public int serialize(int offset,
    byte[] data) 
    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.
 public  void setColumn(short col) 
 public  void setRow(int row) 
 public  void setValue(double value) 
    set the value for the cell
 public  void setXFIndex(short xf) 
    set the index to the ExtendedFormat
 public String toString() 
 protected  void validateSid(short id) 
    called by constructor, should throw runtime exception in the event of a record passed with a differing ID.