Class CrosstabRowGroup
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.Element
-
- org.pentaho.reporting.engine.classic.core.Section
-
- org.pentaho.reporting.engine.classic.core.Group
-
- org.pentaho.reporting.engine.classic.core.CrosstabRowGroup
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Element>
,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.Element
ANONYMOUS_ELEMENT_PREFIX
-
-
Constructor Summary
Constructors Constructor Description CrosstabRowGroup()
CrosstabRowGroup(CrosstabCellBody body)
CrosstabRowGroup(CrosstabColumnGroupBody body)
CrosstabRowGroup(GroupBody body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CrosstabRowGroup
clone()
Clones this Element.protected GroupBody
createDefaultBody()
CrosstabRowGroup
derive(boolean preserveElementInstanceIds)
Creates a deep copy of this element and regenerates all instance-ids.Element
getElement(int index)
Returns the element stored add the given index.int
getElementCount()
Returns the number of elements in this section.String
getField()
CrosstabHeader
getHeader()
List<SortConstraint>
getSortingConstraint()
CrosstabSummaryHeader
getSummaryHeader()
CrosstabTitleHeader
getTitleHeader()
boolean
isGroupChange(DataRow dataRow)
boolean
isPrintSummary()
protected void
removeElement(Element element)
Removes an element from the section.void
setBody(GroupBody body)
void
setElementAt(int index, Element element)
void
setField(String field)
void
setHeader(CrosstabHeader titleFooter)
void
setPrintSummary(boolean printSummary)
void
setSummaryHeader(CrosstabSummaryHeader summaryHeader)
void
setTitleHeader(CrosstabTitleHeader titleHeader)
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.Group
getBody, getGeneratedName, getName, isAscendingSortOrder, mapFields, matches, notifyElement, setAscendingSortOrder
-
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, getObjectID, getParent, getParentSection, getReportDefinition, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, isDynamicContent, isVisible, 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
-
-
-
-
Constructor Detail
-
CrosstabRowGroup
public CrosstabRowGroup()
-
CrosstabRowGroup
public CrosstabRowGroup(GroupBody body)
-
CrosstabRowGroup
public CrosstabRowGroup(CrosstabCellBody body)
-
CrosstabRowGroup
public CrosstabRowGroup(CrosstabColumnGroupBody body)
-
-
Method Detail
-
getTitleHeader
public CrosstabTitleHeader getTitleHeader()
-
setTitleHeader
public void setTitleHeader(CrosstabTitleHeader titleHeader)
-
getHeader
public CrosstabHeader getHeader()
-
setHeader
public void setHeader(CrosstabHeader titleFooter)
-
getSummaryHeader
public CrosstabSummaryHeader getSummaryHeader()
-
setSummaryHeader
public void setSummaryHeader(CrosstabSummaryHeader summaryHeader)
-
getField
public String getField()
-
setField
public void setField(String field)
-
createDefaultBody
protected GroupBody createDefaultBody()
- Specified by:
createDefaultBody
in classGroup
-
isGroupChange
public boolean isGroupChange(DataRow dataRow)
- Specified by:
isGroupChange
in classGroup
-
clone
public CrosstabRowGroup clone()
Description copied from class:Group
Clones this Element.- Specified by:
clone
in interfaceDataTarget
- Overrides:
clone
in classGroup
- Returns:
- a clone of this element.
-
derive
public CrosstabRowGroup derive(boolean preserveElementInstanceIds)
Description copied from class:Element
Creates a deep copy of this element and regenerates all instance-ids.- Overrides:
derive
in classGroup
- 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.
-
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 index, Element element)
- Specified by:
setElementAt
in classSection
-
removeElement
protected void removeElement(Element element)
Description copied from class:Section
Removes an element from the section.- Overrides:
removeElement
in classGroup
- Parameters:
element
- the element to be section.
-
isPrintSummary
public boolean isPrintSummary()
-
setPrintSummary
public void setPrintSummary(boolean printSummary)
-
getSortingConstraint
public List<SortConstraint> getSortingConstraint()
- Specified by:
getSortingConstraint
in classGroup
-
-