org.mmbase.framework
Class WrappedRenderer

java.lang.Object
  extended by org.mmbase.framework.AbstractRenderer
      extended by org.mmbase.framework.WrappedRenderer
All Implemented Interfaces:
Renderer
Direct Known Subclasses:
CachedRenderer

public abstract class WrappedRenderer
extends AbstractRenderer

A generic implementation of a Renderer that wraps another Renderer. It defines and implments the parameter 'wraps' which you can point to another block.

Since:
MMBase-1.9.1
Version:
$Id: WrappedRenderer.java 37278 2009-07-27 12:11:20Z michiel $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mmbase.framework.Renderer
Renderer.Type
 
Field Summary
protected  Renderer wrapped
           
 
Fields inherited from class org.mmbase.framework.AbstractRenderer
type
 
Constructor Summary
WrappedRenderer(Renderer.Type t, Block parent)
           
 
Method Summary
 Parameter<?>[] getParameters()
          A renderer may need certain parameters.
 URI getUri(Parameters blockParameters, RenderHints hints)
          Ann URL which may identify a specific rendition
 Renderer getWraps()
           
 void render(Parameters blockParameters, Writer w, RenderHints hints)
          Renders to a writer.
 void setWraps(Renderer r)
           
 void setWrapsBlock(String c)
           
 String toString()
           
 
Methods inherited from class org.mmbase.framework.AbstractRenderer
decorateIntro, decorateOutro, getBlock, getType, getUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

wrapped

protected Renderer wrapped
Constructor Detail

WrappedRenderer

public WrappedRenderer(Renderer.Type t,
                       Block parent)
Method Detail

setWrapsBlock

public void setWrapsBlock(String c)

setWraps

public void setWraps(Renderer r)

getWraps

public Renderer getWraps()

getParameters

public Parameter<?>[] getParameters()
Description copied from interface: Renderer
A renderer may need certain parameters. These are added to the block-parameters. This method is called on instantation of the renderer.

Specified by:
getParameters in interface Renderer
Overrides:
getParameters in class AbstractRenderer

render

public void render(Parameters blockParameters,
                   Writer w,
                   RenderHints hints)
            throws FrameworkException
Description copied from interface: Renderer
Renders to a writer. In case of e.g. a JSPView, the parameters must also contain the Http Servlet response and request, besided specific parameters for this component.

Specified by:
render in interface Renderer
Specified by:
render in class AbstractRenderer
Throws:
FrameworkException

toString

public String toString()
Overrides:
toString in class Object

getUri

public URI getUri(Parameters blockParameters,
                  RenderHints hints)
Description copied from interface: Renderer
Ann URL which may identify a specific rendition

Specified by:
getUri in interface Renderer
Overrides:
getUri in class AbstractRenderer


MMBase 2.0-SNAPSHOT - null