org.apache.tapestry.test
Class MockComponentRenderWorker

java.lang.Object
  extended by org.apache.tapestry.test.MockComponentRenderWorker
All Implemented Interfaces:
ComponentRenderWorker

public class MockComponentRenderWorker
extends Object
implements ComponentRenderWorker

Placeholder class used to allow proper creation of AbstractComponent classes that normally rely on it being injected at runtime. Used primarily by Creator.

Author:
jkuhnert

Constructor Summary
MockComponentRenderWorker()
          Does nothing.
 
Method Summary
 void renderBody(IRequestCycle cycle, Body component)
          Special render for handling html element targets.
 void renderComponent(IRequestCycle cycle, IComponent component)
          Invoked just after the components render call, giving services implementing the ComponentRenderWorker interface a guaranteed state to work off of.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockComponentRenderWorker

public MockComponentRenderWorker()
Does nothing.

Method Detail

renderBody

public void renderBody(IRequestCycle cycle,
                       Body component)
Special render for handling html element targets. This is invoked just after the body component renders its body, but before the script data is written out.

Specified by:
renderBody in interface ComponentRenderWorker
Parameters:
cycle - The associated request cycle.
component - The Body component, which holds the needed PageRenderSupport object.

renderComponent

public void renderComponent(IRequestCycle cycle,
                            IComponent component)
Invoked just after the components render call, giving services implementing the ComponentRenderWorker interface a guaranteed state to work off of.

Specified by:
renderComponent in interface ComponentRenderWorker
Parameters:
cycle - The associated request for this render.
component - The component that has just been rendered.


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