jxl.write.biff
Class BooleanRecord

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

public abstract class BooleanRecord
extends CellValue

A boolean cell's last calculated value


Field Summary
 
Fields inherited from class jxl.biff.WritableRecordData
maxRecordLength
 
Constructor Summary
protected BooleanRecord(BooleanCell nc)
          Constructor used when copying a workbook
protected BooleanRecord(int c, int r, boolean val)
          Constructor invoked by the user API
protected BooleanRecord(int c, int r, boolean val, CellFormat st)
          Overloaded constructor invoked from the API, which takes a cell format
protected BooleanRecord(int c, int r, BooleanRecord br)
          Copy constructor
 
Method Summary
 java.lang.String getContents()
          Returns the numerical value as a string
 byte[] getData()
          Gets the binary data for output to file
 CellType getType()
          Returns the cell type
 boolean getValue()
          Interface method which Gets the boolean value stored in this cell.
protected  void setValue(boolean val)
          Sets the value
 
Methods inherited from class jxl.write.biff.CellValue
addCellFeatures, getCellFeatures, getCellFormat, getColumn, 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

BooleanRecord

protected BooleanRecord(int c,
                        int r,
                        boolean val)
Constructor invoked by the user API

Parameters:
c - the column
r - the row
val - the value

BooleanRecord

protected BooleanRecord(int c,
                        int r,
                        boolean val,
                        CellFormat st)
Overloaded constructor invoked from the API, which takes a cell format

Parameters:
c - the column
r - the row
val - the value
st - the cell format

BooleanRecord

protected BooleanRecord(BooleanCell nc)
Constructor used when copying a workbook

Parameters:
nc - the number to copy

BooleanRecord

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

Parameters:
c - the column
r - the row
br - the record to copy
Method Detail

getValue

public boolean getValue()
Interface method which Gets the boolean value stored in this cell. If this cell contains an error, then returns FALSE. Always query this cell type using the accessor method isError() prior to calling this method

Returns:
TRUE if this cell contains TRUE, FALSE if it contains FALSE or an error code

getContents

public java.lang.String getContents()
Returns the numerical value as a string

Returns:
The numerical value of the formula as a string

getType

public CellType getType()
Returns the cell type

Returns:
The cell type

setValue

protected void setValue(boolean val)
Sets the value

Parameters:
val - the boolean value

getData

public byte[] getData()
Gets the binary data for output to file

Overrides:
getData in class CellValue
Returns:
the binary data