| csheets.core.Cell
All known Subclasses: csheets.core.CellImpl, csheets.ext.CellExtension,
Cell | public interface Cell extends Comparable<Cell>,Extensible<Cell>,Serializable(Code) | | A cell in a spreadsheet.
The cell has content, which can be interpreted in
different ways:
- As a formula - The content should consitute a syntactically correct
expression, and begin with an assignment.
- As a value - If the cell contains a formula, the formula is evaluated to
produce a value, provided that the cell does not contain calculation errors
(e.g. division by 0). Otherwise, the content is interpreted as the value.
author: Einar Pehrson |
addCellListener | public void addCellListener(CellListener listener)(Code) | | Registers the given listener on the cell.
Parameters: listener - the listener to be added |
clear | public void clear()(Code) | | Clears the content of the cell.
|
copyFrom | public void copyFrom(Cell source)(Code) | | Copies all data from the source cell to this one.
Parameters: source - the cell from which data should be copied |
getAddress | public Address getAddress()(Code) | | Returns the address of the cell.
the address of the cell |
getCellListeners | public CellListener[] getCellListeners()(Code) | | Returns the listeners that have been registered on the cell.
the listeners that have been registered on the cell |
getContent | public String getContent()(Code) | | Returns the content of the cell, as entered by the user.
the content of the cell |
getDependents | public SortedSet<Cell> getDependents()(Code) | | Returns the dependents of the cell, i.e. the cells that contain a reference
to the cell in their formula.
a set of the cells which depend on the cell |
getFormula | public Formula getFormula()(Code) | | Returns an expression representing the cell's formula.
the cell's formula, or null if the cell does not contain one |
getPrecedents | public SortedSet<Cell> getPrecedents()(Code) | | Returns the precedents of the cell, i.e. the cells that the
formula in the cell references.
a set of the cell's precedents |
getSpreadsheet | public Spreadsheet getSpreadsheet()(Code) | | Returns the spreadsheet to which the cell belongs.
the spreadsheet to which the cell belongs |
getValue | public Value getValue()(Code) | | Returns the value of the cell.
the value of the cell |
moveFrom | public void moveFrom(Cell source)(Code) | | Moves all data from the source cell to this one.
Parameters: source - the cell from which data should be moved |
removeCellListener | public void removeCellListener(CellListener listener)(Code) | | Removes the given listener from the cell.
Parameters: listener - the listener to be removed |
|
|