jxl.write
Class Boolean

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

public class Boolean
extends BooleanRecord
implements WritableCell, BooleanCell

A cell, created by user applications, which contains a boolean (or in some cases an error) value


Field Summary
 
Fields inherited from class jxl.biff.WritableRecordData
maxRecordLength
 
Constructor Summary
  Boolean(BooleanCell nc)
          Constructor used internally by the application when making a writable copy of a spreadsheet that has been read in
  Boolean(int c, int r, boolean val)
          Constructs a boolean value, which, when added to a spreadsheet, will display the specified value at the column/row position indicated.
protected Boolean(int col, int row, Boolean b)
          Copy constructor used for deep copying
  Boolean(int c, int r, boolean val, CellFormat st)
          Constructs a boolean, which, when added to a spreadsheet, will display the specified value at the column/row position with the specified CellFormat.
 
Method Summary
 WritableCell copyTo(int col, int row)
          Implementation of the deep copy function
 void setValue(boolean val)
          Sets the boolean value for this cell
 
Methods inherited from class jxl.write.biff.BooleanRecord
getContents, getData, getType, getValue
 
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
getWritableCellFeatures, setCellFeatures, setCellFormat
 
Methods inherited from interface jxl.Cell
getCellFeatures, getCellFormat, getColumn, getContents, getRow, getType, isHidden
 
Methods inherited from interface jxl.BooleanCell
getValue
 

Constructor Detail

Boolean

public Boolean(int c,
               int r,
               boolean val)
Constructs a boolean value, which, when added to a spreadsheet, will display the specified value at the column/row position indicated.

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

Boolean

public Boolean(int c,
               int r,
               boolean val,
               CellFormat st)
Constructs a boolean, which, when added to a spreadsheet, will display the specified value at the column/row position with the specified CellFormat. The CellFormat may specify font information

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

Boolean

public Boolean(BooleanCell nc)
Constructor used internally by the application when making a writable copy of a spreadsheet that has been read in

Parameters:
nc - the cell to copy

Boolean

protected Boolean(int col,
                  int row,
                  Boolean b)
Copy constructor used for deep copying

Parameters:
col - the column
row - the row
b - the cell to copy
Method Detail

setValue

public void setValue(boolean val)
Sets the boolean value for this cell

Overrides:
setValue in class BooleanRecord
Parameters:
val - the value

copyTo

public WritableCell copyTo(int col,
                           int row)
Implementation of the deep copy function

Specified by:
copyTo in interface WritableCell
Parameters:
col - the column which the new cell will occupy
row - the row which the new cell will occupy
Returns:
a copy of this cell, which can then be added to the sheet