Column<AssetPageRow, ComparableImageResource> formatColumn = new Column<AssetPageRow, ComparableImageResource>( new ComparableImageResourceCell() ) {
public ComparableImageResource getValue(AssetPageRow row) {
AssetEditorFactory factory = clientFactory.getAssetEditorFactory();
return new ComparableImageResource( row.getFormat(),
factory.getAssetEditorIcon( row.getFormat() ) );
}
};
columnPicker.addColumn( formatColumn,
new SortableHeader<AssetPageRow, ComparableImageResource>( sortableHeaderGroup,
constants.Format(),
formatColumn ),
true );
Column<AssetPageRow, ComparableImageResource> validColumn = new Column<AssetPageRow, ComparableImageResource>( new ComparableImageResourceCell() ) {
public ComparableImageResource getValue(AssetPageRow row) {
return new ComparableImageResource(row.getValid().toString(), GuvnorImages.INSTANCE.getValidImage(row.getValid()));
}
};
columnPicker.addColumn( validColumn,
new SortableHeader<AssetPageRow, ComparableImageResource >( sortableHeaderGroup,