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

DynaRegionRenderer - JBOSS Portal 2.6 API 英文版文档


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

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

public class DynaRegionRenderer
extends java.lang.Object
implements RegionRenderer

Implementation of a drag and drop Region renderer.

Author:
Tomasz Szymanski, Roy Russo
See Also:
RegionRenderer

Field Summary
private  RegionRenderer delegate
           
private static java.lang.ThreadLocal disabledLocal
           
private static org.jboss.logging.Logger log
           
private  java.util.Map portletPos
           
private  java.util.Map windowIds
           
 
Constructor Summary
DynaRegionRenderer(RegionRenderer regionRenderer)
           
 
Method Summary
 int getPortletNumber(java.lang.String regionId)
           
static boolean isEnabled()
           
 void render(RenderContext renderContext, Region region, java.util.Map portletContexts, java.util.Map windowResults)
          Render the markup of an entire page region with all the portlets that are assigned to that region.
 void renderEnd(RenderContext ctx)
          End the render process for this renderer.
 void renderStart(RenderContext ctx)
          Start the render process for this renderer.
 void setWindowId(java.lang.String portletId, java.lang.String windowId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portletPos

private java.util.Map portletPos

windowIds

private java.util.Map windowIds

log

private static final org.jboss.logging.Logger log

delegate

private RegionRenderer delegate

disabledLocal

private static final java.lang.ThreadLocal disabledLocal
Constructor Detail

DynaRegionRenderer

public DynaRegionRenderer(RegionRenderer regionRenderer)
                   throws java.lang.InstantiationException,
                          java.lang.IllegalAccessException,
                          java.lang.ClassNotFoundException
Method Detail

isEnabled

public static boolean isEnabled()

render

public void render(RenderContext renderContext,
                   Region region,
                   java.util.Map portletContexts,
                   java.util.Map windowResults)
            throws RenderException
Description copied from interface: RegionRenderer
Render the markup of an entire page region with all the portlets that are assigned to that region.

Specified by:
render in interface RegionRenderer
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.
region - the region to be rendered
windowResults -
Throws:
RenderException
See Also:
RegionRenderer.render(org.jboss.portal.theme.render.RenderContext, org.jboss.portal.theme.page.Region, java.util.Map, java.util.Map)

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)

getPortletNumber

public int getPortletNumber(java.lang.String regionId)

setWindowId

public void setWindowId(java.lang.String portletId,
                        java.lang.String windowId)