org.jboss.portal.core.model.portal
Interface Page
- All Superinterfaces:
- PageContainer, PortalObject
- All Known Implementing Classes:
- PageImpl
public interface Page
- extends PageContainer
A page contains window and is also a page container which can contain nested pages.
- Version:
- $Revision: 6082 $
- Author:
- Martin Holzner
Method Summary |
Window |
createWindow(java.lang.String name,
ContentType contentType,
java.lang.String contentURI)
Create a new window. |
Portal |
getPortal()
Return the portal containing this page. |
Window |
getWindow(java.lang.String name)
Return a page window or null if the portal object does not exist or
does not have the appropriate type. |
Methods inherited from interface org.jboss.portal.core.model.portal.PortalObject |
copy, destroyChild, getChild, getChildren, getChildren, getDeclaredProperties, getDeclaredProperty, getId, getListener, getName, getParent, getProperties, getProperty, getType, setDeclaredProperty, setListener |
getPortal
Portal getPortal()
- Return the portal containing this page.
- Returns:
- the portal for this page
getWindow
Window getWindow(java.lang.String name)
throws java.lang.IllegalArgumentException
- Return a page window or null if the portal object does not exist or
does not have the appropriate type.
- Parameters:
name
- the window name
- Returns:
- the specified page window
- Throws:
java.lang.IllegalArgumentException
- if the name is null
createWindow
Window createWindow(java.lang.String name,
ContentType contentType,
java.lang.String contentURI)
throws DuplicatePortalObjectException,
java.lang.IllegalArgumentException
- Create a new window.
- Parameters:
name
- window namecontentType
- the window content typecontentURI
- the window content URI
- Returns:
- the created window
- Throws:
DuplicatePortalObjectException
- if a portal object with the specified name already exist
java.lang.IllegalArgumentException
- if the name is null