org.mmbase.framework
Class StringRenderer

java.lang.Object
  extended by org.mmbase.framework.AbstractRenderer
      extended by org.mmbase.framework.StringRenderer
All Implemented Interfaces:
Renderer

public class StringRenderer
extends AbstractRenderer

The overly simple renderer which is simply based on a String present in the configuration file. Based on PatternNodeFunctionProvider so several parameters can be present.

Since:
MMBase-1.9
Version:
$Id: StringRenderer.java 41989 2010-04-20 16:45:39Z michiel $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mmbase.framework.Renderer
Renderer.Type
 
Field Summary
protected  Map<String,Method> requestMethods
           
protected  String string
           
 
Fields inherited from class org.mmbase.framework.AbstractRenderer
type
 
Constructor Summary
StringRenderer(Renderer.Type t, Block parent)
           
 
Method Summary
 Parameter<?>[] getParameters()
          A renderer may need certain parameters.
 void render(Parameters blockParameters, Writer w, RenderHints hints)
          Renders to a writer.
 void setString(String s)
           
 String toString()
           
 
Methods inherited from class org.mmbase.framework.AbstractRenderer
decorateIntro, decorateOutro, getBlock, getType, getUri, getUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

string

protected String string

requestMethods

protected Map<String,Method> requestMethods
Constructor Detail

StringRenderer

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

setString

public void setString(String s)

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
To Do:
should consider the string

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


MMBase 2.0-SNAPSHOT - null