|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The DataProvider interface for objects which provides the data and the transaction.
| Method Summary | |
void |
addDataListener(DataListener listener)
Adds a DataListener |
void |
addRow(java.util.Vector vector)
Adds the record |
int |
appendData(java.util.Vector data)
Appends the data |
void |
deleteRow()
Deletes the record |
void |
filterData(java.lang.String filterCriteria)
Fiters the data with specified criteria |
int |
find(java.lang.String condition)
|
int |
find(java.lang.String condition,
int startIndex,
int endIndex)
Finds the record which satisfied the condition between startIndex and end Index, and return the index of the searched record |
int |
findNext()
Returns the index of the record which satisfied the condition after invoking the find() |
void |
fireDataChanged(int eventId,
java.util.Hashtable oldValue,
java.util.Hashtable newValue)
Invokes this method when the data has been changed |
java.util.Vector |
firstRecord()
Moves to the first record and returns it |
int |
getColumnCount()
Returns the total number of columns |
int |
getColumnIndex(java.lang.String colName)
Returns the index of the column colName |
java.util.Vector |
getColumnNames()
Returns the column names |
java.lang.String[] |
getColumnsArray()
Returns the column names |
int |
getColumnType(int colIndex)
Returns the type of the column at the specified index |
Computable |
getComputable()
Gets the Computable object which is used for filtering, searching and other computation operation |
int |
getCurrentIndex()
Returns the current index |
java.util.Vector |
getCurrentRecord()
Returns the current record |
java.util.Vector |
getData()
Fetches the data |
java.util.Vector |
getDataAt(int position)
Returns the record at the specified position |
java.lang.Object |
getDataAt(int rowPosition,
int columnPosition)
Returns the data value at the specified rowPosition and sepecified columnPosition |
int |
getDataCount()
Returns the total number of records |
int |
getDeletedCount()
Returns the total number of the records has been deleted |
int |
getFetchSize()
Gets the total number of records that can be fetched by getData() method call |
java.lang.String |
getFilterCriteria()
Gets the criteria for filtering the data |
int |
getFilteredCount()
Returns the total number of the records has been filtered |
int |
getModifiedCount()
Returns the total number of the records has been modified |
int |
getSkippedRows()
Gets the total number of rows to be skipped while retrieving |
java.util.Vector |
getSortColumns()
Returns the two dimensional vector containing the sort column name and its sorting order as each element |
java.lang.String |
getSortCriteria()
Gets the criteria for sorting the data |
int |
insertDataAt(java.util.Vector data,
int position)
Inserts the data at the specified position |
boolean |
isAppendDataOnFetchNext()
Returns whether the next fetched data is appended or replaced to the existing data |
boolean |
isFetchNext()
Determines whether fetching the next rows or not |
boolean |
isFilterState()
Gets the filtering enability |
boolean |
isSaveOnlyFilteredData()
Gets the save operation criteria |
java.util.Vector |
lastRecord()
Moves to the last record and returns it |
void |
modifyDataAt(java.util.Vector data,
int position)
Modifies the data at specified position |
boolean |
nextData()
If more data can be fetched, it fetches and return true, otherwise return false |
java.util.Vector |
nextRecord()
Moves to the next record and returns it |
java.util.Vector |
previousRecord()
Moves to the previous record and returns it |
void |
refreshData()
Refreshes the fetched data. |
void |
removeAll()
Removes all the records |
void |
removeAt(int position)
Removes the record at specified position |
void |
removeDataListener(DataListener listener)
Removes a DataListener |
void |
removeRange(int startPos,
int endPos)
Removes the records between start position to end position |
void |
retrieve()
Retrives the data |
boolean |
rollbackModifications()
Rolls back the modifications |
void |
save()
Saves the transaction |
boolean |
saveModifications()
Saves the modifications |
java.util.Vector |
scrollToRow(int index)
Moves to the record at the specified index and returns it |
void |
setAppendDataOnFetchNext(boolean b)
Sets whether the next fetched data is appended or replaced to the existing data |
void |
setData(java.util.Vector data)
Sets the data |
void |
setDataArray(java.util.Vector[] arrayData)
Sets the data |
void |
setFetchSize(int size)
Sets the total number of records that can be fetched by getData() method call |
void |
setFilterCriteria(java.lang.String filter)
Sets the criteria for filtering the data, the criteria is any expression (arithmetical/database related), |
void |
setFilterState(boolean filterState)
Sets the filtering enability |
void |
setSaveOnlyFilteredData(boolean b)
Sets the save operation criteria |
void |
setSkippedRows(int n)
Sets the total number of rows to be skipped while retrieving |
void |
setSortCriteria(java.lang.String sortCriteria)
Sets the criteria for sorting the data, the criteria includes the column names and the its sorting order, for example col1:true,col2:false,col3:true |
void |
sortData(int[] colIndex)
|
void |
sortData(int[] colIndex,
boolean[] ordering)
|
void |
sortData(int[] colIndex,
boolean[] ordering,
int startIndex,
int endIndex)
Sorts the data for specified columns at column indices with specified sorting order and range of the records |
void |
sortData(int[] colIndex,
int startIndex,
int endIndex)
|
void |
sortData(java.lang.String[] colName)
|
void |
sortData(java.lang.String[] colName,
boolean[] ordering)
|
void |
sortData(java.lang.String[] colName,
boolean[] ordering,
int startIndex,
int endIndex)
Sorts the data for specified columns with specified sorting order and range of the records |
void |
sortData(java.lang.String[] colName,
int startIndex,
int endIndex)
|
| Method Detail |
public void addRow(java.util.Vector vector)
vector - the values of the recordpublic void deleteRow()
public void save()
public java.util.Vector firstRecord()
public java.util.Vector lastRecord()
public java.util.Vector nextRecord()
public java.util.Vector previousRecord()
public java.util.Vector scrollToRow(int index)
index - the record index to be scrolled
public void refreshData()
public boolean nextData()
public java.util.Vector getData()
public java.util.Vector getDataAt(int position)
public java.lang.Object getDataAt(int rowPosition,
int columnPosition)
rowPosition - the position of the rowcolumnPosition - the position of the column
public int getDataCount()
public int appendData(java.util.Vector data)
data - the vector contains the record
public int insertDataAt(java.util.Vector data,
int position)
data - the vector contains the recordposition - the position of the data to be inserted
public void modifyDataAt(java.util.Vector data,
int position)
data - the vector contains the recordposition - the position of the data to be modifiedpublic void setData(java.util.Vector data)
data - the two dimension vector contains the datapublic void setDataArray(java.util.Vector[] arrayData)
arrayData - the array of the vector contains the datapublic void removeAll()
public void removeAt(int position)
position - the position of the data to be removed
public void removeRange(int startPos,
int endPos)
startPos - the start position of the dataendPos - the from position of the datapublic int getColumnCount()
public java.util.Vector getColumnNames()
public java.lang.String[] getColumnsArray()
public int getColumnIndex(java.lang.String colName)
colName - the name of the column
public int getColumnType(int colIndex)
colIndex - the index of the column
public int getCurrentIndex()
public java.util.Vector getCurrentRecord()
public void retrieve()
public Computable getComputable()
public void setAppendDataOnFetchNext(boolean b)
b - true to append the next fetched data, false to replacepublic boolean isAppendDataOnFetchNext()
public void setSkippedRows(int n)
n - the number of rows to be skipped while retrievingpublic int getSkippedRows()
public void setFetchSize(int size)
size - the total number of records that can be fetchedpublic int getFetchSize()
public boolean isFetchNext()
public void setSaveOnlyFilteredData(boolean b)
b - true to save only filtered data, false to save all datapublic boolean isSaveOnlyFilteredData()
public void setFilterState(boolean filterState)
filterState - true, if the filtering is enabledpublic boolean isFilterState()
public void setFilterCriteria(java.lang.String filter)
filter - the filter criteriapublic java.lang.String getFilterCriteria()
public void filterData(java.lang.String filterCriteria)
filterCriteria - the criteria to be processed to filter the datapublic void setSortCriteria(java.lang.String sortCriteria)
sortCriteria - the sort criteriapublic java.lang.String getSortCriteria()
public java.util.Vector getSortColumns()
public void sortData(int[] colIndex)
public void sortData(java.lang.String[] colName)
public void sortData(int[] colIndex,
boolean[] ordering)
public void sortData(java.lang.String[] colName,
boolean[] ordering)
public void sortData(int[] colIndex,
int startIndex,
int endIndex)
public void sortData(java.lang.String[] colName,
int startIndex,
int endIndex)
public void sortData(int[] colIndex,
boolean[] ordering,
int startIndex,
int endIndex)
colIndex - the indices of the columnsordering - the sorting criteria for related columns, default all truestartIndex - the index of the record from which the sorting is startedendIndex - the index of the record upto which the sorting is done
public void sortData(java.lang.String[] colName,
boolean[] ordering,
int startIndex,
int endIndex)
colName - the names of the columnsordering - the sorting criteria for related columns, default all truestartIndex - the index of the record from which the sorting is startedendIndex - the index of the record upto which the sorting is donepublic int find(java.lang.String condition)
public int find(java.lang.String condition,
int startIndex,
int endIndex)
condition - the seraching criteriastartIndex - the index of the record from which the searching is started, default 0endIndex - the index of the record upto which the searching is done, default total number of records
public int findNext()
public int getModifiedCount()
public int getFilteredCount()
public int getDeletedCount()
public boolean rollbackModifications()
public boolean saveModifications()
public void addDataListener(DataListener listener)
listener - the DataListener to be addedpublic void removeDataListener(DataListener listener)
listener - the DataListener to be removed
public void fireDataChanged(int eventId,
java.util.Hashtable oldValue,
java.util.Hashtable newValue)
eventId - the data event idoldValue - the old data valuesnewValue - the new (changed) data values
|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||