com.sapportals.portal.pb.dynamic

Class PageStructure

java.lang.Object
  extended by com.sapportals.portal.pb.dynamic.PageStructure
All Implemented Interfaces:
IDynPageStructure, IPageStructure

public class PageStructure
extends Object
implements IPageStructure, IDynPageStructure

The class that defines a page structure.

See Also:
IPageStructure, IDynPageStructure

Field Summary
 
Fields inherited from interface com.sapportals.portal.pb.dynamic.IPageStructure
EQUAL_WIDTH_LAYOUT_COMPONENT_NAME, FULL_WIDTH_LAYOUT_COMPONENT_NAME, LAYOUT_CONTAINER_1, LAYOUT_CONTAINER_2, LAYOUT_CONTAINER_3, NARROW_WIDE_LAYOUT_COMPONENT_NAME, NARROW_WIDE_NARROW_LAYOUT_COMPONENT_NAME, PAGE_BUILDER_COMPONENT_NAME, PAGE_STRUCTURE_VALUE_NAME, WIDE_NARROW_LAYOUT_COMPONENT_NAME
 
Constructor Summary
PageStructure(String pageLayout)
          A constructor that sets a page layout.
 
Method Summary
 List getAllIViews()
          Gets the list of all the iViews in all of the containers on the page.
 List getContainerIViews(String containerId)
          Gets the list of iViews in a specified container on the page.
 String getPageLayout()
          Gets the layout ID of the dynamic page.
 void setContainerIViews(String containerId, List containerIViews)
          Sets a list of iViews for a container.
 void setPageLayout(String pageLayout)
          Sets the layout component for the dynamic page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageStructure

public PageStructure(String pageLayout)
A constructor that sets a page layout.
The pageLayout value can either be the layout component name or the PCD path to a specific layout instance in the system.

Parameters:
pageLayout - a page layout
Method Detail

setPageLayout

public void setPageLayout(String pageLayout)
                   throws IllegalArgumentException
Sets the layout component for the dynamic page.
The pageLayout value can either be the layout component name or the PCD path to a specific layout instance in the system.

Specified by:
setPageLayout in interface IPageStructure
Parameters:
pageLayout - layout ID (context name or component name) of the dynamic page
Throws:
IllegalArgumentException - if the pageLayout is empty or null
See Also:
IPageStructure.setPageLayout(java.lang.String)

getPageLayout

public String getPageLayout()
Gets the layout ID of the dynamic page.

Specified by:
getPageLayout in interface IDynPageStructure
Returns:
the layout ID

setContainerIViews

public void setContainerIViews(String containerId,
                               List containerIViews)
                        throws DuplicateiViewException
Sets a list of iViews for a container. This list should be set for each container defined in the .jsp file of the layout component of the page.

Specified by:
setContainerIViews in interface IPageStructure
Parameters:
containerId - a container ID as identified in the .jsp file of the layout
containerIViews - a list of iViews in the container, sorted according to their appearance in the dynamic page
Throws:
DuplicateiViewException - if there two iViews with the same ID in the page

getContainerIViews

public List getContainerIViews(String containerId)
Gets the list of iViews in a specified container on the page.

Specified by:
getContainerIViews in interface IDynPageStructure
Parameters:
containerId - a container id
Returns:
a list of iView IDs

getAllIViews

public List getAllIViews()
Gets the list of all the iViews in all of the containers on the page.

Specified by:
getAllIViews in interface IDynPageStructure
Returns:
a list of iView IDs
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/pagebuilder/api api EP-PIN


Copyright 2015 SAP AG Complete Copyright Notice