net.sf.tacos.partial
Class PartialForeach

java.lang.Object
  extended byorg.apache.hivemind.impl.BaseLocatable
      extended byorg.apache.tapestry.AbstractComponent
          extended byorg.apache.tapestry.components.Foreach
              extended bynet.sf.tacos.partial.PartialForeach
All Implemented Interfaces:
IComponent, IRender, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder

public abstract class PartialForeach
extends Foreach

Handles partial renders for Tree component without having to contain each loop within a Part component.

Author:
jkuhnert

Constructor Summary
PartialForeach()
           
 
Method Summary
protected  void cleanupAfterRender(IRequestCycle cycle)
          
abstract  IKeyProvider getKeyProvider()
          Provides partIds for components participating in partial requests.
abstract  PartialRenderBlock getPartialBlock()
          Optional render block that will provide IMarkupWriter instances for logic not handled by traditional Part/PartialService semantics.
protected  void prepareForRender(IRequestCycle cycle)
          
 void renderBody(IMarkupWriter writer, IRequestCycle cycle)
          
 
Methods inherited from class org.apache.tapestry.components.Foreach
getElement, getIndex, getSource, getSourceData, getValue, getValueConverter, renderComponent, setIndexParameter, setValueParameter
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, render, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, toString
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

PartialForeach

public PartialForeach()
Method Detail

prepareForRender

protected void prepareForRender(IRequestCycle cycle)


cleanupAfterRender

protected void cleanupAfterRender(IRequestCycle cycle)


renderBody

public void renderBody(IMarkupWriter writer,
                       IRequestCycle cycle)


getPartialBlock

public abstract PartialRenderBlock getPartialBlock()
Optional render block that will provide IMarkupWriter instances for logic not handled by traditional Part/PartialService semantics.

Returns:

getKeyProvider

public abstract IKeyProvider getKeyProvider()
Provides partIds for components participating in partial requests.

Returns:
The key provider required by this component.