org.apache.tapestry.contrib.table.model.common
Class ComponentTableRendererSource

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

public class ComponentTableRendererSource
extends Object
implements ITableRendererSource

Since:
2.3
Version:
$Id: ComponentTableRendererSource.java 243791 2004-02-19 17:38:13Z hlship $
Author:
mindbridge
See Also:
Serialized Form

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

Constructor Detail

ComponentTableRendererSource

public ComponentTableRendererSource(ITableRendererListener objComponent)

ComponentTableRendererSource

public ComponentTableRendererSource(ComponentAddress objComponentAddress)
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)

getComponentAddress

public ComponentAddress getComponentAddress()
Returns the listenerAddress.

Returns:
ComponentAddress

setComponentAddress

public void setComponentAddress(ComponentAddress listenerAddress)
Sets the listenerAddress.

Parameters:
listenerAddress - The listenerAddress to set