jxl.read.biff
Class CellValue

java.lang.Object
  extended byjxl.biff.RecordData
      extended byjxl.read.biff.CellValue
All Implemented Interfaces:
Cell, jxl.read.biff.CellFeaturesAccessor
Direct Known Subclasses:
BaseSharedFormulaRecord, BlankCell

public abstract class CellValue
extends RecordData
implements Cell, jxl.read.biff.CellFeaturesAccessor

Abstract class for all records which actually contain cell values


Constructor Summary
protected CellValue(Record t, FormattingRecords fr, SheetImpl si)
          Constructs this object from the raw cell data
 
Method Summary
 CellFeatures getCellFeatures()
          Accessor for the cell features
 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
 void setCellFeatures(CellFeatures cf)
          Sets the cell features during the reading process
 
Methods inherited from class jxl.biff.RecordData
getCode, getRecord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jxl.Cell
getContents, getType
 

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 SheetImpl getSheet()
Accessor for the sheet

Returns:
the sheet

getCellFeatures

public CellFeatures getCellFeatures()
Accessor for the cell features

Specified by:
getCellFeatures in interface Cell
Returns:
the cell features or NULL if this cell doesn't have any

setCellFeatures

public void setCellFeatures(CellFeatures cf)
Sets the cell features during the reading process

Specified by:
setCellFeatures in interface jxl.read.biff.CellFeaturesAccessor
Parameters:
cf - the cell features