org.xwiki.rendering.internal.macro.dashboard
Class DefaultGadgetRenderer

java.lang.Object
  extended by org.xwiki.rendering.internal.macro.dashboard.DefaultGadgetRenderer
All Implemented Interfaces:
GadgetRenderer
Direct Known Subclasses:
EditableGadgetRenderer

@Component
public class DefaultGadgetRenderer
extends java.lang.Object
implements GadgetRenderer

Default implementation of the gadget renderer, rendering the title of the gadget in a level 2 heading and the content as is, in a container that helps group it together and separate from title.

Since:
3.0rc1
Version:
$Id$

Field Summary
protected static java.lang.String CLASS
          The HTML class attribute name.
protected static java.lang.String ID
          The HTML id attribute name.
 
Constructor Summary
DefaultGadgetRenderer()
           
 
Method Summary
 java.util.List<Block> decorateGadget(Gadget gadget)
          Decorates the passed gadget and renders it as a list of XDOM blocks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS

protected static final java.lang.String CLASS
The HTML class attribute name.

See Also:
Constant Field Values

ID

protected static final java.lang.String ID
The HTML id attribute name.

See Also:
Constant Field Values
Constructor Detail

DefaultGadgetRenderer

public DefaultGadgetRenderer()
Method Detail

decorateGadget

public java.util.List<Block> decorateGadget(Gadget gadget)
Decorates the passed gadget and renders it as a list of XDOM blocks.

Specified by:
decorateGadget in interface GadgetRenderer
Parameters:
gadget - the gadget to render
Returns:
the list of blocks resulted from rendering the passed gadget and decorating it (with containers, etc)
See Also:
#decorateGadget(org.xwiki.rendering.macro.dashboard.Gadget)


Copyright © 2004-2011 XWiki. All Rights Reserved.