UIXCollection table = (UIXCollection) tContext.getTable();
List<SortCriterion> criteria = table.getSortCriteria();
// We currently only show anything for the primary sort criterion
if (criteria.size() > 0)
{
SortCriterion criterion = criteria.get(0);
if (property.equals(criterion.getProperty()))
{
return criterion.isAscending() ? SORT_ASCENDING : SORT_DESCENDING;
}
}
return table.isSortable(property) ? SORT_SORTABLE : SORT_NO;
}