org.riotfamily.components.render.component
Class AbstractComponentRenderer

java.lang.Object
  extended by org.riotfamily.components.render.component.AbstractComponentRenderer
All Implemented Interfaces:
ComponentRenderer
Direct Known Subclasses:
ViewComponentRenderer

public abstract class AbstractComponentRenderer
extends Object
implements ComponentRenderer

Abstract base class for component implementations.


Field Summary
static String COMPONENT_ID
           
static String CONTAINER
           
static String LIST_SIZE
           
protected  RiotLog log
           
static String PARENT
           
static String POSITION
           
static String THIS
           
 
Constructor Summary
AbstractComponentRenderer()
           
 
Method Summary
 void render(Component component, int position, int listSize, HttpServletRequest request, HttpServletResponse response)
          Renders the given ComponentVersion.
protected abstract  void renderInternal(Component component, int position, int listSize, HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTAINER

public static final String CONTAINER

COMPONENT_ID

public static final String COMPONENT_ID
See Also:
Constant Field Values

THIS

public static final String THIS
See Also:
Constant Field Values

PARENT

public static final String PARENT
See Also:
Constant Field Values

POSITION

public static final String POSITION
See Also:
Constant Field Values

LIST_SIZE

public static final String LIST_SIZE
See Also:
Constant Field Values

log

protected RiotLog log
Constructor Detail

AbstractComponentRenderer

public AbstractComponentRenderer()
Method Detail

render

public final void render(Component component,
                         int position,
                         int listSize,
                         HttpServletRequest request,
                         HttpServletResponse response)
                  throws IOException
Description copied from interface: ComponentRenderer
Renders the given ComponentVersion.

Specified by:
render in interface ComponentRenderer
Throws:
IOException

renderInternal

protected abstract void renderInternal(Component component,
                                       int position,
                                       int listSize,
                                       HttpServletRequest request,
                                       HttpServletResponse response)
                                throws Exception
Throws:
Exception