jxl.read.biff
Class SharedStringFormulaRecord

java.lang.Object
  extended byjxl.biff.RecordData
      extended byjxl.read.biff.CellValue
          extended byjxl.read.biff.BaseSharedFormulaRecord
              extended byjxl.read.biff.SharedStringFormulaRecord
All Implemented Interfaces:
Cell, jxl.read.biff.CellFeaturesAccessor, FormulaCell, FormulaData, LabelCell, StringFormulaCell

public class SharedStringFormulaRecord
extends BaseSharedFormulaRecord
implements LabelCell, FormulaData, StringFormulaCell

A string formula record, manufactured out of the Shared Formula "optimization"


Constructor Summary
SharedStringFormulaRecord(Record t, File excelFile, FormattingRecords fr, ExternalSheet es, WorkbookMethods nt, SheetImpl si, WorkbookSettings ws)
          Constructs this string formula
 
Method Summary
 java.lang.String getContents()
          Accessor for the contents as a string
 byte[] getFormulaData()
          Gets the raw bytes for the formula.
 java.lang.String getString()
          Accessor for the value
 CellType getType()
          Accessor for the cell type
 
Methods inherited from class jxl.read.biff.BaseSharedFormulaRecord
getExternalSheet, getFormula, getNameTable, getRecord, getTokens
 
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.Cell
getCellFeatures, getCellFormat, getColumn, getRow, isHidden
 
Methods inherited from interface jxl.FormulaCell
getFormula
 

Constructor Detail

SharedStringFormulaRecord

public SharedStringFormulaRecord(Record t,
                                 File excelFile,
                                 FormattingRecords fr,
                                 ExternalSheet es,
                                 WorkbookMethods nt,
                                 SheetImpl si,
                                 WorkbookSettings ws)
Constructs this string formula

Parameters:
t - the record
excelFile - the excel file
fr - the formatting record
es - the external sheet
nt - the workbook
si - the sheet
ws - the workbook settings
Method Detail

getString

public java.lang.String getString()
Accessor for the value

Specified by:
getString in interface LabelCell
Returns:
the value

getContents

public java.lang.String getContents()
Accessor for the contents as a string

Specified by:
getContents in interface Cell
Returns:
the value as a string

getType

public CellType getType()
Accessor for the cell type

Specified by:
getType in interface Cell
Returns:
the cell type

getFormulaData

public byte[] getFormulaData()
                      throws FormulaException
Gets the raw bytes for the formula. This will include the parsed tokens array. Used when copying spreadsheets

Specified by:
getFormulaData in interface FormulaData
Returns:
the raw record data
Throws:
FormulaException