3.2.1: 2012-12-13

net.sf.basedb.clients.web.extensions.list
Class ListColumnExportRenderer<I>

java.lang.Object
  extended by 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
private  ItemContext exportContext
           
 
Constructor Summary
ListColumnExportRenderer(ItemContext exportContext)
           
 
Method Summary
 void render(ListColumnAction<I,?> action)
          Render the action in the client application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exportContext

private final ItemContext exportContext
Constructor Detail

ListColumnExportRenderer

public ListColumnExportRenderer(ItemContext exportContext)
Method Detail

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

3.2.1: 2012-12-13