net.sf.jasperreports.engine.base
Class JRBaseElementGroup

java.lang.Object
  extended by net.sf.jasperreports.engine.base.JRBaseElementGroup
All Implemented Interfaces:
java.io.Serializable, JRChild, JRElementGroup
Direct Known Subclasses:
JRBaseBand, JRBaseCellContents, JRDesignElementGroup

public class JRBaseElementGroup
extends java.lang.Object
implements JRElementGroup, java.io.Serializable

Version:
$Id: JRBaseElementGroup.java 1229 2006-04-19 13:27:35 +0300 (Wed, 19 Apr 2006) teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  java.util.List children
           
protected  JRElementGroup elementGroup
           
 
Constructor Summary
protected JRBaseElementGroup()
           
protected JRBaseElementGroup(JRElementGroup elementGrp, JRBaseObjectFactory factory)
           
 
Method Summary
 java.util.List getChildren()
          Gets a list of all direct children elements or elements groups.
 JRChild getCopy(JRAbstractObjectFactory factory)
           
static JRElement getElementByKey(JRElement[] elements, java.lang.String key)
           
 JRElement getElementByKey(java.lang.String key)
          Gets an element from this group, based on its element 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(java.util.List children)
           
 void writeXml(JRXmlWriter xmlWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

protected java.util.List children

elementGroup

protected JRElementGroup elementGroup
Constructor Detail

JRBaseElementGroup

protected JRBaseElementGroup()

JRBaseElementGroup

protected JRBaseElementGroup(JRElementGroup elementGrp,
                             JRBaseObjectFactory factory)
Method Detail

getChildren

public java.util.List 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(java.util.List 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,
                                        java.lang.String key)

getElementByKey

public JRElement getElementByKey(java.lang.String key)
Description copied from interface: JRElementGroup
Gets an element from this group, based on its element key.

Specified by:
getElementByKey in interface JRElementGroup

getCopy

public JRChild getCopy(JRAbstractObjectFactory factory)
Specified by:
getCopy in interface JRChild

writeXml

public void writeXml(JRXmlWriter xmlWriter)
              throws java.io.IOException
Specified by:
writeXml in interface JRChild
Throws:
java.io.IOException


© 2001-2006 JasperSoft Corporation www.jaspersoft.com