Class CrosstabOtherGroup
- 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.CrosstabOtherGroup
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Element>
,DataTarget
,ReportElement
public class CrosstabOtherGroup 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 CrosstabOtherGroup()
CrosstabOtherGroup(CrosstabCellBody body)
CrosstabOtherGroup(CrosstabColumnGroupBody body)
CrosstabOtherGroup(GroupBody body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CrosstabOtherGroup
clone()
Clones this Element.protected GroupBody
createDefaultBody()
CrosstabOtherGroup
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()
GroupFooter
getFooter()
Returns the group footer.GroupHeader
getHeader()
Returns the group header.List<SortConstraint>
getSortingConstraint()
boolean
isGroupChange(DataRow dataRow)
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
setFooter(GroupFooter footer)
Sets the footer for the group.void
setHeader(GroupHeader header)
Sets the header for the group.-
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
-
CrosstabOtherGroup
public CrosstabOtherGroup()
-
CrosstabOtherGroup
public CrosstabOtherGroup(GroupBody body)
-
CrosstabOtherGroup
public CrosstabOtherGroup(CrosstabCellBody body)
-
CrosstabOtherGroup
public CrosstabOtherGroup(CrosstabColumnGroupBody body)
-
-
Method Detail
-
getHeader
public GroupHeader getHeader()
Returns the group header.The group header is a report band that contains elements that should be printed at the start of a group.
- Returns:
- the group header.
-
setHeader
public void setHeader(GroupHeader header)
Sets the header for the group.- Parameters:
header
- the header (null not permitted).- Throws:
NullPointerException
- if the given header is null
-
getFooter
public GroupFooter getFooter()
Returns the group footer.- Returns:
- the footer.
-
setFooter
public void setFooter(GroupFooter footer)
Sets the footer for the group.- Parameters:
footer
- the footer (null not permitted).- Throws:
NullPointerException
- if the given footer is null.
-
clone
public CrosstabOtherGroup clone()
Clones this Element.- Specified by:
clone
in interfaceDataTarget
- Overrides:
clone
in classGroup
- Returns:
- a clone of this element.
-
derive
public CrosstabOtherGroup 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.
-
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.
-
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
-
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.
-
setElementAt
public void setElementAt(int index, Element element)
- Specified by:
setElementAt
in classSection
-
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
-
getSortingConstraint
public List<SortConstraint> getSortingConstraint()
- Specified by:
getSortingConstraint
in classGroup
-
-