Class ListColumnExportRenderer<I>
java.lang.Object
net.sf.basedb.util.extensions.AbstractRenderer<ListColumnAction<I,?>>
net.sf.basedb.clients.web.extensions.list.ListColumnExportRenderer<I>
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(ListColumnAction<I, ?> action, Extension<? extends ListColumnAction<I, ?>> ext) Render the action in the client application.Methods inherited from class net.sf.basedb.util.extensions.AbstractRenderer
render
-
Field Details
-
exportContext
-
-
Constructor Details
-
ListColumnExportRenderer
-
-
Method Details
-
render
Description copied from interface:Renderer
Render the action in the client application.The default implementation of this method simply call the
Renderer.render(Action)
method.- Parameters:
action
- The action to render
-