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

All Implemented Interfaces:
    CellValueRecordInterface

Formula Record - This is not really supported in this release. Its here for future use.

Copyright: Copyright (c) 2001 SuperLink Software, Inc.

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

Field Summary
public static final  short sid     
Fields inherited from org.apache.cocoon.poi.hssf.record.Record:
sid
Constructor:
 public FormulaRecord() 
 public FormulaRecord(short id,
    short size,
    byte[] data) 
 public FormulaRecord(short id,
    short size,
    byte[] data,
    int offset) 
Method from org.apache.cocoon.poi.hssf.record.FormulaRecord Summary:
fillFields,   getColumn,   getExpressionLength,   getNumberOfExpressionTokens,   getOptions,   getParsedExpression,   getRow,   getSid,   getValue,   getXFIndex,   isAfter,   isBefore,   isEqual,   peekExpressionToken,   popExpressionToken,   pushExpressionToken,   serialize,   setColumn,   setExpressionLength,   setOptions,   setRow,   setValue,   setXFIndex,   validateSid
Methods from org.apache.cocoon.poi.hssf.record.Record:
fillFields,   fillFields,   getRecordSize,   getSid,   isInValueSection,   isValue,   processContinueRecord,   serialize,   toString,   validateSid
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.poi.hssf.record.FormulaRecord Detail:
 protected  void fillFields(byte[] data,
    short size,
    int offset) 
 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 short getRow() 
 public short getSid() 
 public double getValue() 
    get the calculated value of the formula
 public short getXFIndex() 
 public boolean isAfter(CellValueRecordInterface i) 
 public boolean isBefore(CellValueRecordInterface i) 
 public boolean isEqual(CellValueRecordInterface i) 
 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 byte[] serialize() 
    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 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 setRow(short row) 
 public  void setValue(double value) 
    set the calculated value of the formula
 public  void setXFIndex(short xf) 
 protected  void validateSid(short id) 
    called by constructor, should throw runtime exception in the event of a record passed with a differing ID.