tapestry-contrib/src/java/org/apache/tapestry/contrib/table/components/inserted/SimpleTableColumnFormComponent.java [90:113]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    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");
        }

        return objImageAsset;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tapestry-contrib/src/java/org/apache/tapestry/contrib/table/components/inserted/SimpleTableColumnComponent.java [103:126]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    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");
        }

        return objImageAsset;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



