1 28 package net.sf.jasperreports.engine.design; 29 30 import net.sf.jasperreports.engine.JRConstants; 31 import net.sf.jasperreports.engine.JRElementGroup; 32 import net.sf.jasperreports.engine.base.JRBaseElementGroup; 33 34 35 39 public class JRDesignElementGroup extends JRBaseElementGroup 40 { 41 42 43 46 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 47 48 49 52 public void setElementGroup(JRElementGroup elementGroup) 53 { 54 this.elementGroup = elementGroup; 55 } 56 57 60 public void addElement(JRDesignElement element) 61 { 62 element.setElementGroup(this); 63 64 this.children.add(element); 65 } 66 67 70 public JRDesignElement removeElement(JRDesignElement element) 71 { 72 element.setElementGroup(null); 73 74 this.children.remove(element); 75 76 return element; 77 } 78 79 82 public void addElementGroup(JRDesignElementGroup elemGrp) 83 { 84 elemGrp.setElementGroup(this); 85 86 this.children.add(elemGrp); 87 } 88 89 92 public JRDesignElementGroup removeElementGroup(JRDesignElementGroup elemGrp) 93 { 94 elemGrp.setElementGroup(null); 95 96 this.children.remove(elemGrp); 97 98 return elemGrp; 99 } 100 101 102 } 103 | Popular Tags |