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

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

public class BlockTableRendererSource
extends java.lang.Object
implements ITableRendererSource

Since:
2.3
Author:
mindbridge
See Also:
Serialized Form

Constructor Summary
BlockTableRendererSource(org.apache.tapestry.components.Block objBlock)
           
BlockTableRendererSource(org.apache.tapestry.components.Block objBlock, ITableRendererListener objListener)
           
BlockTableRendererSource(org.apache.tapestry.util.ComponentAddress objBlockAddress)
           
BlockTableRendererSource(org.apache.tapestry.util.ComponentAddress objBlockAddress, org.apache.tapestry.util.ComponentAddress objListenerAddress)
           
 
Method Summary
 org.apache.tapestry.util.ComponentAddress getBlockAddress()
          Returns the blockAddress.
 org.apache.tapestry.util.ComponentAddress getListenerAddress()
          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 setBlockAddress(org.apache.tapestry.util.ComponentAddress blockAddress)
          Sets the blockAddress.
 void setListenerAddress(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

BlockTableRendererSource

public BlockTableRendererSource(org.apache.tapestry.components.Block objBlock)

BlockTableRendererSource

public BlockTableRendererSource(org.apache.tapestry.components.Block objBlock,
                                ITableRendererListener objListener)

BlockTableRendererSource

public BlockTableRendererSource(org.apache.tapestry.util.ComponentAddress objBlockAddress)

BlockTableRendererSource

public BlockTableRendererSource(org.apache.tapestry.util.ComponentAddress objBlockAddress,
                                org.apache.tapestry.util.ComponentAddress objListenerAddress)
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)

getBlockAddress

public org.apache.tapestry.util.ComponentAddress getBlockAddress()
Returns the blockAddress.

Returns:
ComponentAddress

setBlockAddress

public void setBlockAddress(org.apache.tapestry.util.ComponentAddress blockAddress)
Sets the blockAddress.

Parameters:
blockAddress - The blockAddress to set

getListenerAddress

public org.apache.tapestry.util.ComponentAddress getListenerAddress()
Returns the listenerAddress.

Returns:
ComponentAddress

setListenerAddress

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

Parameters:
listenerAddress - The listenerAddress to set