|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.elegantj.data.comp.computedfield.ComputableField
This bean provides the expression executor to parse the expression (arithmetical/database related) and to execute it. It also provides the support to the MethodsClass to get the functionality of the database related activities.
| Constructor Summary | |
ComputableField()
Creates a ComputedField |
|
| Method Summary | |
java.lang.Object |
executeExp()
Executes the expression |
java.util.Vector |
getColumnData(int colIndex)
Returns the column values of the column at colIndex |
java.util.Vector |
getColumnData(java.lang.String colName)
Returns the column values of the column colName |
int |
getColumnIndex(java.lang.String colName)
Returns the index for the specified column |
java.util.Vector |
getColumnNames()
Returns the column names |
int |
getCurrentIndex()
Returns the current index |
int |
getCurrentPage()
Returns the current vertical page index |
int |
getCurrentPageAcross()
Returns the current horizontal page index |
java.util.Vector |
getCurrentRecord()
Returns the current record |
java.util.Vector |
getData()
Returns the data for computation |
java.lang.String |
getExpression()
Gets the expression string to be executed |
java.lang.String[] |
getMethods()
Returns the valid methods to use in the expression |
java.lang.String[] |
getOperators()
Returns the valid operators to use in the expression |
int |
getPageAcrossCount()
Returns the horizontal page count |
int |
getPageCount()
Returns the vertical page count |
void |
setColumnNames(java.util.Vector columnNames)
Sets the column names |
void |
setCurrentIndex(int index)
Sets the current index |
void |
setCurrentPage(int n)
Sets the current vertical page index |
void |
setCurrentPageAcross(int n)
Sets the current horizontal page index |
void |
setData(java.util.Vector data)
Sets the data for computation |
void |
setExpression(java.lang.String exp)
Sets the expression string to be executed |
void |
setPageAcrossCount(int n)
Sets the horizontal page count |
void |
setPageCount(int n)
Sets the vertical page count |
boolean |
verifyExp()
Checks the expression whether it is valid or not |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ComputableField()
| Method Detail |
public void setExpression(java.lang.String exp)
setExpression in interface Computableexp - the expression stringpublic java.lang.String getExpression()
getExpression in interface Computablepublic boolean verifyExp()
verifyExp in interface Computablepublic java.lang.Object executeExp()
executeExp in interface Computablepublic void setData(java.util.Vector data)
setData in interface Computabledata - the vector contains the datapublic java.util.Vector getData()
getData in interface Computablepublic void setColumnNames(java.util.Vector columnNames)
setColumnNames in interface ComputablecolumnNames - the vector contains the column namespublic java.util.Vector getColumnNames()
getColumnNames in interface Computablepublic void setCurrentIndex(int index)
setCurrentIndex in interface Computableindex - the index of the record ,being proccessedpublic int getCurrentIndex()
getCurrentIndex in interface Computablepublic java.util.Vector getCurrentRecord()
getCurrentRecord in interface Computablepublic java.util.Vector getColumnData(java.lang.String colName)
getColumnData in interface ComputablecolName - the column name
public int getColumnIndex(java.lang.String colName)
colName - the name of the column
public java.util.Vector getColumnData(int colIndex)
getColumnData in interface ComputablecolIndex - the column index
public void setCurrentPage(int n)
setCurrentPage in interface Computablen - the current vertical page indexpublic int getCurrentPage()
getCurrentPage in interface Computablepublic void setPageCount(int n)
setPageCount in interface Computablen - the vertical page countpublic int getPageCount()
getPageCount in interface Computablepublic void setCurrentPageAcross(int n)
setCurrentPageAcross in interface Computablen - the current horizontal page indexpublic int getCurrentPageAcross()
getCurrentPageAcross in interface Computablepublic void setPageAcrossCount(int n)
setPageAcrossCount in interface Computablen - the horizontal page countpublic int getPageAcrossCount()
getPageAcrossCount in interface Computablepublic java.lang.String[] getOperators()
getOperators in interface Computablepublic java.lang.String[] getMethods()
getMethods in interface Computable
|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||