Class Section

  extended by org.pentaho.reporting.engine.classic.core.Element
      extended by org.pentaho.reporting.engine.classic.core.Section
All Implemented Interfaces:
Serializable, Cloneable, DataTarget, ReportElement
Direct Known Subclasses:
AbstractReportDefinition, Band, Group, GroupBody, ReportDefinitionImpl

public abstract class Section
extends Element

A section is a small-scale band that allows to access the child elements but does not define how childs get added or organized in the section. Defining a sensible order is left to the subclass-implementation.

Thomas Morgner
See Also:
Serialized Form

Field Summary
Fields inherited from class org.pentaho.reporting.engine.classic.core.Element
Method Summary
abstract  ReportElement getElement(int index)
          Returns the element stored add the given index.
abstract  int getElementCount()
          Returns the number of elements in this section.
abstract  void setElementAt(int position, Element element)
Methods inherited from class org.pentaho.reporting.engine.classic.core.Element
clone, derive, 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

Method Detail


public abstract ReportElement getElement(int index)
Returns the element stored add the given index.

index - the element position within this section
the element
IndexOutOfBoundsException - if the index is invalid.


public abstract int getElementCount()
Returns the number of elements in this section.

the number of elements of this section.


public abstract void setElementAt(int position,
                                  Element element)