com.jrefinery.workbook
Class FormulaCell

java.lang.Object
  |
  +--com.jrefinery.workbook.Cell
        |
        +--com.jrefinery.workbook.FormulaCell
All Implemented Interfaces:
java.lang.Comparable

public class FormulaCell
extends Cell

A cell that contains a formula.


Fields inherited from class com.jrefinery.workbook.Cell
column, content, DATE, EXPRESSION, LABEL, row, VALUE, valueFormat, valueType
 
Constructor Summary
FormulaCell(java.lang.String formula, int column, int row)
          Standard constructor.
 
Method Summary
 void writeCell(java.io.PrintStream out, java.lang.String indent)
          Write the cell element.
 
Methods inherited from class com.jrefinery.workbook.Cell
compareTo, getSerialNumber, writeContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormulaCell

public FormulaCell(java.lang.String formula,
                   int column,
                   int row)
Standard constructor.
Parameters:
formula - The formula.
column - The column.
row - The row.
Method Detail

writeCell

public void writeCell(java.io.PrintStream out,
                      java.lang.String indent)
Write the cell element. So far, it will work for labels, numbers and expressions. Of course, the intention is to ensure that it works for all types.
Overrides:
writeCell in class Cell
Parameters:
out - The output stream.
indent - The indentation.