|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectatg.svc.ui.treetable.ReferenceImplementation.ItemComparator
protected class ReferenceImplementation.ItemComparator
The ReferenceImplementation.ItemComparator class performs comparisons between items for the purpose of sorting the table component items.
| Field Summary | |
|---|---|
protected ReferenceImplementation.Context |
mCtx
The page context for evaluating expressions. |
protected boolean |
mIgnoreCase
Flag indicating whether case should be ignored during comparisons. |
protected boolean |
mIsAscending
Flag indicating whehter the direction of the sort should be ascending. |
protected java.lang.String |
mItemAttributeName
The attribute name for the item referenced in the sort value expression for a field. |
protected java.lang.String |
mSortValueExpression
The expression whose object binding contains a field value within the item held in the specified attribute. |
| Constructor Summary | |
|---|---|
ReferenceImplementation.ItemComparator(ReferenceImplementation.Context context,
java.lang.String itemAttributeName,
java.lang.String sortValueExpression,
boolean isAscending,
boolean ignoreCase)
Constructs a new comparator for the specified column, case-sensitivity and sort direction. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two table component items. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Field Detail |
|---|
protected boolean mIgnoreCase
protected boolean mIsAscending
protected ReferenceImplementation.Context mCtx
protected java.lang.String mItemAttributeName
protected java.lang.String mSortValueExpression
| Constructor Detail |
|---|
public ReferenceImplementation.ItemComparator(ReferenceImplementation.Context context,
java.lang.String itemAttributeName,
java.lang.String sortValueExpression,
boolean isAscending,
boolean ignoreCase)
| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatoro1 - The first item to compare.o2 - The second item to compare.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||