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

MarkupResult - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.theme.render
Class MarkupResult

java.lang.Object
  extended byorg.jboss.portal.theme.render.MarkupResult
Direct Known Subclasses:
PageResult, RegionResult, WindowResult

public abstract class MarkupResult
extends java.lang.Object

The resulting markup fragment from a render process.

Version:
$Revision: 5448 $
Author:
Martin Holzner

Field Summary
protected  java.lang.String layoutState
           
protected  java.lang.String layoutURI
           
protected  java.lang.String pageName
           
protected  java.util.Map pageProperties
           
protected  java.util.Map portalProperties
           
protected  java.util.Map portlets
           
protected  PortalRenderSet renderSet
           
protected  java.util.Map results
           
protected  PortalTheme theme
           
protected  ThemeResult themeResult
           
 
Constructor Summary
MarkupResult()
           
MarkupResult(java.lang.String pageName, java.util.Map pageProperties, java.util.Map portalProperties)
           
 
Method Summary
 java.lang.String getLayoutState()
          Get the state string of the layout.
 java.lang.String getLayoutURI()
          Get the uri of the layout that is used.
 java.lang.String getPageName()
          Get the name of the requested page.
 java.util.Map getPageProperties()
          Get the properties that were set for this page.
 java.util.Map getPortalProperties()
          Get the properties that were set for this page.
 PortalTheme getTheme()
           
 ThemeResult getThemeResult()
           
 WindowContext getWindowContext(java.lang.String windowId)
          Get the WindowContext for the provided window id.
 java.util.Map getWindowContextMap()
          Get a map of all PortletContexts on the page keyed by window id
 java.util.Set getWindowIDs()
          Get a Set of all window ids that are contained in this page.
 WindowResult getWindowResult(java.lang.String windowHandle)
          Get the WindowResult for a specific portlet window.
 java.util.Map getWindowResultMap()
          Get a map of WindowResults keyed by window id
 void setTheme(PortalTheme theme)
           
 void setThemeResult(ThemeResult themeResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

results

protected final java.util.Map results

portlets

protected final java.util.Map portlets

pageName

protected java.lang.String pageName

portalProperties

protected java.util.Map portalProperties

pageProperties

protected java.util.Map pageProperties

layoutURI

protected java.lang.String layoutURI

layoutState

protected java.lang.String layoutState

renderSet

protected PortalRenderSet renderSet

themeResult

protected ThemeResult themeResult

theme

protected PortalTheme theme
Constructor Detail

MarkupResult

public MarkupResult()

MarkupResult

public MarkupResult(java.lang.String pageName,
                    java.util.Map pageProperties,
                    java.util.Map portalProperties)
Method Detail

getThemeResult

public ThemeResult getThemeResult()

setThemeResult

public void setThemeResult(ThemeResult themeResult)

getTheme

public PortalTheme getTheme()

setTheme

public void setTheme(PortalTheme theme)

getPageName

public java.lang.String getPageName()
Get the name of the requested page.

Returns:
the name of the page that is being rendered

getPageProperties

public java.util.Map getPageProperties()
Get the properties that were set for this page.

Returns:
a java.util.Map of the properties of this page

getPortalProperties

public java.util.Map getPortalProperties()
Get the properties that were set for this page.

Returns:
a java.util.Map of the properties of this page

getLayoutURI

public java.lang.String getLayoutURI()
Get the uri of the layout that is used.

The uri is relative to the application context that hosts the layout.

Returns:
the uri of the used layout

getLayoutState

public java.lang.String getLayoutState()
Get the state string of the layout.

The state is used to further sub select a layout uri. One layout can contain a separate layout uri per state. The state has to match to string version of one of the allowed window states.

Returns:
a string representing the current window state to potentially further select a more specific layout uri

getWindowIDs

public java.util.Set getWindowIDs()
Get a Set of all window ids that are contained in this page.

Returns:
a set of all window ids on this page

getWindowResult

public WindowResult getWindowResult(java.lang.String windowHandle)
Get the WindowResult for a specific portlet window.

Parameters:
windowHandle - the window id identifying the portlet window to get the window result for
Returns:
the window result for the provided window id

getWindowResultMap

public java.util.Map getWindowResultMap()
Get a map of WindowResults keyed by window id

Returns:
a map of window results

getWindowContext

public WindowContext getWindowContext(java.lang.String windowId)
Get the WindowContext for the provided window id.

Parameters:
windowId - the window id identifying the portlet to get the context for
Returns:
the window context for the provided window id

getWindowContextMap

public java.util.Map getWindowContextMap()
Get a map of all PortletContexts on the page keyed by window id

Returns:
a map of all portlet on the page