org.riotfamily.components.render.list
Class DefaultRenderStrategy

java.lang.Object
  extended by org.riotfamily.components.render.list.DefaultRenderStrategy
All Implemented Interfaces:
RenderStrategy
Direct Known Subclasses:
EditModeRenderStrategy

public class DefaultRenderStrategy
extends Object
implements RenderStrategy


Field Summary
protected  ComponentDao dao
           
static String INHERTING_COMPONENT
           
protected  RiotLog log
           
 
Constructor Summary
DefaultRenderStrategy(ComponentDao dao, ComponentRenderer renderer)
           
 
Method Summary
protected  void onEmptyComponentList(ComponentListConfig config, HttpServletRequest request, HttpServletResponse response)
           
 void render(ComponentList list, ComponentListConfig config, HttpServletRequest request, HttpServletResponse response)
           
protected  void renderComponent(Component component, int position, int listSize, ComponentListConfig config, HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INHERTING_COMPONENT

public static final String INHERTING_COMPONENT
See Also:
Constant Field Values

log

protected RiotLog log

dao

protected ComponentDao dao
Constructor Detail

DefaultRenderStrategy

public DefaultRenderStrategy(ComponentDao dao,
                             ComponentRenderer renderer)
Method Detail

render

public void render(ComponentList list,
                   ComponentListConfig config,
                   HttpServletRequest request,
                   HttpServletResponse response)
            throws Exception
Specified by:
render in interface RenderStrategy
Throws:
Exception

onEmptyComponentList

protected void onEmptyComponentList(ComponentListConfig config,
                                    HttpServletRequest request,
                                    HttpServletResponse response)
                             throws Exception
Throws:
Exception

renderComponent

protected void renderComponent(Component component,
                               int position,
                               int listSize,
                               ComponentListConfig config,
                               HttpServletRequest request,
                               HttpServletResponse response)
                        throws Exception
Throws:
Exception