|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.displaytag.model.RowSorter
public class RowSorter
Comparator for rows.
| Constructor Summary | |
|---|---|
RowSorter(int sortedColumnIndex,
java.lang.String beanProperty,
TableDecorator tableDecorator,
boolean ascendingOrder,
java.util.Comparator compar)
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,
java.util.Comparator compar)
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?compar - the comparator to use| 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.Comparatorequals in class java.lang.Objectobject - Object
Comparator.equals(Object)public final int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||