Package 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 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
  Description
  `RenderableAsBlock(Renderable renderable)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `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 Details

  - ### RenderableAsBlock

    public RenderableAsBlock(Renderable renderable)

- ## Method Details

  - ### 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`