*/
private IconCellDecorator<SafeHtml> getSortDecorator(boolean ascending) {
if (ascending) {
if (sortAscDecorator == null) {
sortAscDecorator =
new IconCellDecorator<SafeHtml>(resources.sortAscending(), new SafeHtmlCell());
}
return sortAscDecorator;
} else {
if (sortDescDecorator == null) {
sortDescDecorator =
new IconCellDecorator<SafeHtml>(resources.sortDescending(), new SafeHtmlCell());
}
return sortDescDecorator;
}
}