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

java.lang.Object
  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.

Author:
Thomas Morgner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.pentaho.reporting.engine.classic.core.Element
ANONYMOUS_ELEMENT_PREFIX
 
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

getElement

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

Parameters:
index - the element position within this section
Returns:
the element
Throws:
IndexOutOfBoundsException - if the index is invalid.

getElementCount

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

Returns:
the number of elements of this section.

setElementAt

public abstract void setElementAt(int position,
                                  Element element)