org.apache.jetspeed.om.window.impl
Class PortletWindowImpl

java.lang.Object
  extended by org.apache.jetspeed.om.window.impl.PortletWindowImpl
All Implemented Interfaces:
Serializable, org.apache.pluto.om.Controller, org.apache.pluto.om.Model, org.apache.pluto.om.window.PortletWindow, org.apache.pluto.om.window.PortletWindowCtrl

public class PortletWindowImpl
extends Object
implements org.apache.pluto.om.window.PortletWindow, org.apache.pluto.om.window.PortletWindowCtrl, Serializable

The PortletWindow implementation represents a single window of an portlet instance as it can be shown only once on a single page. Adding the same portlet e.g. twice on a page results in two different windows.

Version:
$Id: PortletWindowImpl.java 589933 2007-10-30 01:51:50Z woonsan $
Author:
David Sean Taylor
See Also:
Serialized Form

Field Summary
private  boolean instantlyRendered
           
private  org.apache.pluto.om.common.ObjectID objectId
           
private  org.apache.pluto.om.entity.PortletEntity portletEntity
           
 
Constructor Summary
PortletWindowImpl()
           
PortletWindowImpl(org.apache.pluto.om.common.ObjectID oid)
           
PortletWindowImpl(String id)
           
 
Method Summary
 org.apache.pluto.om.common.ObjectID getId()
          Returns the identifier of this portlet instance window as object id
 org.apache.pluto.om.entity.PortletEntity getPortletEntity()
          Returns the portlet entity
 boolean isInstantlyRendered()
          Checks if the content is instantly rendered from JPT.
 void setId(String id)
          binds an identifier to this portlet window
 void setInstantlyRendered(boolean instantlyRendered)
          Sets flag that the content is instantly rendered from JPT.
 void setPortletEntity(org.apache.pluto.om.entity.PortletEntity portletEntity)
          binds a portlet instance to this portlet window
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectId

private org.apache.pluto.om.common.ObjectID objectId

portletEntity

private transient org.apache.pluto.om.entity.PortletEntity portletEntity

instantlyRendered

private boolean instantlyRendered
Constructor Detail

PortletWindowImpl

public PortletWindowImpl(String id)

PortletWindowImpl

public PortletWindowImpl(org.apache.pluto.om.common.ObjectID oid)

PortletWindowImpl

public PortletWindowImpl()
Method Detail

getId

public org.apache.pluto.om.common.ObjectID getId()
Returns the identifier of this portlet instance window as object id

Specified by:
getId in interface org.apache.pluto.om.window.PortletWindow
Returns:
the object identifier

getPortletEntity

public org.apache.pluto.om.entity.PortletEntity getPortletEntity()
Returns the portlet entity

Specified by:
getPortletEntity in interface org.apache.pluto.om.window.PortletWindow
Returns:
the portlet entity

setId

public void setId(String id)
binds an identifier to this portlet window

Specified by:
setId in interface org.apache.pluto.om.window.PortletWindowCtrl
Parameters:
id - the new identifier

setPortletEntity

public void setPortletEntity(org.apache.pluto.om.entity.PortletEntity portletEntity)
binds a portlet instance to this portlet window

Specified by:
setPortletEntity in interface org.apache.pluto.om.window.PortletWindowCtrl
Parameters:
portletEntity - a portlet entity object

setInstantlyRendered

public void setInstantlyRendered(boolean instantlyRendered)
Sets flag that the content is instantly rendered from JPT.


isInstantlyRendered

public boolean isInstantlyRendered()
Checks if the content is instantly rendered from JPT.



Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.