org.mmbase.framework
Class IFrameRenderer

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

public class IFrameRenderer
extends AbstractRenderer

The IFrameRenderer renders a page (in the current web-app) in an iframe. This makes it possible to effortlessly use any jsp as a block (though not a very nice one, because it is rendered in an iframe). It supports generic properties, which are set as parameters on the iframe url.

Since:
MMBase-1.9.1
Version:
$Id: IFrameRenderer.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,Object> properties
           
 
Fields inherited from class org.mmbase.framework.AbstractRenderer
type
 
Constructor Summary
IFrameRenderer(Renderer.Type t, Block parent)
           
 
Method Summary
protected  String getIFrameUrl(Parameters blockParameters)
           
 Parameter[] getParameters()
          A renderer may need certain parameters.
protected  String getStyleClass()
           
 void render(Parameters blockParameters, Writer w, RenderHints hints)
          Renders to a writer.
 void setProperty(String k, Object v)
           
 void setUrl(String u)
           
 
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, toString, wait, wait, wait
 

Field Detail

properties

protected final Map<String,Object> properties
Constructor Detail

IFrameRenderer

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

setProperty

public void setProperty(String k,
                        Object v)

setUrl

public void setUrl(String u)

getStyleClass

protected String getStyleClass()

getIFrameUrl

protected String getIFrameUrl(Parameters blockParameters)

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


MMBase 2.0-SNAPSHOT - null