1 16 package org.apache.cocoon.portal.pluto.om; 17 18 import org.apache.cocoon.portal.layout.impl.CopletLayout; 19 import org.apache.pluto.om.common.ObjectID; 20 import org.apache.pluto.om.entity.PortletEntity; 21 import org.apache.pluto.om.window.PortletWindow; 22 import org.apache.pluto.om.window.PortletWindowCtrl; 23 24 31 public class PortletWindowImpl implements PortletWindow, PortletWindowCtrl { 32 33 34 private ObjectID objectId; 35 private String id; 36 private PortletEntity portletEntity; 37 private CopletLayout layout; 38 39 public PortletWindowImpl(String id) { 40 this.id = id; 41 } 42 43 45 50 public ObjectID getId() { 51 if (objectId==null) { 52 objectId = org.apache.cocoon.portal.pluto.om.common.ObjectIDImpl.createFromString(id); 53 } 54 return objectId; 55 } 56 57 62 public PortletEntity getPortletEntity() { 63 return portletEntity; 64 } 65 66 72 public void setId(String id) { 73 this.id = id; 74 objectId = null; 75 } 76 77 82 public void setPortletEntity(PortletEntity portletEntity) { 83 this.portletEntity = portletEntity; 84 } 85 86 public CopletLayout getLayout() { 87 return this.layout; 88 } 89 90 public void setLayout(CopletLayout layout) { 91 this.layout = layout; 92 } 93 } 94 | Popular Tags |