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

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

public class BlockTableRendererSource
extends Object
implements ITableRendererSource

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

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

BlockTableRendererSource

public BlockTableRendererSource(Block objBlock,
                                ITableRendererListener objListener)

BlockTableRendererSource

public BlockTableRendererSource(ComponentAddress objBlockAddress)

BlockTableRendererSource

public BlockTableRendererSource(ComponentAddress objBlockAddress,
                                ComponentAddress objListenerAddress)
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)

getBlockAddress

public ComponentAddress getBlockAddress()
Returns the blockAddress.

Returns:
ComponentAddress

setBlockAddress

public void setBlockAddress(ComponentAddress blockAddress)
Sets the blockAddress.

Parameters:
blockAddress - The blockAddress to set

getListenerAddress

public ComponentAddress getListenerAddress()
Returns the listenerAddress.

Returns:
ComponentAddress

setListenerAddress

public void setListenerAddress(ComponentAddress listenerAddress)
Sets the listenerAddress.

Parameters:
listenerAddress - The listenerAddress to set