|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.theme.page.PageResult
public class PageResult
Interface to represent the read only information of a rendered portal page.
The page result allows access to all the information needed to generate the final markup.
Field Summary | |
---|---|
protected java.lang.String |
layoutState
. |
protected java.lang.String |
pageName
. |
protected java.util.Map |
properties
. |
protected java.util.Map |
results
. |
protected java.util.Map |
windowContexts
. |
Constructor Summary | |
---|---|
PageResult(java.lang.String pageName)
|
|
PageResult(java.lang.String pageName,
java.util.Map properties)
|
Method Summary | |
---|---|
void |
addWindowContext(WindowContext windowContext)
|
java.lang.String |
getLayoutState()
Get the state string of the layout. |
java.lang.String |
getPageName()
Get the name of the requested page. |
java.util.Map |
getProperties()
|
java.lang.String |
getProperty(java.lang.String name)
|
RegionRendererContext |
getRegion(java.lang.String regionName)
|
Region |
getRegion2(java.lang.String regionName)
Get a reference to the region object for the provided region name. |
java.util.Collection |
getRegions()
|
WindowRendererContext |
getWindow(java.lang.String windowId)
|
WindowContext |
getWindowContext(java.lang.String windowId)
Get the WindowContext for the provided window id. |
java.util.Map |
getWindowContextMap()
Get a map of all PortletContext s on the page keyed by window id |
java.util.Set |
getWindowIds()
Get a Set of all window ids that are contained in this page. |
void |
rebuild()
|
void |
setLayoutState(java.lang.String layoutState)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.Map results
protected final java.util.Map windowContexts
protected java.lang.String pageName
protected java.util.Map properties
protected java.lang.String layoutState
Constructor Detail |
---|
public PageResult(java.lang.String pageName, java.util.Map properties)
public PageResult(java.lang.String pageName)
Method Detail |
---|
public Region getRegion2(java.lang.String regionName)
regionName
- the name of the region to get
public java.lang.String getPageName()
public java.lang.String getLayoutState()
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.
public void setLayoutState(java.lang.String layoutState)
public java.util.Set getWindowIds()
public WindowRendererContext getWindow(java.lang.String windowId)
getWindow
in interface PageRendererContext
public WindowContext getWindowContext(java.lang.String windowId)
WindowContext
for the provided window id.
windowId
- the window id identifying the portlet to get the context for
public java.util.Map getWindowContextMap()
PortletContext
s on the page keyed by window id
public void addWindowContext(WindowContext windowContext)
public java.lang.String getProperty(java.lang.String name)
getProperty
in interface ObjectRendererContext
public java.util.Map getProperties()
getProperties
in interface ObjectRendererContext
public java.util.Collection getRegions()
getRegions
in interface PageRendererContext
public RegionRendererContext getRegion(java.lang.String regionName)
getRegion
in interface PageRendererContext
public void rebuild()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |