站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

DynaPortletRenderer - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.theme.impl.render.dynamic
Class DynaPortletRenderer

java.lang.Object
  extended byorg.jboss.portal.theme.impl.render.dynamic.DynaPortletRenderer
All Implemented Interfaces:
PortletRenderer, Renderer

public class DynaPortletRenderer
extends java.lang.Object
implements PortletRenderer

Implementation of a drag and drop Portlet renderer.

Version:
$LastChangedRevision$, $LastChangedDate$
Author:
Tomasz Szymanski, Roy Russo
See Also:
PortletRenderer

Field Summary
private  PortletRenderer delegate
           
 
Constructor Summary
DynaPortletRenderer(PortletRenderer portletRenderer)
           
 
Method Summary
 void render(RenderContext renderContext, WindowContext state, WindowResult result)
          Render the markup of a portlet.
 void renderEnd(RenderContext ctx)
          End the render process for this renderer.
 void renderStart(RenderContext ctx)
          Start the render process for this renderer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

private PortletRenderer delegate
Constructor Detail

DynaPortletRenderer

public DynaPortletRenderer(PortletRenderer portletRenderer)
                    throws java.lang.InstantiationException,
                           java.lang.IllegalAccessException,
                           java.lang.ClassNotFoundException
Method Detail

render

public void render(RenderContext renderContext,
                   WindowContext state,
                   WindowResult result)
            throws RenderException
Description copied from interface: PortletRenderer
Render the markup of a portlet.

Note: this is not calling the portlet container to produce the markup. The markup has already been created. The PortletRenderer only places the markup on the page, and can gnerate some containing markup around it if it chooses to do so

.

Specified by:
render in interface PortletRenderer
Parameters:
renderContext - the state holder to provide information about the region, it's portlets, and the render set, which allows access to the other renderer interfaces of the render set.
state - the portlet's navigational state (mode, window state,...)
result - the fragment result containing the portlet's markup
Throws:
RenderException
See Also:
PortletRenderer.render(org.jboss.portal.theme.render.RenderContext, org.jboss.portal.theme.page.WindowContext, org.jboss.portal.theme.page.WindowResult)

renderStart

public void renderStart(RenderContext ctx)
Description copied from interface: Renderer
Start the render process for this renderer.

This is a convenient way yo open tags, like a table or a div

Specified by:
renderStart in interface Renderer
Parameters:
ctx - the render context allowing access to state information of the current render process
See Also:
Renderer.renderStart(org.jboss.portal.theme.render.RenderContext)

renderEnd

public void renderEnd(RenderContext ctx)
Description copied from interface: Renderer
End the render process for this renderer.

This is a convenient way yo close the tags that where opened by renderStart

Specified by:
renderEnd in interface Renderer
Parameters:
ctx - the render context allowing access to state information of the current render process
See Also:
Renderer.renderEnd(org.jboss.portal.theme.render.RenderContext)