net.sf.basedb.clients.web.extensions.list
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
exportContext
private final ItemContext exportContext
ListColumnExportRenderer
public ListColumnExportRenderer(ItemContext exportContext)
render
public void render(ListColumnAction<I,?> action)
- Description copied from interface:
Renderer
- Render the action in the client application.
- Specified by:
render
in interface Renderer<ListColumnAction<I,?>>
- Parameters:
action
- The action to render