|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.displaytag.model.RowSorter
Comparator for rows.
| Constructor Summary | |
RowSorter(int sortedColumnIndex,
java.lang.String beanProperty,
TableDecorator tableDecorator,
boolean ascendingOrder)
Initialize a new RowSorter. |
|
| Method Summary | |
int |
compare(java.lang.Object object1,
java.lang.Object object2)
Compares two objects by first fetching a property from each object and then comparing that value. |
boolean |
equals(java.lang.Object object)
Is this Comparator the same as another one? |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RowSorter(int sortedColumnIndex,
java.lang.String beanProperty,
TableDecorator tableDecorator,
boolean ascendingOrder)
sortedColumnIndex - index of the sorted columnbeanProperty - name of the property. If pProperty is null column index is used to get a static cell value
from the row objecttableDecorator - TableDecorator instanceascendingOrder - boolean ascending order?| Method Detail |
public final int compare(java.lang.Object object1,
java.lang.Object object2)
compare in interface java.util.Comparatorobject1 - Objectobject2 - Object
Comparator.compare(Object, Object)public final boolean equals(java.lang.Object object)
equals in interface java.util.Comparatorobject - Object
Comparator.equals(Object)public final int hashCode()
Object.hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||