ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.comp.computedfield
Interface Computable

All Known Implementing Classes:
ComputableField, ComputedField

public interface Computable

A Computable interface which provides the functionality for computation


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 name)
          Fetches the specified column's data
 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
 

Method Detail

setExpression

public void setExpression(java.lang.String exp)
Sets the expression string to be executed

Parameters:
exp - the expression string

getExpression

public java.lang.String getExpression()
Gets the expression string to be executed

Returns:
the expression string

verifyExp

public boolean verifyExp()
Checks the expression whether it is valid or not

Returns:
true, if an expression is valid, otherwise false

executeExp

public java.lang.Object executeExp()
Executes the expression

Returns:
the result of the expression

setData

public void setData(java.util.Vector data)
Sets the data for computation

Parameters:
data - the vector contains the data

getData

public java.util.Vector getData()
Returns the data for computation

Returns:
the vector contains the data

setColumnNames

public void setColumnNames(java.util.Vector columnNames)
Sets the column names

Parameters:
columnNames - the vector contains the column names

getColumnNames

public java.util.Vector getColumnNames()
Returns the column names

Returns:
the vector contains the column names

setCurrentIndex

public void setCurrentIndex(int index)
Sets the current index

Parameters:
index - the index of the record ,being proccessed

getCurrentIndex

public int getCurrentIndex()
Returns the current index

Returns:
the index of the record ,being proccessed

getCurrentRecord

public java.util.Vector getCurrentRecord()
Returns the current record

Returns:
the vector containing the current record values

getColumnData

public java.util.Vector getColumnData(java.lang.String name)
Fetches the specified column's data

Parameters:
name - a column name
Returns:
the vector contains the column's data

getColumnData

public java.util.Vector getColumnData(int colIndex)
Returns the column values of the column at colIndex

Parameters:
colIndex - the column index
Returns:
the vector of the column values

setCurrentPage

public void setCurrentPage(int n)
Sets the current vertical page index

Parameters:
n - the current vertical page index

getCurrentPage

public int getCurrentPage()
Returns the current vertical page index

Returns:
the current vertical page index

setPageCount

public void setPageCount(int n)
Sets the vertical page count

Parameters:
n - the vertical page count

getPageCount

public int getPageCount()
Returns the vertical page count

Returns:
the vertical page count

setCurrentPageAcross

public void setCurrentPageAcross(int n)
Sets the current horizontal page index

Parameters:
n - the current horizontal page index

getCurrentPageAcross

public int getCurrentPageAcross()
Returns the current horizontal page index

Returns:
the current horizontal page index

setPageAcrossCount

public void setPageAcrossCount(int n)
Sets the horizontal page count

Parameters:
n - the horizontal page count

getPageAcrossCount

public int getPageAcrossCount()
Returns the horizontal page count

Returns:
the horizontal page count

getOperators

public java.lang.String[] getOperators()
Returns the valid operators to use in the expression

Returns:
the array of the operators

getMethods

public java.lang.String[] getMethods()
Returns the valid methods to use in the expression

Returns:
the array of the method names

ElegantJ Data Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.