|
Bean Builder | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface must be implemented by any DataModel , which needs to be sorted using the Sort class
SortTableModel,
com.adventnet.beans.table.SortTable,
Sort| Method Summary | |
java.lang.Object |
elementAt(int index)
Returns the object at index. |
boolean |
lt(java.lang.Object first,
java.lang.Object second)
Returns true if first < second. |
void |
sort(int sortColumn,
boolean ascending)
Sorts the column |
void |
swap(int i,
int j)
Exchanges the data at indeces i and j. |
| Method Detail |
public java.lang.Object elementAt(int index)
index - The index value in the form of Integer.
public void swap(int i,
int j)
i - The first element to be swapped.j - The second element to be swapped.
public boolean lt(java.lang.Object first,
java.lang.Object second)
first - The first object for validating.second - The second object for validating.
public void sort(int sortColumn,
boolean ascending)
sortColumn - The column position in the form of Integerascending - true,if the element is to be sorted.
|
Bean Builder | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||