org.jboss.portal.core.impl.model.portal
Class WindowImpl
java.lang.Object
org.jboss.portal.core.impl.model.portal.PortalObjectImpl
org.jboss.portal.core.impl.model.portal.WindowImpl
- All Implemented Interfaces:
- PortalObject, Window, ContextObject
public class WindowImpl
- extends PortalObjectImpl
- implements Window, ContextObject
- Version:
- $Revision: 7567 $
- Author:
- Julien Viet
Methods inherited from class org.jboss.portal.core.impl.model.portal.PortalObjectImpl |
addChild, copy, destroyChild, equals, getChild, getChildren, getChildren, getDeclaredProperties, getDeclaredProperty, getDeclaredPropertyMap, getDefaultChild, getId, getKey, getListener, getMask, getMask, getName, getObjectNode, getParent, getProperties, getProperty, hashCode, setDeclaredProperty, setDeclaredPropertyMap, setKey, setListener, setObjectNode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.portal.core.model.portal.PortalObject |
copy, destroyChild, getChild, getChildren, getChildren, getDeclaredProperties, getDeclaredProperty, getId, getListener, getName, getParent, getProperties, getProperty, setDeclaredProperty, setListener |
PORTAL_PROP_WINDOW_CONTENT_TYPE
public static final java.lang.String PORTAL_PROP_WINDOW_CONTENT_TYPE
- See Also:
- Constant Field Values
uri
protected java.lang.String uri
containerContext
protected AbstractPortalObjectContainer.ContainerContext containerContext
contentType
protected ContentType contentType
contentState
protected org.jboss.portal.core.impl.model.portal.WindowImpl.ContentStateImpl contentState
WindowImpl
public WindowImpl()
WindowImpl
public WindowImpl(ContentType contentType,
java.lang.String contentURI)
throws java.lang.IllegalArgumentException
- Creates a new window.
- Parameters:
contentType
- the window content type
- Throws:
java.lang.IllegalArgumentException
- if the content type is null or the content URI is null
setContext
public void setContext(java.lang.Object context)
- Specified by:
setContext
in interface ContextObject
getURI
public java.lang.String getURI()
setURI
public void setURI(java.lang.String uri)
getPage
public Page getPage()
- Description copied from interface:
Window
- Return the page containing this window.
- Specified by:
getPage
in interface Window
- Returns:
- the page
getContent
public Content getContent()
- Description copied from interface:
Window
- Returns the window content or null if no content can be provided. Content could not be provided
if no content handler has been found in the content handler registry.
- Specified by:
getContent
in interface Window
- Returns:
- the window content
getContentType
public ContentType getContentType()
- Description copied from interface:
Window
- Return the window content type.
- Specified by:
getContentType
in interface Window
- Returns:
- the window content type
getType
public int getType()
- Description copied from interface:
PortalObject
- Returns the type of the object which is a value that discriminates the object type.
- Specified by:
getType
in interface PortalObject
- Specified by:
getType
in class PortalObjectImpl
- Returns:
- the object type.
cloneObject
protected PortalObjectImpl cloneObject()
- Specified by:
cloneObject
in class PortalObjectImpl
destroy
protected void destroy()
- Description copied from class:
PortalObjectImpl
- Overridable callback.
- Overrides:
destroy
in class PortalObjectImpl