jxl.write
Class Formula
java.lang.Object
jxl.biff.RecordData
jxl.biff.WritableRecordData
jxl.write.biff.CellValue
jxl.write.biff.FormulaRecord
jxl.write.Formula
- All Implemented Interfaces:
- ByteData, Cell, FormulaData, WritableCell
- public class Formula
- extends FormulaRecord
- implements WritableCell
A cell, created by user applications, which contains a numerical value
|
Constructor Summary |
protected |
Formula(int c,
int r,
Formula f)
Copy constructor |
|
Formula(int c,
int r,
java.lang.String form)
Constructs the formula |
|
Formula(int c,
int r,
java.lang.String form,
CellFormat st)
Constructs a formula |
|
Method Summary |
WritableCell |
copyTo(int col,
int row)
Implementation of the deep copy function |
| Methods inherited from class jxl.write.biff.CellValue |
addCellFeatures, getCellFeatures, getCellFormat, getColumn, getRow, getSheet, getWritableCellFeatures, isHidden, removeComment, setCellFeatures, setCellFormat |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Formula
public Formula(int c,
int r,
java.lang.String form)
- Constructs the formula
- Parameters:
c - the columnr - the rowform - the formula
Formula
public Formula(int c,
int r,
java.lang.String form,
CellFormat st)
- Constructs a formula
- Parameters:
c - the columnr - the rowform - the formulast - the cell style
Formula
protected Formula(int c,
int r,
Formula f)
- Copy constructor
- Parameters:
c - the columnr - the rowf - the record to copy
copyTo
public WritableCell copyTo(int col,
int row)
- Implementation of the deep copy function
- Specified by:
copyTo in interface WritableCell- Overrides:
copyTo in class FormulaRecord
- Parameters:
col - the column which the new cell will occupyrow - the row which the new cell will occupy
- Returns:
- a copy of this cell, which can then be added to the sheet