org.apache.tapestry.describe
Class RenderBridge

java.lang.Object
  extended by org.apache.tapestry.describe.RenderBridge
All Implemented Interfaces:
IRender

public class RenderBridge
extends Object
implements IRender

Implements IRender for a particular object by delegating to a RenderStrategy.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
RenderBridge(Object object, RenderStrategy strategy)
           
 
Method Summary
 void render(IMarkupWriter writer, IRequestCycle cycle)
          The principal rendering/rewinding method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderBridge

public RenderBridge(Object object,
                    RenderStrategy strategy)
Method Detail

render

public void render(IMarkupWriter writer,
                   IRequestCycle cycle)
Description copied from interface: IRender
The principal rendering/rewinding method. This will cause the receiving component to render its top level elements (HTML text and components).

Renderring and rewinding are the exact same process. The same code that renders must be able to restore state by going through the exact same operations (even though the output is discarded).

Specified by:
render in interface IRender


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.