Spreadsheet Toolkit

corpus.excel
Class FormulaComponent

java.lang.Object
  |
  +--corpus.excel.Component
        |
        +--corpus.excel.FormulaComponent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AreaReference, CellReference, Function, Operator, Primitive, WorkBookReference, WorkSheetReference

public abstract class FormulaComponent
extends Component

This is an abstract class the all formula components must extend.

See Also:
Serialized Form

Field Summary
protected  Formula formula
          The Formula that this component resides in.
 
Fields inherited from class corpus.excel.Component
haltOnErrors
 
Constructor Summary
FormulaComponent()
           
 
Method Summary
 Formula getReferingFormula()
           
 javax.swing.tree.DefaultMutableTreeNode parseTree()
          Creates a parseTree for this FormulaComponent and any of its sub components.
 
Methods inherited from class corpus.excel.Component
toHTMLString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

formula

protected Formula formula
The Formula that this component resides in.

Constructor Detail

FormulaComponent

public FormulaComponent()
Method Detail

getReferingFormula

public Formula getReferingFormula()
Returns:
the formula that contains this component.

parseTree

public javax.swing.tree.DefaultMutableTreeNode parseTree()
Creates a parseTree for this FormulaComponent and any of its sub components.

Returns:
A DefaultMutableTreeNode representing this FormulaComponent and any sub components it may have.

Spreadsheet Toolkit

Project Home Page