jxl.read.biff
Class CellValue

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.read.biff.CellValue
All Implemented Interfaces:
Cell
Direct Known Subclasses:
BaseSharedFormulaRecord, BlankCell, BooleanFormulaRecord, BooleanRecord, ErrorFormulaRecord, ErrorRecord, FormulaRecord, LabelRecord, LabelSSTRecord, NumberFormulaRecord, NumberRecord, RKRecord, RStringRecord, StringFormulaRecord

public abstract class CellValue
extends RecordData
implements Cell

Abstract class for all records which actually contain cell values


Field Summary
private  int column
          The column number of this cell record
private  XFRecord format
          The cell format
private  FormattingRecords formattingRecords
          A handle to the formatting records, so that we can retrieve the formatting information
private  boolean initialized
          A lazy initialize flag for the cell format
private  int row
          The row number of this cell record
private  SheetImpl sheet
          A handle back to the sheet
private  int xfIndex
          The XF index
 
Fields inherited from class jxl.biff.RecordData
code, record
 
Constructor Summary
protected CellValue(Record t, FormattingRecords fr, SheetImpl si)
          Constructs this object from the raw cell data
 
Method Summary
 CellFormat getCellFormat()
          Gets the CellFormat object for this cell.
 int getColumn()
          Interface method which returns the column number of this cell
 int getRow()
          Interface method which returns the row number of this cell
protected  SheetImpl getSheet()
          Accessor for the sheet
 int getXFIndex()
          Gets the XFRecord corresponding to the index number.
 boolean isHidden()
          Determines whether or not this cell has been hidden
 
Methods inherited from class jxl.biff.RecordData
getCode, getRecord
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface jxl.Cell
getContents, getType
 

Field Detail

row

private int row
The row number of this cell record

column

private int column
The column number of this cell record

xfIndex

private int xfIndex
The XF index

formattingRecords

private FormattingRecords formattingRecords
A handle to the formatting records, so that we can retrieve the formatting information

initialized

private boolean initialized
A lazy initialize flag for the cell format

format

private XFRecord format
The cell format

sheet

private SheetImpl sheet
A handle back to the sheet
Constructor Detail

CellValue

protected CellValue(Record t,
                    FormattingRecords fr,
                    SheetImpl si)
Constructs this object from the raw cell data
Parameters:
t - the raw cell data
fr - the formatting records
si - the sheet containing this cell
Method Detail

getRow

public final int getRow()
Interface method which returns the row number of this cell
Specified by:
getRow in interface Cell
Returns:
the zero base row number

getColumn

public final int getColumn()
Interface method which returns the column number of this cell
Specified by:
getColumn in interface Cell
Returns:
the zero based column number

getXFIndex

public final int getXFIndex()
Gets the XFRecord corresponding to the index number. Used when copying a spreadsheet
Returns:
the xf index for this cell

getCellFormat

public CellFormat getCellFormat()
Gets the CellFormat object for this cell. Used by the WritableWorkbook API
Specified by:
getCellFormat in interface Cell
Returns:
the CellFormat used for this cell

isHidden

public boolean isHidden()
Determines whether or not this cell has been hidden
Specified by:
isHidden in interface Cell
Returns:
TRUE if this cell has been hidden, FALSE otherwise

getSheet

protected final SheetImpl getSheet()
Accessor for the sheet