xl.write
Class Formula
System.Object
xl.biff.RecordData
xl.biff.WritableRecordData
xl.write.biff.CellValue
xl.write.biff.FormulaRecord
xl.write.Formula
- All Implemented Interfaces:
- xl.biff.ByteData, Cell,
xl.biff.FormulaData, WritableCell
- public class Formula
- extends xl.write.biff.FormulaRecord
- implements WritableCell
A cell, created by user applications, which contains a numerical value
Constructor Summary |
Formula(int c,
int r,
System.String form)
Constructs the formula |
Formula(int c,
int r,
System.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 xl.write.biff.FormulaRecord |
getContents, getData, getFormulaData, getType |
Methods inherited from class xl.write.biff.CellValue |
addCellFeatures, getCellFeatures, getCellFormat, getColumn, getRow, getWritableCellFeatures, isHidden, removeComment, setCellFeatures, setCellFormat |
Methods inherited from class xl.biff.WritableRecordData |
getBytes |
Methods inherited from class System.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Formula
public Formula(int c,
int r,
System.String form)
- Constructs the formula
- Parameters:
c
- the columnr
- the rowform
- the formula
Formula
public Formula(int c,
int r,
System.String form,
CellFormat st)
- Constructs a formula
- Parameters:
c
- the columnr
- the rowform
- the formulast
- the cell style
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 occupyrow
- the row which the new cell will occupy
- Returns:
- a copy of this cell, which can then be added to the sheet