|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.read.biff.NumberValue
A numerical cell value, initialized indirectly from a multiple biff record rather than directly from the binary data
Field Summary | |
private CellFormat |
cellFormat
The raw cell format |
private int |
column
The column containing this number |
private static java.text.DecimalFormat |
defaultFormat
The format in which to return this number as a string |
private java.text.NumberFormat |
format
The cell format |
private FormattingRecords |
formattingRecords
A handle to the formatting records |
private boolean |
initialized
A flag to indicate whether this object's formatting things have been initialized |
private int |
row
The row containing this number |
private SheetImpl |
sheet
A handle to the sheet |
private double |
value
The value of this number |
private int |
xfIndex
The index to the XF Record |
Constructor Summary | |
NumberValue(int r,
int c,
double val,
int xfi,
FormattingRecords fr,
SheetImpl si)
Constructs this number |
Method Summary | |
CellFormat |
getCellFormat()
Gets the cell format |
int |
getColumn()
Accessor for the column |
java.lang.String |
getContents()
Accessor for the contents as a string |
java.text.NumberFormat |
getNumberFormat()
Gets the NumberFormat used to format this cell. |
int |
getRow()
Accessor for the row |
CellType |
getType()
Accessor for the cell type |
double |
getValue()
Accessor for the value |
boolean |
isHidden()
Determines whether or not this cell has been hidden |
(package private) void |
setNumberFormat(java.text.NumberFormat f)
Sets the format for the number based on the Excel spreadsheets' format. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int row
private int column
private double value
private java.text.NumberFormat format
private CellFormat cellFormat
private int xfIndex
private FormattingRecords formattingRecords
private boolean initialized
private SheetImpl sheet
private static java.text.DecimalFormat defaultFormat
Constructor Detail |
public NumberValue(int r, int c, double val, int xfi, FormattingRecords fr, SheetImpl si)
c
- the zero base columnr
- the zero based rowval
- the valuesi
- the sheetMethod Detail |
final void setNumberFormat(java.text.NumberFormat f)
f
- the formatpublic final int getRow()
getRow
in interface Cell
public final int getColumn()
getColumn
in interface Cell
public double getValue()
getValue
in interface NumberCell
public java.lang.String getContents()
getContents
in interface Cell
public CellType getType()
getType
in interface Cell
public CellFormat getCellFormat()
getCellFormat
in interface Cell
public boolean isHidden()
isHidden
in interface Cell
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 |