Package net.sf.jasperreports.engine.base
Class JRBaseElementGroup
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseElementGroup
-
- All Implemented Interfaces:
Serializable,Cloneable,JRChild,JRCloneable,JRElementGroup,JRVisitable
- Direct Known Subclasses:
BaseListContents,CompiledBaseCell,JRBaseBand,JRBaseCellContents,JRDesignElementGroup
public class JRBaseElementGroup extends Object implements JRElementGroup, Serializable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected 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 Objectclone()Objectclone(JRElementGroup parentGroup)List<JRChild>getChildren()Gets a list of all direct children elements or elements groups.JRElementgetElementByKey(String key)Gets an element from this group, based on its element key.static JRElementgetElementByKey(JRElement[] elements, 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(List<JRChild> children)voidvisit(JRVisitor visitor)
-
-
-
Field Detail
-
elementGroup
protected JRElementGroup elementGroup
-
-
Constructor Detail
-
JRBaseElementGroup
protected JRBaseElementGroup()
-
JRBaseElementGroup
protected JRBaseElementGroup(JRElementGroup elementGrp, JRBaseObjectFactory factory)
-
-
Method Detail
-
getChildren
public 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 JRElement getElementByKey(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 Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
clone
public Object clone(JRElementGroup parentGroup)
-
-