public class CrosstabCellBody extends GroupBody
ANONYMOUS_ELEMENT_PREFIX
Constructor and Description |
---|
CrosstabCellBody() |
Modifier and Type | Method and Description |
---|---|
void |
addElement(CrosstabCell element)
Adds a report element to the band.
|
void |
addElement(int position,
CrosstabCell element)
Adds a report element to the band.
|
void |
clear() |
CrosstabCellBody |
clone()
Clones this band and all elements contained in this band.
|
CrosstabCellBody |
derive(boolean preserveElementInstanceIds)
Creates a deep copy of this element and regenerates all instance-ids.
|
CrosstabCell |
findElement(String rowKeys,
String colKeys)
Returns the matching crosstab-cell for the given key set.
|
Element |
getElement(int index)
Returns the element stored add the given index.
|
int |
getElementCount()
Returns the number of elements in this band.
|
Group |
getGroup() |
DetailsHeader |
getHeader()
Returns the group header.
|
void |
removeElement(Element e)
Removes an element from the band.
|
void |
setElementAt(int position,
Element element) |
void |
setHeader(DetailsHeader header)
Sets the header for the group.
|
String |
toString()
Returns a string representation of the band, useful mainly for debugging purposes.
|
getDefaultStyleSheet, iterator, registerAsChild, unregisterAsChild, unregisterParent, validateLooping
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, getName, getObjectID, getParent, getParentSection, getReportDefinition, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, isDynamicContent, isVisible, notifyElement, notifyNodeChildAdded, notifyNodeChildRemoved, notifyNodePropertiesChanged, notifyNodePropertiesChanged, notifyNodeStructureChanged, setAttribute, setAttribute, setAttributeExpression, setChangeTracker, setComputedStyle, setDataSource, setDynamicContent, setElementType, setHRefTarget, setId, setName, setParent, setStyleExpression, setVisible, updateChangedFlagInternal, updateInternalChangeFlag
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public DetailsHeader getHeader()
The group header is a report band that contains elements that should be printed at the start of a group.
public void setHeader(DetailsHeader header)
header
- the header (null not permitted).NullPointerException
- if the given header is nullpublic void addElement(CrosstabCell element)
element
- the element that should be addedNullPointerException
- if the given element is nullIllegalArgumentException
- if the position is invalid, either negative or greater than the number of elements in this band or if the
given element is a parent of this element.public void addElement(int position, CrosstabCell element)
position
- the position where to insert the elementelement
- the element that should be addedNullPointerException
- if the given element is nullIllegalArgumentException
- if the position is invalid, either negative or greater than the number of elements in this band or if the
given element is a parent of this element.public CrosstabCell findElement(String rowKeys, String colKeys)
rowKeys
- the known row-keys for the lookup.colKeys
- the known col-keys for the lookup.null
if there is no such element.NullPointerException
- if the given name is null.public void removeElement(Element e)
removeElement
in class Section
e
- the element to be removed.NullPointerException
- if the given element is null.public void setElementAt(int position, Element element)
setElementAt
in class Section
public void clear()
public int getElementCount()
getElementCount
in class Section
public Element getElement(int index)
getElement
in class Section
index
- the element position within this bandIndexOutOfBoundsException
- if the index is invalid.public String toString()
public CrosstabCellBody clone()
clone
in interface DataTarget
clone
in class Section
public CrosstabCellBody derive(boolean preserveElementInstanceIds)
derive
in class Section
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.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.