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

All Implemented Interfaces:
    CellValueRecordInterface, Comparable

Formula Record. REFERENCE: PG 317/444 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

Field Summary
public static final  short sid     
Constructor:
 public FormulaRecord() 
 public FormulaRecord(RecordInputStream in) 
    Constructs a Formula record and sets its fields appropriately. Note - id must be 0x06 (NOT 0x406 see MSKB #Q184647 for an "explanation of this bug in the documentation) or an exception will be throw upon validation
    Parameters:
    in - the RecordInputstream to read the record from
Method from org.apache.poi.hssf.record.FormulaRecord Summary:
clone,   compareTo,   equals,   fillFields,   getColumn,   getExpressionLength,   getNumberOfExpressionTokens,   getOptions,   getParsedExpression,   getRecordSize,   getRow,   getSid,   getValue,   getXFIndex,   isAfter,   isAlwaysCalc,   isBefore,   isCalcOnLoad,   isEqual,   isInValueSection,   isSharedFormula,   isValue,   peekExpressionToken,   popExpressionToken,   pushExpressionToken,   serialize,   setAlwaysCalc,   setCalcOnLoad,   setColumn,   setExpressionLength,   setOptions,   setParsedExpression,   setRow,   setSharedFormula,   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.FormulaRecord Detail:
 public Object clone() 
 public int compareTo(Object obj) 
 public boolean equals(Object obj) 
 protected  void fillFields(RecordInputStream in) 
 public short getColumn() 
 public short getExpressionLength() 
    get the length (in number of tokens) of the expression
 public int getNumberOfExpressionTokens() 
    get the size of the stack
 public short getOptions() 
    get the option flags
 public List getParsedExpression() 
    get the stack as a list
 public int getRecordSize() 
 public int getRow() 
 public short getSid() 
 public double getValue() 
    get the calculated value of the formula
 public short getXFIndex() 
 public boolean isAfter(CellValueRecordInterface i) 
 public boolean isAlwaysCalc() 
 public boolean isBefore(CellValueRecordInterface i) 
 public boolean isCalcOnLoad() 
 public boolean isEqual(CellValueRecordInterface i) 
 public boolean isInValueSection() 
 public boolean isSharedFormula() 
 public boolean isValue() 
 public Ptg peekExpressionToken() 
    peek at the token on the top of stack
 public Ptg popExpressionToken() 
    pop a token off of the stack
 public  void pushExpressionToken(Ptg ptg) 
    push a token onto the stack
 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 setAlwaysCalc(boolean flag) 
 public  void setCalcOnLoad(boolean flag) 
 public  void setColumn(short column) 
 public  void setExpressionLength(short len) 
    set the length (in number of tokens) of the expression
 public  void setOptions(short options) 
    set the option flags
 public  void setParsedExpression(Stack ptgs) 
 public  void setRow(int row) 
 public  void setSharedFormula(boolean flag) 
 public  void setValue(double value) 
    set the calculated value of the formula
 public  void setXFIndex(short xf) 
 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.