org.apache.tapestry.contrib.table.model.simple
Class SimpleTableColumnRendererSource

java.lang.Object
  extended by org.apache.tapestry.contrib.table.model.simple.SimpleTableColumnRendererSource
All Implemented Interfaces:
Serializable, ITableRendererSource

public class SimpleTableColumnRendererSource
extends Object
implements ITableRendererSource

This is a simple implementation of ITableRendererSource that returns a standard renderer of a column header.

This implementation requires that the column passed is of type SimpleTableColumn

Since:
2.3
Version:
$Id: SimpleTableColumnRendererSource.java 385802 2006-03-14 13:47:10Z jkuhnert $
Author:
mindbridge
See Also:
AbstractTableColumn, Serialized Form

Constructor Summary
SimpleTableColumnRendererSource()
           
 
Method Summary
 IRender getRenderer(IRequestCycle objCycle, ITableModelSource objSource, ITableColumn objColumn, Object objRow)
          Returns a renderer to present the data of the row in the given column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTableColumnRendererSource

public SimpleTableColumnRendererSource()
Method Detail

getRenderer

public IRender getRenderer(IRequestCycle objCycle,
                           ITableModelSource objSource,
                           ITableColumn objColumn,
                           Object objRow)
Description copied from interface: ITableRendererSource
Returns a renderer to present the data of the row in the given column.

This method can also be used to return a renderer to present the heading of the column. In such a case the row passed would be null.

Specified by:
getRenderer in interface ITableRendererSource
See Also:
ITableRendererSource.getRenderer(IRequestCycle, ITableModelSource, ITableColumn, Object)