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

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

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 186965 2004-07-09 18:20:50Z weaver $
Author:
David Sean Taylor
See Also:
Serialized Form

Field Summary
private static int counter
           
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
 void setId(String id)
          binds an identifier to this portlet window
 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 org.apache.pluto.om.entity.PortletEntity portletEntity

counter

private static int counter
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


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