org.apache.tapestry5.internal.util
Class RenderableAsBlock

java.lang.Object
  extended by org.apache.tapestry5.internal.util.RenderableAsBlock
All Implemented Interfaces:
Block, RenderCommand

public class RenderableAsBlock
extends Object
implements Block, RenderCommand

Allows any Renderable object to act as a Block. Basically, dressed up the Renderable with the Block interface, and delegates the Renderable interface to the underlying renderable object.


Constructor Summary
RenderableAsBlock(Renderable renderable)
           
 
Method Summary
 void render(MarkupWriter writer, RenderQueue queue)
          Invokes Renderable.render(org.apache.tapestry5.MarkupWriter).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RenderableAsBlock

public RenderableAsBlock(Renderable renderable)
Method Detail

render

public void render(MarkupWriter writer,
                   RenderQueue queue)
Invokes Renderable.render(org.apache.tapestry5.MarkupWriter).

Specified by:
render in interface RenderCommand

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2012 The Apache Software Foundation.