SortableHeaderGroup<QueryPageRow> sortableHeaderGroup) {
Column<QueryPageRow, RuleFormatImageResource> formatColumn = new Column<QueryPageRow, RuleFormatImageResource>( new RuleFormatImageResourceCell() ) {
public RuleFormatImageResource getValue(QueryPageRow row) {
AssetEditorFactory factory = clientFactory.getAssetEditorFactory();
return new RuleFormatImageResource(row.getFormat(), factory.getAssetEditorIcon(row.getFormat()));
}
};
columnPicker.addColumn( formatColumn,
new SortableHeader<QueryPageRow, RuleFormatImageResource>(
sortableHeaderGroup,