Class ListColumnExportRenderer<I>
java.lang.Object
net.sf.basedb.clients.web.extensions.list.ListColumnExportRenderer<I>
- All Implemented Interfaces:
Renderer<ListColumnAction<I,?>>
public class ListColumnExportRenderer<I> extends Object implements Renderer<ListColumnAction<I,?>>
Renderer implementation that add formatter and data loader
implementation for a list column that can be exported.
The renderer must be created with a reference to the
ItemContext
that is used by the table exporter. If the ListColumnAction.getExportFormatter()
returns a non-null object, it is stored in the context under the
key export.formatter.exportProperty
. The
renderer also set the export.dataloader.exportProperty
to a ListColumnDataLoader
instance which simply forwards the
call to ListColumnAction.getExportValue(net.sf.basedb.core.DbControl, Object)
.- Since:
- 3.2
- Author:
- nicklas
-
Field Summary
Fields Modifier and Type Field Description private ItemContext
exportContext
-
Constructor Summary
Constructors Constructor Description ListColumnExportRenderer(ItemContext exportContext)
-
Method Summary
Modifier and Type Method Description void
render(ListColumnAction<I,?> action)
Render the action in the client application.