Class GroupDataBody
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.Element
-
- org.pentaho.reporting.engine.classic.core.Section
-
- org.pentaho.reporting.engine.classic.core.GroupBody
-
- org.pentaho.reporting.engine.classic.core.GroupDataBody
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Element>
,DataTarget
,ReportElement
public class GroupDataBody extends GroupBody
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.pentaho.reporting.engine.classic.core.Element
ANONYMOUS_ELEMENT_PREFIX
-
-
Constructor Summary
Constructors Constructor Description GroupDataBody()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupDataBody
clone()
Clones this Element, the datasource and the private stylesheet of this Element.GroupDataBody
derive(boolean preserveElementInstanceIds)
Creates a deep copy of this element and regenerates all instance-ids.DetailsFooter
getDetailsFooter()
DetailsHeader
getDetailsHeader()
Element
getElement(int index)
Returns the element stored add the given index.int
getElementCount()
Returns the number of elements in this section.Group
getGroup()
ItemBand
getItemBand()
NoDataBand
getNoDataBand()
protected void
removeElement(Element element)
Removes an element from the section.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.Section
getDefaultStyleSheet, iterator, registerAsChild, unregisterAsChild, unregisterParent, validateLooping
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.Element
copyAttributes, copyInto, derive, getAttribute, getAttributeExpression, getAttributeExpressionNames, getAttributeExpressionNamespaces, getAttributeExpressions, getAttributeNames, getAttributeNamespaces, getAttributes, getAttributeTyped, getChangeTracker, getChildElementByType, getChildElementsByName, getChildElementsByType, getComputedStyle, getContentBase, getDataSource, getDefinitionSource, getElementContext, getElementType, getElementTypeName, getFirstAttribute, getHRefTarget, getId, getMasterReport, getMetaData, getName, getObjectID, getParent, getParentSection, getReportDefinition, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, isDynamicContent, isVisible, notifyElement, notifyNodeChildAdded, notifyNodeChildRemoved, notifyNodePropertiesChanged, notifyNodePropertiesChanged, notifyNodeStructureChanged, setAttribute, setAttribute, setAttributeExpression, setChangeTracker, setComputedStyle, setDataSource, setDynamicContent, setElementType, setHRefTarget, setId, setName, setParent, setStyleExpression, setVisible, toString, updateChangedFlagInternal, updateInternalChangeFlag
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
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)
-
removeElement
protected void removeElement(Element element)
Description copied from class:Section
Removes an element from the section.- Specified by:
removeElement
in classSection
- Parameters:
element
- the element to be section.
-
getElementCount
public int getElementCount()
Description copied from class:Section
Returns the number of elements in this section.- Specified by:
getElementCount
in classSection
- Returns:
- the number of elements of this section.
-
getElement
public Element getElement(int index)
Description copied from class:Section
Returns the element stored add the given index.- Specified by:
getElement
in classSection
- Parameters:
index
- the element position within this section- Returns:
- the element
-
setElementAt
public void setElementAt(int position, Element element)
- Specified by:
setElementAt
in classSection
-
clone
public GroupDataBody clone()
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 interfaceDataTarget
- Overrides:
clone
in classSection
- Returns:
- a clone of this Element.
-
derive
public GroupDataBody derive(boolean preserveElementInstanceIds)
Description copied from class:Element
Creates a deep copy of this element and regenerates all instance-ids.- Overrides:
derive
in classSection
- 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.
-
-