jxl.read.biff
Class SharedStringFormulaRecord
java.lang.Object
|
+--jxl.biff.RecordData
|
+--jxl.read.biff.CellValue
|
+--jxl.read.biff.BaseSharedFormulaRecord
|
+--jxl.read.biff.SharedStringFormulaRecord
- All Implemented Interfaces:
- Cell, FormulaCell, FormulaData, LabelCell, StringFormulaCell
- public class SharedStringFormulaRecord
- extends BaseSharedFormulaRecord
- implements LabelCell, FormulaData, StringFormulaCell
A string formula record, manufactured out of the Shared Formula
"optimization"
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
value
private java.lang.String value
- The value of this string formula
formattingRecords
private FormattingRecords formattingRecords
- A handle to the formatting records
SharedStringFormulaRecord
public SharedStringFormulaRecord(Record t,
File excelFile,
FormattingRecords fr,
ExternalSheet es,
SheetImpl si)
- Constructs this string formula
- Parameters:
f
- the formular
- the zero based rowval
- the valuesi
- the sheet
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