|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A render context allows all pieces that create markup a way to access relevant information for the current request and render process.
A render context is created for each portal request and render tag. It contains all the information needed to generate the markup of one region tag for the portal response.
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 renderSetName)
Get the implementation of the window renderer in the render set that is provided via the passed name. |
Method Detail |
public java.lang.StringBuffer getMarkupFragment()
This 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.
public org.w3c.dom.Document getMarkupFragmentAsDom()
getMarkupFragment()
public MediaType getContentType()
public RegionOrientation getRegionOrientation()
public RegionRenderer getRegionRenderer()
The region renderer ias part of the renderSet, which can be defined for the portal, or a particular page. The page will overwrite the portal.
public RegionRenderer getRegionRenderer(java.lang.String renderSetName)
Mote 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).
renderSetName
- 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
getRegionRenderer()
public WindowRenderer getWindowRenderer()
The window renderer is part of a renderSet, which can be defined for the portal, or a particular page. The page will overwrite the portal.
public WindowRenderer getWindowRenderer(WindowResult renderSetName)
renderSetName
- 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()
public DecorationRenderer getDecorationRenderer(WindowResult result)
result
-
public PortletRenderer getPortletRenderer()
public PortletRenderer getPortletRenderer(WindowResult result)
result
- the window result carying the optiona window properties , potentially pointing to a different portlet renderer
public java.lang.String getRegionID()
public java.util.Map getPageProperties()
public java.util.List getLayoutRegionNames()
public java.lang.String getProperty(WindowResult result, java.lang.String key)
result
- a window result containing optional window propertieskey
- the key (name) of the property to access
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |