* render the sort arrows
*/
@Override
public LabelStack getConfigLabelsByPosition(int columnPosition,
int rowPosition) {
LabelStack configLabels = super.getConfigLabelsByPosition(
columnPosition, rowPosition);
if (sortModel != null) {
int columnIndex = getColumnIndexByPosition(columnPosition);
if (sortModel.isColumnIndexSorted(columnIndex)) {
String sortConfig = DefaultSortConfiguration.SORT_SEQ_CONFIG_TYPE
+ sortModel.getSortOrder(columnIndex);
configLabels.addLabelOnTop(sortConfig);
SortDirectionEnum sortDirection = sortModel
.getSortDirection(columnIndex);
switch (sortDirection) {
case ASC:
configLabels
.addLabelOnTop(DefaultSortConfiguration.SORT_UP_CONFIG_TYPE);
break;
case DESC:
configLabels
.addLabelOnTop(DefaultSortConfiguration.SORT_DOWN_CONFIG_TYPE);
break;
}
}
}