info.magnolia.cms.gui.controlx.impl
Class RenderKitImpl

java.lang.Object
  extended by info.magnolia.cms.gui.controlx.impl.RenderKitImpl
All Implemented Interfaces:
RenderKit
Direct Known Subclasses:
TestRenderKit

public class RenderKitImpl
extends Object
implements RenderKit

If a not registered render type is passed a TemplatedRenderer instance is returned.

Version:
$Revision$ ($Author$)
Author:
Philipp Bracher

Field Summary
protected  Map renderers
          The renderers registered.
 
Constructor Summary
RenderKitImpl()
          Init the layzy map.
 
Method Summary
 Renderer getRenderer(String type)
          Get a renderer
 void register(String type, Renderer renderer)
          Register a renderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderers

protected Map renderers
The renderers registered.

Constructor Detail

RenderKitImpl

public RenderKitImpl()
Init the layzy map.

Method Detail

register

public void register(String type,
                     Renderer renderer)
Description copied from interface: RenderKit
Register a renderer

Specified by:
register in interface RenderKit
See Also:
RenderKit.register(java.lang.String, info.magnolia.cms.gui.controlx.Renderer)

getRenderer

public Renderer getRenderer(String type)
Description copied from interface: RenderKit
Get a renderer

Specified by:
getRenderer in interface RenderKit
Returns:
See Also:
RenderKit.getRenderer(java.lang.String)


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.