jxl.read.biff
Class BaseSharedFormulaRecord

java.lang.Object
  extended byjxl.biff.RecordData
      extended byjxl.read.biff.CellValue
          extended byjxl.read.biff.BaseSharedFormulaRecord
All Implemented Interfaces:
Cell, jxl.read.biff.CellFeaturesAccessor, FormulaData
Direct Known Subclasses:
SharedDateFormulaRecord, SharedErrorFormulaRecord, SharedNumberFormulaRecord, SharedStringFormulaRecord

public abstract class BaseSharedFormulaRecord
extends CellValue
implements FormulaData

A base class for shared formula records


Constructor Summary
BaseSharedFormulaRecord(Record t, FormattingRecords fr, ExternalSheet es, WorkbookMethods nt, SheetImpl si, int pos)
          Constructs this number
 
Method Summary
protected  ExternalSheet getExternalSheet()
          Access for the external sheet
 java.lang.String getFormula()
          Gets the formula as an excel string
protected  WorkbookMethods getNameTable()
          Access for the name table
 Record getRecord()
          In case the shared formula is not added for any reason, we need to expose the raw record data , in order to try again
protected  byte[] getTokens()
          Accessor for the tokens which make up this formula
 
Methods inherited from class jxl.read.biff.CellValue
getCellFeatures, getCellFormat, getColumn, getRow, getSheet, getXFIndex, isHidden, setCellFeatures
 
Methods inherited from class jxl.biff.RecordData
getCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jxl.biff.FormulaData
getFormulaData
 
Methods inherited from interface jxl.Cell
getCellFeatures, getCellFormat, getColumn, getContents, getRow, getType, isHidden
 

Constructor Detail

BaseSharedFormulaRecord

public BaseSharedFormulaRecord(Record t,
                               FormattingRecords fr,
                               ExternalSheet es,
                               WorkbookMethods nt,
                               SheetImpl si,
                               int pos)
Constructs this number

Parameters:
t - the record
fr - the formatting records
es - the external sheet
nt - the name table
si - the sheet
pos - the position of the next record in the file
Method Detail

getFormula

public java.lang.String getFormula()
                            throws FormulaException
Gets the formula as an excel string

Returns:
the formula as an excel string
Throws:
FormulaException

getTokens

protected final byte[] getTokens()
Accessor for the tokens which make up this formula

Returns:
the tokens

getExternalSheet

protected final ExternalSheet getExternalSheet()
Access for the external sheet

Returns:
the external sheet

getNameTable

protected final WorkbookMethods getNameTable()
Access for the name table

Returns:
the name table

getRecord

public Record getRecord()
In case the shared formula is not added for any reason, we need to expose the raw record data , in order to try again

Overrides:
getRecord in class RecordData
Returns:
the record data from the base class