public IAsset getSortImage()
{
IAsset objImageAsset;
IRequestCycle objCycle = getPage().getRequestCycle();
ITableSortingState objSortingState = getTableModel().getSortingState();
if (objSortingState.getSortOrder()
== ITableSortingState.SORT_ASCENDING)
{
objImageAsset =
(IAsset) objCycle.getAttribute(
TableColumns.TABLE_COLUMN_ARROW_UP_ATTRIBUTE);
if (objImageAsset == null)
objImageAsset = getAsset("sortUp");
}
else
{
objImageAsset =
(IAsset) objCycle.getAttribute(
TableColumns.TABLE_COLUMN_ARROW_DOWN_ATTRIBUTE);
if (objImageAsset == null)
objImageAsset = getAsset("sortDown");
}