Package net.sf.jasperreports.engine.base
Class JRBaseElementGroup
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseElementGroup
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,JRChild,JRCloneable,JRElementGroup,JRVisitable
- Direct Known Subclasses:
BaseListContents,CompiledBaseCell,JRBaseBand,JRBaseCellContents,JRDesignElementGroup
public class JRBaseElementGroup extends java.lang.Object implements JRElementGroup, java.io.Serializable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<JRChild>childrenprotected JRElementGroupelementGroup
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRBaseElementGroup()protectedJRBaseElementGroup(JRElementGroup elementGrp, JRBaseObjectFactory factory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()java.lang.Objectclone(JRElementGroup parentGroup)java.util.List<JRChild>getChildren()Gets a list of all direct children elements or elements groups.JRElementgetElementByKey(java.lang.String key)Gets an element from this group, based on its element key.static JRElementgetElementByKey(JRElement[] elements, java.lang.String key)JRElementGroupgetElementGroup()Gets the parent element group.JRElement[]getElements()Gets an array containing all the elements and element groups in the hierarchy.static JRElement[]getElements(java.util.List<JRChild> children)voidvisit(JRVisitor visitor)
-
-
-
Field Detail
-
children
protected java.util.List<JRChild> children
-
elementGroup
protected JRElementGroup elementGroup
-
-
Constructor Detail
-
JRBaseElementGroup
protected JRBaseElementGroup()
-
JRBaseElementGroup
protected JRBaseElementGroup(JRElementGroup elementGrp, JRBaseObjectFactory factory)
-
-
Method Detail
-
getChildren
public java.util.List<JRChild> getChildren()
Description copied from interface:JRElementGroupGets a list of all direct children elements or elements groups.- Specified by:
getChildrenin interfaceJRElementGroup
-
getElementGroup
public JRElementGroup getElementGroup()
Description copied from interface:JRElementGroupGets the parent element group.- Specified by:
getElementGroupin interfaceJRElementGroup- Returns:
- an instance of this class, or null if this is the root group.
-
getElements
public JRElement[] getElements()
Description copied from interface:JRElementGroupGets an array containing all the elements and element groups in the hierarchy.- Specified by:
getElementsin interfaceJRElementGroup
-
getElementByKey
public static JRElement getElementByKey(JRElement[] elements, java.lang.String key)
-
getElementByKey
public JRElement getElementByKey(java.lang.String key)
Description copied from interface:JRElementGroupGets an element from this group, based on its element key.- Specified by:
getElementByKeyin interfaceJRElementGroup
-
visit
public void visit(JRVisitor visitor)
- Specified by:
visitin interfaceJRVisitable
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classjava.lang.Object
-
clone
public java.lang.Object clone(JRElementGroup parentGroup)
-
-