|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.biff.RecordData | +--jxl.read.biff.CellValue | +--jxl.read.biff.NumberFormulaRecord
A formula's last calculated value
Field Summary | |
private byte[] |
data
The raw data |
private static java.text.DecimalFormat |
defaultFormat
The string format for the double value |
private ExternalSheet |
externalSheet
A handle to the class needed to access external sheets |
private java.text.NumberFormat |
format
The number format |
private java.lang.String |
formulaString
The formula as an excel string |
private NameTable |
nameTable
A handle to the name table |
private double |
value
The last calculated value of the formula |
Fields inherited from class jxl.read.biff.CellValue |
column, formattingRecords, initialized, row, sheet, xfIndex |
Fields inherited from class jxl.biff.RecordData |
code, record |
Constructor Summary | |
NumberFormulaRecord(Record t,
FormattingRecords fr,
ExternalSheet es,
NameTable nt,
SheetImpl si)
Constructs this object from the raw data |
Method Summary | |
java.lang.String |
getContents()
Returns the numerical value as a string |
java.lang.String |
getFormula()
Gets the formula as an excel string |
byte[] |
getFormulaData()
Gets the raw bytes for the formula. |
java.text.NumberFormat |
getNumberFormat()
Gets the NumberFormat used to format this cell. |
CellType |
getType()
Returns the cell type |
double |
getValue()
Interface method which returns the value |
Methods inherited from class jxl.read.biff.CellValue |
getCellFormat, getColumn, getRow, getSheet, getXFIndex, isHidden |
Methods inherited from class jxl.biff.RecordData |
getCode, getRecord |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface jxl.Cell |
getCellFormat, getColumn, getRow, isHidden |
Field Detail |
private double value
private java.text.NumberFormat format
private static final java.text.DecimalFormat defaultFormat
private java.lang.String formulaString
private ExternalSheet externalSheet
private NameTable nameTable
private byte[] data
Constructor Detail |
public NumberFormulaRecord(Record t, FormattingRecords fr, ExternalSheet es, NameTable nt, SheetImpl si)
t
- the raw datafr
- the formatting recordes
- the external sheetnt
- the name tablesi
- the sheetMethod Detail |
public double getValue()
getValue
in interface NumberCell
public java.lang.String getContents()
getContents
in interface Cell
public CellType getType()
getType
in interface Cell
public byte[] getFormulaData()
getFormulaData
in interface FormulaData
public java.lang.String getFormula() throws FormulaException
getFormula
in interface FormulaCell
public java.text.NumberFormat getNumberFormat()
getNumberFormat
in interface NumberCell
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |