org.apache.tapestry5.internal.util

## Class RenderableAsBlock

- java.lang.Object
- - org.apache.tapestry5.internal.util.RenderableAsBlock

- All Implemented Interfaces:
    Block, RenderCommand

      public class RenderableAsBlock
      extends java.lang.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

    Constructors
    Constructor and Description
    `RenderableAsBlock(Renderable renderable)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `render(MarkupWriter writer, RenderQueue queue)` Invokes `Renderable.render(org.apache.tapestry5.MarkupWriter)`.
    `java.lang.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 java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.