jxl.write.biff
Class BooleanRecord

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.biff.WritableRecordData
              |
              +--jxl.write.biff.CellValue
                    |
                    +--jxl.write.biff.BooleanRecord
All Implemented Interfaces:
ByteData, Cell, WritableCell
Direct Known Subclasses:
Boolean

public class BooleanRecord
extends CellValue

A boolean cell's last calculated value


Field Summary
private  boolean value
          The boolean value of this cell.
 
Fields inherited from class jxl.write.biff.CellValue
column, format, formattingRecords, referenced, row, sheet
 
Fields inherited from class jxl.biff.WritableRecordData
maxRecordLength
 
Fields inherited from class jxl.biff.RecordData
code, record
 
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
 
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
decrementColumn, decrementRow, getCellFormat, getColumn, getRow, getXFIndex, incrementColumn, incrementRow, isHidden, isReferenced, setCellDetails, setCellFormat
 
Methods inherited from class jxl.biff.WritableRecordData
getBytes, handleContinueRecords
 
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
 

Field Detail

value

private boolean value
The boolean value of this cell. If this cell represents an error, this will be false
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
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