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>
children
protected JRElementGroup
elementGroup
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRBaseElementGroup()
protected
JRBaseElementGroup(JRElementGroup elementGrp, JRBaseObjectFactory factory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Object
clone(JRElementGroup parentGroup)
List<JRChild>
getChildren()
Gets a list of all direct children elements or elements groups.JRElement
getElementByKey(String key)
Gets an element from this group, based on its element key.static JRElement
getElementByKey(JRElement[] elements, String key)
JRElementGroup
getElementGroup()
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)
void
visit(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:JRElementGroup
Gets a list of all direct children elements or elements groups.- Specified by:
getChildren
in interfaceJRElementGroup
-
getElementGroup
public JRElementGroup getElementGroup()
Description copied from interface:JRElementGroup
Gets the parent element group.- Specified by:
getElementGroup
in interfaceJRElementGroup
- Returns:
- an instance of this class, or null if this is the root group.
-
getElements
public JRElement[] getElements()
Description copied from interface:JRElementGroup
Gets an array containing all the elements and element groups in the hierarchy.- Specified by:
getElements
in interfaceJRElementGroup
-
getElementByKey
public JRElement getElementByKey(String key)
Description copied from interface:JRElementGroup
Gets an element from this group, based on its element key.- Specified by:
getElementByKey
in interfaceJRElementGroup
-
visit
public void visit(JRVisitor visitor)
- Specified by:
visit
in interfaceJRVisitable
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
clone
public Object clone(JRElementGroup parentGroup)
-
-