|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.formulae.TableReference
TableReference selects a single cell from a JCTableDataModel
Field Summary | |
protected com.klg.jclass.util.formulae.Expression |
column
The column location of the cell in the table |
protected Point |
location
A Point identifying the cell location, if it can be computed |
protected com.klg.jclass.util.formulae.Expression |
row
The row location of the cell in the table |
protected com.klg.jclass.util.JCTableDataModel |
tableData
The table data from which the data is referenced |
Constructor Summary | |
TableReference(com.klg.jclass.util.JCTableDataModel tdm,
com.klg.jclass.util.formulae.Expression row,
com.klg.jclass.util.formulae.Expression column)
Create a table reference from a table data model and the row/column location of a cell |
|
TableReference(com.klg.jclass.util.JCTableDataModel tdm,
int rowNum,
int columnNum)
Create a table value from a table data model and cell co-ordinates |
|
TableReference(com.klg.jclass.util.JCTableDataModel tdm,
Point location)
Create a table value from a table data model and cell location |
Method Summary | |
Object |
clone()
Return an Expression which is a clone of this TableReference (NOTE: The referenced table data is not cloned, but if the location contains any parametrized values they are substituted with their current values) |
protected com.klg.jclass.util.formulae.Expression |
copy(boolean fixLocation)
Create a copy of this table reference (not necessarily a clone, since we may choose to use hard co-ordinates rather than parametric ones |
boolean |
equals(Object obj)
Compare the given object and this TableReference, given that equality implies both objects reference the same entry in the same table. |
com.klg.jclass.util.formulae.Result |
evaluate()
Satisfy the Expression interface |
com.klg.jclass.util.formulae.Expression |
getColumn()
Get the column coordinate of the referenced cell |
Point |
getLocation()
Return the location of the table cell being used by this expression |
com.klg.jclass.util.formulae.Expression |
getRow()
Get the row coordinate of the referenced cell |
void |
setColumn(com.klg.jclass.util.formulae.Expression column)
Set the column coordinate of the referenced cell |
void |
setLocation(Point newLocation)
Set the location of the cell accessed by this expression |
void |
setRow(com.klg.jclass.util.formulae.Expression row)
Set the row coordinate of the referenced cell |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.util.JCTableDataModel tableData
protected com.klg.jclass.util.formulae.Expression row
protected com.klg.jclass.util.formulae.Expression column
protected Point location
Constructor Detail |
public TableReference(com.klg.jclass.util.JCTableDataModel tdm, int rowNum, int columnNum)
public TableReference(com.klg.jclass.util.JCTableDataModel tdm, Point location)
location
- The location of the cellpublic TableReference(com.klg.jclass.util.JCTableDataModel tdm, com.klg.jclass.util.formulae.Expression row, com.klg.jclass.util.formulae.Expression column)
row
- The row in which the cell appearscolumn
- The column in which the cell appearsMethod Detail |
public com.klg.jclass.util.formulae.Result evaluate()
evaluate
in interface Expression
public Object clone()
clone
in interface Expression
clone
in class Object
public Point getLocation()
public void setLocation(Point newLocation)
newLocation
- The location of the cell in the table datapublic com.klg.jclass.util.formulae.Expression getColumn()
public void setColumn(com.klg.jclass.util.formulae.Expression column)
column
- The column location of the cell in the tablepublic com.klg.jclass.util.formulae.Expression getRow()
public void setRow(com.klg.jclass.util.formulae.Expression row)
row
- The row location of the cell in the tablepublic boolean equals(Object obj)
equals
in class Object
obj
- the object whose equality with this TableReference is tested
protected com.klg.jclass.util.formulae.Expression copy(boolean fixLocation)
fixLocation
- Indicates if the row and column positions are to be
evaluated before being set
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |