org.riotfamily.components.render.list
Class EditModeRenderStrategy

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

public class EditModeRenderStrategy
extends DefaultRenderStrategy


Field Summary
 
Fields inherited from class org.riotfamily.components.render.list.DefaultRenderStrategy
dao, INHERTING_COMPONENT, log
 
Constructor Summary
EditModeRenderStrategy(ComponentDao dao, ComponentRenderer renderer, FormRepository formRepository, ComponentListRenderer listRenderer)
           
 
Method Summary
 void render(ComponentList list, ComponentListConfig config, HttpServletRequest request, HttpServletResponse response)
          Overrides the default implementation to render a DIV tag around the actual list.
protected  void renderComponent(Component component, int position, int listSize, ComponentListConfig config, HttpServletRequest request, HttpServletResponse response)
          Overrides the default implementation to render a DIV tag around the actual component.
 
Methods inherited from class org.riotfamily.components.render.list.DefaultRenderStrategy
onEmptyComponentList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditModeRenderStrategy

public EditModeRenderStrategy(ComponentDao dao,
                              ComponentRenderer renderer,
                              FormRepository formRepository,
                              ComponentListRenderer listRenderer)
Method Detail

render

public void render(ComponentList list,
                   ComponentListConfig config,
                   HttpServletRequest request,
                   HttpServletResponse response)
            throws Exception
Overrides the default implementation to render a DIV tag around the actual list. The DIV has attributes that are required for the Riot toolbar JavaScript.

Specified by:
render in interface RenderStrategy
Overrides:
render in class DefaultRenderStrategy
Throws:
Exception

renderComponent

protected void renderComponent(Component component,
                               int position,
                               int listSize,
                               ComponentListConfig config,
                               HttpServletRequest request,
                               HttpServletResponse response)
                        throws Exception
Overrides the default implementation to render a DIV tag around the actual component. The DIV has attributes that are required for the Riot toolbar JavaScript.

Overrides:
renderComponent in class DefaultRenderStrategy
Throws:
IOException
Exception