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

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.Group
              extended by org.pentaho.reporting.engine.classic.core.CrosstabRowGroup
All Implemented Interfaces:
Serializable, Cloneable, DataTarget, ReportElement

public class CrosstabRowGroup
extends Group

Can have either a row- or a column body.

Author:
Thomas Morgner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.pentaho.reporting.engine.classic.core.Group
ANONYMOUS_GROUP_PREFIX
 
Fields inherited from class org.pentaho.reporting.engine.classic.core.Element
ANONYMOUS_ELEMENT_PREFIX
 
Constructor Summary
CrosstabRowGroup()
           
 
Method Summary
 Object clone()
          Clones this Element.
 Element derive(boolean preserveElementInstanceIds)
          Creates a deep copy of this element and regenerates all instance-ids.
 ReportElement getElement(int index)
          Returns the element stored add the given index.
 int getElementCount()
          Returns the number of elements in this section.
 String getField()
           
 CrosstabSummaryFooter getSummaryFooter()
           
 CrosstabSummaryHeader getSummaryHeader()
           
 CrosstabTitleFooter getTitleFooter()
           
 CrosstabTitleHeader getTitleHeader()
           
 boolean isGroupChange(DataRow dataRow)
           
 void setBody(GroupBody body)
           
 void setElementAt(int index, Element element)
           
 void setField(String field)
           
 void setSummaryFooter(CrosstabSummaryFooter summaryFooter)
           
 void setSummaryHeader(CrosstabSummaryHeader summaryHeader)
           
 void setTitleFooter(CrosstabTitleFooter titleFooter)
           
 void setTitleHeader(CrosstabTitleHeader titleHeader)
           
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.Group
getBody, getFooter, getHeader, setFooter, setHeader
 
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

CrosstabRowGroup

public CrosstabRowGroup()
Method Detail

getTitleHeader

public CrosstabTitleHeader getTitleHeader()

setTitleHeader

public void setTitleHeader(CrosstabTitleHeader titleHeader)

getTitleFooter

public CrosstabTitleFooter getTitleFooter()

setTitleFooter

public void setTitleFooter(CrosstabTitleFooter titleFooter)

getSummaryHeader

public CrosstabSummaryHeader getSummaryHeader()

setSummaryHeader

public void setSummaryHeader(CrosstabSummaryHeader summaryHeader)

getSummaryFooter

public CrosstabSummaryFooter getSummaryFooter()

setSummaryFooter

public void setSummaryFooter(CrosstabSummaryFooter summaryFooter)

getField

public String getField()

setField

public void setField(String field)

setBody

public void setBody(GroupBody body)
Overrides:
setBody in class Group

isGroupChange

public boolean isGroupChange(DataRow dataRow)
Specified by:
isGroupChange in class Group

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from class: Group
Clones this Element.

Specified by:
clone in interface DataTarget
Overrides:
clone in class Group
Returns:
a clone of this element.
Throws:
CloneNotSupportedException - should never be thrown.

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 Group
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

getElementCount

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

Overrides:
getElementCount in class Group
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.

Overrides:
getElement in class Group
Parameters:
index - the element position within this section
Returns:
the element

setElementAt

public void setElementAt(int index,
                         Element element)
Overrides:
setElementAt in class Group