1 16 package org.apache.cocoon.portal.layout.impl; 17 18 import org.apache.cocoon.portal.coplet.CopletInstanceData; 19 import org.apache.cocoon.portal.layout.AbstractLayout; 20 import org.apache.cocoon.portal.layout.Layout; 21 22 31 public final class CopletLayout extends AbstractLayout { 32 33 private CopletInstanceData copletInstanceData; 34 35 public void setCopletInstanceData(CopletInstanceData cid) { 36 this.copletInstanceData = cid; 37 if ( this.getId() == null ) { 38 this.setId(cid.getId()); 39 } 40 } 41 42 public CopletInstanceData getCopletInstanceData() { 43 return this.copletInstanceData; 44 } 45 46 49 protected Object clone() throws CloneNotSupportedException { 50 CopletLayout clone = (CopletLayout)super.clone(); 51 52 clone.copletInstanceData = null; 53 54 return clone; 55 } 56 57 60 public Layout copy() { 61 CopletLayout clone = (CopletLayout)super.copy(); 62 63 if ( this.copletInstanceData != null ) { 64 clone.copletInstanceData = this.copletInstanceData.copy(); 65 } 66 67 return clone; 68 } 69 } 70 | Popular Tags |