net.sf.tacos.partial
Interface PartialRenderBlock

All Known Implementing Classes:
Tree

public interface PartialRenderBlock

Handles management of partial requests/renders that are not contained within a Part component.

Author:
jkuhnert

Method Summary
 void beforeRenderBody(IMarkupWriter writer, IRequestCycle cycle, Serializable partId, boolean isRendering)
          Invoked before this blocks body is rendered.
 IMarkupWriter getPartWriter(Serializable partId)
          Returns the IMarkupWriter to use to print the contents of the specified part area.
 void incrementNonRenderBlock()
          Called to give components a chance to increment anything they may be doing in a looping structure for part blocks that don't actually get called because they aren't in the current partial cycle.
 

Method Detail

beforeRenderBody

public void beforeRenderBody(IMarkupWriter writer,
                             IRequestCycle cycle,
                             Serializable partId,
                             boolean isRendering)
Invoked before this blocks body is rendered.

Parameters:
writer -
cycle -
partId -
isRendering - True if render is being requested with a valid writer

getPartWriter

public IMarkupWriter getPartWriter(Serializable partId)
Returns the IMarkupWriter to use to print the contents of the specified part area. The returned writer doesn't necessarily need to be directly associated with the specified part.

Parameters:
partId - The Part or area of contents unique id.
Returns:
A valid writer, or null if none are available.

incrementNonRenderBlock

public void incrementNonRenderBlock()
Called to give components a chance to increment anything they may be doing in a looping structure for part blocks that don't actually get called because they aren't in the current partial cycle.

Currently being used to increment things like EvenOdd tapestry beans.