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

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

public class ComponentTableRendererSource
extends java.lang.Object
implements ITableRendererSource

Since:
2.3
Author:
mindbridge
See Also:
Serialized Form

Constructor Summary
ComponentTableRendererSource(org.apache.tapestry.util.ComponentAddress objComponentAddress)
           
ComponentTableRendererSource(ITableRendererListener objComponent)
           
 
Method Summary
 org.apache.tapestry.util.ComponentAddress getComponentAddress()
          Returns the listenerAddress.
 org.apache.tapestry.IRender getRenderer(org.apache.tapestry.IRequestCycle objCycle, ITableModelSource objSource, ITableColumn objColumn, java.lang.Object objRow)
          Returns a renderer to present the data of the row in the given column.
 void setComponentAddress(org.apache.tapestry.util.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(org.apache.tapestry.util.ComponentAddress objComponentAddress)
Method Detail

getRenderer

public org.apache.tapestry.IRender getRenderer(org.apache.tapestry.IRequestCycle objCycle,
                                               ITableModelSource objSource,
                                               ITableColumn objColumn,
                                               java.lang.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 org.apache.tapestry.util.ComponentAddress getComponentAddress()
Returns the listenerAddress.

Returns:
ComponentAddress

setComponentAddress

public void setComponentAddress(org.apache.tapestry.util.ComponentAddress listenerAddress)
Sets the listenerAddress.

Parameters:
listenerAddress - The listenerAddress to set