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, CompiledCell, JRBaseBand, JRBaseCellContents, JRDesignElementGroup
public class JRBaseElementGroup
- extends Object
- implements JRElementGroup, Serializable
- Version:
- $Id: JRBaseElementGroup.java 5180 2012-03-29 13:23:12Z teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
children
protected List<JRChild> children
elementGroup
protected JRElementGroup elementGroup
JRBaseElementGroup
protected JRBaseElementGroup()
JRBaseElementGroup
protected JRBaseElementGroup(JRElementGroup elementGrp,
JRBaseObjectFactory factory)
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 interface JRElementGroup
getElementGroup
public JRElementGroup getElementGroup()
- Description copied from interface:
JRElementGroup
- Gets the parent element group.
- Specified by:
getElementGroup in interface JRElementGroup
- Returns:
- an instance of this class, or null if this is the root group.
getElements
public static JRElement[] getElements(List<JRChild> children)
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 interface JRElementGroup
getElementByKey
public static JRElement getElementByKey(JRElement[] elements,
String key)
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 interface JRElementGroup
visit
public void visit(JRVisitor visitor)
- Specified by:
visit in interface JRVisitable
clone
public Object clone()
- Specified by:
clone in interface JRCloneable- Overrides:
clone in class Object
clone
public Object clone(JRElementGroup parentGroup)
- Specified by:
clone in interface JRChild
Copyright © 2012. All Rights Reserved.