|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.theme.impl.render.RenderContextImpl
Implementation of a render context.
RenderContext| Constructor Summary | |
RenderContextImpl(PortalRenderSet renderSet,
MediaType contentType,
RegionOrientation orientation,
java.lang.String regionID,
java.util.Map pageProperties,
java.util.List regionNames,
javax.servlet.http.HttpServletRequest request)
Create a render context instance. |
|
| Method Summary | |
MediaType |
getContentType()
Get the media type for this render process |
DecorationRenderer |
getDecorationRenderer()
Get the implemetation of the decoration renderer to use in this context |
DecorationRenderer |
getDecorationRenderer(WindowResult result)
Get the implemetation of the decoration renderer of the provided render set |
java.util.List |
getLayoutRegionNames()
Get a list of all region names as they are defined in the layout descriptor of the current layout. |
java.lang.StringBuffer |
getMarkupFragment()
Get the StringBuffer that holds the markup to write back as response. |
org.w3c.dom.Document |
getMarkupFragmentAsDom()
Get the xml dom document that holds the markup to write bach as response (perhaps after its been xsl transformed) This is for apps that rather build the result in XML (instead of a StringBuffer). |
java.util.Map |
getPageProperties()
Get the properties as they are defined in the portal descriptor for the currently requested page. |
PortletRenderer |
getPortletRenderer()
Get the implementation of the portlet renderer to use for this context |
PortletRenderer |
getPortletRenderer(WindowResult result)
Get the implementation of the portlet renderer of the provided render set |
java.lang.String |
getProperty(WindowResult result,
java.lang.String key)
get a portal object property value for the provided key. |
java.lang.String |
getRegionID()
Get the id attribute for the tag to be rendered. |
RegionOrientation |
getRegionOrientation()
Get the region orientation for this render process |
RegionRenderer |
getRegionRenderer()
Get the implementation of the region renderer as it was determined by the page invocation stack. |
RegionRenderer |
getRegionRenderer(java.lang.String renderSetName)
Get the implementation of the region renderer in the provided render set. |
WindowRenderer |
getWindowRenderer()
Get the implementation of the window renderer as it was determined by the page invocation stack. |
WindowRenderer |
getWindowRenderer(WindowResult result)
Get the implementation of the window renderer in the render set that is provided via the passed name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RenderContextImpl(PortalRenderSet renderSet, MediaType contentType, RegionOrientation orientation, java.lang.String regionID, java.util.Map pageProperties, java.util.List regionNames, javax.servlet.http.HttpServletRequest request)
renderSet - the render set to use for this render processcontentType - the media/content/mime type of the current requestorientation - the orientation of the region tagregionID - the id attribute value to use for the rendered tagpageProperties - request - the servlet request that is currently being serviced| Method Detail |
public java.lang.StringBuffer getMarkupFragment()
RenderContextThis is ment to be a convenient way to accumulate the markup generated by the individual processes involved in the rendering of the response. Each renderer in the render set simply appends it's markup to this buffer.
getMarkupFragment in interface RenderContextRenderContext.getMarkupFragment()public org.w3c.dom.Document getMarkupFragmentAsDom()
RenderContext
getMarkupFragmentAsDom in interface RenderContextRenderContext.getMarkupFragmentAsDom()public MediaType getContentType()
RenderContext
getContentType in interface RenderContextRenderContext.getContentType()public RegionOrientation getRegionOrientation()
RenderContext
getRegionOrientation in interface RenderContextRenderContext.getRegionOrientation()public RegionRenderer getRegionRenderer()
RenderContextThe region renderer ias part of the renderSet, which can be defined for the portal, or a particular page. The page will overwrite the portal.
getRegionRenderer in interface RenderContextRenderContext.getRegionRenderer()public RegionRenderer getRegionRenderer(java.lang.String renderSetName)
RenderContextMote that the render set can be different from the determined render set for the portal or page. This allows a renderer to use a different render set for an individual window (to name one example).
getRegionRenderer in interface RenderContextrenderSetName - the name of the render set to use to get the region renderer. if the name is null, the
behaviour is the same as in the getRegionRenderer() method
RenderContext.getRegionRenderer(String)public WindowRenderer getWindowRenderer()
RenderContextThe window renderer is part of a renderSet, which can be defined for the portal, or a particular page. The page will overwrite the portal.
getWindowRenderer in interface RenderContextRenderContext.getWindowRenderer()public WindowRenderer getWindowRenderer(WindowResult result)
RenderContext
getWindowRenderer in interface RenderContextresult - the name of the render set to use to get the window renderer. if the name is null, the
behaviour is the same as in the getWindowRenderer() method
public DecorationRenderer getDecorationRenderer()
RenderContext
getDecorationRenderer in interface RenderContextRenderContext.getDecorationRenderer()public DecorationRenderer getDecorationRenderer(WindowResult result)
RenderContext
getDecorationRenderer in interface RenderContextresult -
public PortletRenderer getPortletRenderer()
RenderContext
getPortletRenderer in interface RenderContextRenderContext.getPortletRenderer()public PortletRenderer getPortletRenderer(WindowResult result)
RenderContext
getPortletRenderer in interface RenderContextresult - the window result carying the optiona window properties , potentially pointing to a different portlet renderer
public java.lang.String getRegionID()
RenderContext
getRegionID in interface RenderContextRenderContext.getRegionID()public java.util.Map getPageProperties()
RenderContext
getPageProperties in interface RenderContextRenderContext.getPageProperties()public java.util.List getLayoutRegionNames()
RenderContext
getLayoutRegionNames in interface RenderContextpublic java.lang.String getProperty(WindowResult result, java.lang.String key)
RenderContext
getProperty in interface RenderContextresult - a window result containing optional window propertieskey - the key (name) of the property to access
RenderContext.getProperty(WindowResult, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||