|
|||||||||
| 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 |
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 sheet| Method Detail |
final void setNumberFormat(java.text.NumberFormat f)
f - the formatpublic final int getRow()
getRow in interface Cellpublic final int getColumn()
getColumn in interface Cellpublic double getValue()
getValue in interface NumberCellpublic java.lang.String getContents()
getContents in interface Cellpublic CellType getType()
getType in interface Cellpublic CellFormat getCellFormat()
getCellFormat in interface Cellpublic boolean isHidden()
isHidden in interface Cell
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||