|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--spreadsheet.Spreadsheet
| Constructor Summary | |
Spreadsheet()
Constructs a Spreadsheet. |
|
| Method Summary | |
void |
addSpreadsheetListener(SpreadsheetListener sl)
Register a new listener for refresh events. |
float |
calculateFunction(Expression expr)
Enable Functions to calculate arbitrary sub-functions. |
void |
clearFunction()
Clears all existing functions |
void |
clearValues()
Clears all nodes from the hashtable. |
Expression |
getExpression(Cell cell)
Returns the expression of a node identified by a specific cell |
Function |
getFunction(java.lang.String name)
Retrieves a particular function from the spreadsheet. |
float |
getNumericValue(Cell cell)
Returns the floating point equivalent of a cell location. |
java.lang.String |
getValue(Cell c)
Returns the value of a node in the spreadsheet at specific cell. |
void |
insertValue(Cell dest,
java.lang.String value)
Request to insert a given value into a destination cell. |
void |
recalculate(Cell dest)
Request to recalculate the spreadsheet starting from the given cell. |
void |
refresh(CellRegion destRegion)
Request to refresh the given destination cell region |
void |
removeSpreadsheetListener(SpreadsheetListener sl)
de-register a new listener for refresh events. |
void |
setFunction(java.lang.String name,
Function f)
Installs a function to the spreadsheet. |
void |
setValue(Cell dest,
java.lang.String value)
Sets the value of a node given by the string. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Spreadsheet()
| Method Detail |
public void setFunction(java.lang.String name,
Function f)
name - is the name of the desired functionf - is an object that implements this functiongetFunction(java.lang.String),
clearFunction()public Function getFunction(java.lang.String name)
name - is the name of the desired functionsetFunction(java.lang.String, spreadsheet.Function),
clearFunction()public void clearFunction()
getFunction(java.lang.String),
setFunction(java.lang.String, spreadsheet.Function)public java.lang.String getValue(Cell c)
cell - is the target cellpublic Expression getExpression(Cell cell)
cell - is the target cell
public void setValue(Cell dest,
java.lang.String value)
insertValue(spreadsheet.Cell, java.lang.String)public void clearValues()
public float getNumericValue(Cell cell)
cell - is the target cell
public float calculateFunction(Expression expr)
throws FunctionException
expr - is an Expression to be evaluated.
public void insertValue(Cell dest,
java.lang.String value)
setValue(spreadsheet.Cell, java.lang.String)public void recalculate(Cell dest)
dest - is the target cell to start the recalculation.public void refresh(CellRegion destRegion)
destRegion - is a region to be refreshed.public void addSpreadsheetListener(SpreadsheetListener sl)
sl - is a SpreadsheetListener.public void removeSpreadsheetListener(SpreadsheetListener sl)
sl - is a SpreadsheetListener.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||