|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.tables.treatments.SortTableTreatment
The interface that all treatment must implement.
| Nested Class Summary | |
class |
SortTableTreatment.RowIteratorComparator
|
| Field Summary | |
protected java.lang.Object |
parameter
Stores the optional treatment parameter. |
| Constructor Summary | |
SortTableTreatment()
|
|
SortTableTreatment(java.lang.Object param)
Initialize a new TableTreatment, with a parameter. |
|
| Method Summary | |
protected int |
comparator(Table.RowIterator a,
Table.RowIterator b)
Compares two instances of RowIterator. |
java.lang.Object |
getParameter()
Returns a parameter that could have been initialized when the treatment was created. |
protected int |
getSortColumnIndex()
|
protected Table |
getSource()
|
void |
setSortColumn(Table source,
java.lang.String idf)
Sets the column index on which the sort will be made. |
Table |
sort(Table source,
java.lang.String columnIdentifier)
Returns a table which is sorted according to the identified column. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.Object parameter
| Constructor Detail |
public SortTableTreatment(java.lang.Object param)
getParameter()public SortTableTreatment()
| Method Detail |
public java.lang.Object getParameter()
protected Table getSource()
public void setSortColumn(Table source,
java.lang.String idf)
throws InvalidColumnException
InvalidColumnExceptionprotected final int getSortColumnIndex()
public Table sort(Table source,
java.lang.String columnIdentifier)
throws TreatmentInterrupted,
InvalidColumnException
TreatmentInterrupted
InvalidColumnException
protected int comparator(Table.RowIterator a,
Table.RowIterator b)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||