org.olat.core.gui.components.table
Interface CustomCellRenderer

All Known Implementing Classes:
CustomCssCellRenderer, IconedTypeCellRenderer, IndentedNodeRenderer, IndentedStatisticNodeRenderer, RepositoryEntryIconRenderer, TotalColumnRenderer

public interface CustomCellRenderer

Description:
classes implementing this interface can determine how cells of a table look. right now, if action != null, the whole cell (the value the method render of this class produces) is embraced by an

Author:
Felix Jost

Method Summary
 void render(StringOutput sb, Renderer renderer, java.lang.Object val, java.util.Locale locale, int alignment, java.lang.String action)
          this method is called by CustomRenderColumnDescriptor.
 

Method Detail

render

void render(StringOutput sb,
            Renderer renderer,
            java.lang.Object val,
            java.util.Locale locale,
            int alignment,
            java.lang.String action)
this method is called by CustomRenderColumnDescriptor.

Parameters:
sb - the StringOuput to put the rendering into
renderer - the renderer to use
val - the value from the tablemodel to be rendered.
locale - the locale to use
alignment - the alignment (see ColumnDescriptor.ALIGNMENT...)
action - the action. if not null, then the output should be clickable and produce a command uri with action