org.pentaho.reporting.engine.classic.core
Class GroupDataBody

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.Element
      extended by org.pentaho.reporting.engine.classic.core.Section
          extended by org.pentaho.reporting.engine.classic.core.GroupBody
              extended by org.pentaho.reporting.engine.classic.core.GroupDataBody
All Implemented Interfaces:
Serializable, Cloneable, DataTarget, ReportElement

public class GroupDataBody
extends GroupBody

Todo: Document Me

Author:
Thomas Morgner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.pentaho.reporting.engine.classic.core.Element
ANONYMOUS_ELEMENT_PREFIX
 
Constructor Summary
GroupDataBody()
           
 
Method Summary
 Object clone()
          Clones this Element, the datasource and the private stylesheet of this Element.
 Element derive(boolean preserveElementInstanceIds)
          Creates a deep copy of this element and regenerates all instance-ids.
 DetailsFooter getDetailsFooter()
           
 DetailsHeader getDetailsHeader()
           
 ReportElement getElement(int index)
          Returns the element stored add the given index.
 int getElementCount()
          Returns the number of elements in this section.
 ItemBand getItemBand()
           
 NoDataBand getNoDataBand()
           
 void setDetailsFooter(DetailsFooter detailsFooter)
           
 void setDetailsHeader(DetailsHeader detailsHeader)
           
 void setElementAt(int position, Element element)
           
 void setItemBand(ItemBand itemBand)
           
 void setNoDataBand(NoDataBand noDataBand)
           
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.Element
derive, getAttribute, getAttributeExpression, getAttributeExpressionNames, getAttributeExpressionNamespaces, getAttributeNames, getAttributeNamespaces, getAttributes, getChangeTracker, getContentBase, getDataSource, getDefinitionSource, getElementType, getElementTypeName, getHRefTarget, getId, getMetaData, getName, getObjectID, getParent, getParentSection, getReportDefinition, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, getValue, isDynamicContent, isVisible, notifyNodeChildAdded, notifyNodeChildRemoved, notifyNodePropertiesChanged, notifyNodePropertiesChanged, notifyNodeStructureChanged, setAttribute, setAttribute, setAttributeExpression, setDataSource, setDynamicContent, setElementType, setHRefTarget, setId, setName, setStyleExpression, setVisible, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupDataBody

public GroupDataBody()
Method Detail

getNoDataBand

public NoDataBand getNoDataBand()

setNoDataBand

public void setNoDataBand(NoDataBand noDataBand)

getItemBand

public ItemBand getItemBand()

setItemBand

public void setItemBand(ItemBand itemBand)

getDetailsHeader

public DetailsHeader getDetailsHeader()

setDetailsHeader

public void setDetailsHeader(DetailsHeader detailsHeader)

getDetailsFooter

public DetailsFooter getDetailsFooter()

setDetailsFooter

public void setDetailsFooter(DetailsFooter detailsFooter)

getElementCount

public int getElementCount()
Description copied from class: Section
Returns the number of elements in this section.

Specified by:
getElementCount in class Section
Returns:
the number of elements of this section.

getElement

public ReportElement getElement(int index)
Description copied from class: Section
Returns the element stored add the given index.

Specified by:
getElement in class Section
Parameters:
index - the element position within this section
Returns:
the element

setElementAt

public void setElementAt(int position,
                         Element element)
Specified by:
setElementAt in class Section

clone

public Object clone()
             throws CloneNotSupportedException
Clones this Element, the datasource and the private stylesheet of this Element. The clone does no longer have a parent, as the old parent would not recognize that new object anymore.

Specified by:
clone in interface DataTarget
Overrides:
clone in class Element
Returns:
a clone of this Element.
Throws:
CloneNotSupportedException - should never happen.

derive

public Element derive(boolean preserveElementInstanceIds)
               throws CloneNotSupportedException
Description copied from class: Element
Creates a deep copy of this element and regenerates all instance-ids.

Overrides:
derive in class Element
Parameters:
preserveElementInstanceIds - defines whether this call generates new instance-ids for the derived elements. Instance-IDs are used by the report processor to recognize reoccurring elements and must not changed within the report run. Outside of the report processors new instance ids should be generated at all times to separate instances and to make them uniquely identifiable.
Returns:
the copy of the element.
Throws:
CloneNotSupportedException