public interface ISortInfo
Table sort information. Used by ISortableTableContentProvider
Modifier and Type | Method and Description |
---|---|
IContentProvider |
getAscendings()
Return content provider for mapping keys to ascending values.
|
Object |
getKey(int ordinal)
Sort key.
|
int |
getOrdinal(Object key)
Sort ordinal associated with specified key.
|
IContentProvider |
getOrdinals()
Return content provider for mapping keys to ordinal values.
|
boolean |
isAscending(int ordinal)
Sort order.
|
boolean |
isAscending(Object key)
Sort order associated with specified key.
|
int |
size()
Return number of sort keys.
|
int size()
Object getKey(int ordinal)
ordinal
- Must be > 0 and <= size()
.IndexOutOfBoundsException
- If ordinal <= 1 or > size()
.boolean isAscending(int ordinal)
ordinal
- Must be > 0 and <= size()
.IndexOutOfBoundsException
- If ordinal <= 1 or > size()
.boolean isAscending(Object key)
key
- the sort key.int getOrdinal(Object key)
key
- sort ordinalIContentProvider getOrdinals()
IContentProvider getAscendings()