jxl.write.biff
Class BlankRecord

java.lang.Object
  extended byjxl.biff.RecordData
      extended byjxl.biff.WritableRecordData
          extended byjxl.write.biff.CellValue
              extended byjxl.write.biff.BlankRecord
All Implemented Interfaces:
ByteData, Cell, WritableCell
Direct Known Subclasses:
Blank

public abstract class BlankRecord
extends CellValue

A blank record, which is used to contain formatting information


Field Summary
 
Fields inherited from class jxl.biff.WritableRecordData
maxRecordLength
 
Constructor Summary
protected BlankRecord(Cell c)
          Constructor used when copying a formatted blank cell from a read only spreadsheet
protected BlankRecord(int c, int r)
          Consructor used when creating a label from the user API
protected BlankRecord(int c, int r, BlankRecord br)
          Copy constructor
protected BlankRecord(int c, int r, CellFormat st)
          Constructor used when creating a label from the API.
 
Method Summary
 java.lang.String getContents()
          Quick and dirty function to return the contents of this cell as a string.
 CellType getType()
          Returns the content type of this cell
 
Methods inherited from class jxl.write.biff.CellValue
addCellFeatures, getCellFeatures, getCellFormat, getColumn, getData, getRow, getSheet, getWritableCellFeatures, isHidden, removeComment, setCellFeatures, setCellFormat
 
Methods inherited from class jxl.biff.WritableRecordData
getBytes
 
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.write.WritableCell
copyTo
 

Constructor Detail

BlankRecord

protected BlankRecord(int c,
                      int r)
Consructor used when creating a label from the user API

Parameters:
c - the column
r - the row

BlankRecord

protected BlankRecord(int c,
                      int r,
                      CellFormat st)
Constructor used when creating a label from the API. This is overloaded to allow formatting information to be passed to the record

Parameters:
c - the column
r - the row
st - the format applied to the cell

BlankRecord

protected BlankRecord(Cell c)
Constructor used when copying a formatted blank cell from a read only spreadsheet

Parameters:
c - the blank cell to copy

BlankRecord

protected BlankRecord(int c,
                      int r,
                      BlankRecord br)
Copy constructor

Parameters:
c - the column
r - the row
Method Detail

getType

public CellType getType()
Returns the content type of this cell

Returns:
the content type for this cell

getContents

public java.lang.String getContents()
Quick and dirty function to return the contents of this cell as a string.

Returns:
the contents of this cell as a string