public class RelationalGroup extends Group
ANONYMOUS_ELEMENT_PREFIX
Constructor and Description |
---|
RelationalGroup() |
Modifier and Type | Method and Description |
---|---|
void |
addField(String name)
Adds a field to the group.
|
void |
clearFields() |
RelationalGroup |
clone()
Clones this Element.
|
RelationalGroup |
derive(boolean preserveElementInstanceIds)
Creates a deep copy of this element and regenerates all instance-ids.
|
boolean |
equals(Object obj)
Checks whether the group is equal.
|
GroupDataBody |
findGroupDataBody()
Deprecated.
|
Element |
getElement(int index)
Returns the element stored add the given index.
|
int |
getElementCount()
Returns the number of elements in this section.
|
List<String> |
getFields()
Returns the list of fields for this group.
|
String[] |
getFieldsArray()
Returns the group fields as array.
|
GroupFooter |
getFooter()
Returns the group footer.
|
GroupHeader |
getHeader()
Returns the group header.
|
List<SortConstraint> |
getSortingConstraint() |
int |
hashCode()
Computes a hashcode for this group.
|
boolean |
isGroupChange(DataRow dataRow) |
void |
setBody(GroupBody body) |
void |
setElementAt(int index,
Element element) |
void |
setFields(List<String> c)
Sets the fields for this group.
|
void |
setFieldsArray(String[] fields) |
void |
setFooter(GroupFooter footer)
Sets the footer for the group.
|
void |
setHeader(GroupHeader header)
Sets the header for the group.
|
String |
toString()
Returns a string representation of the group (useful for debugging).
|
getBody, getGeneratedName, getName, isAscendingSortOrder, matches, setAscendingSortOrder
getDefaultStyleSheet, iterator
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, setComputedStyle, setDataSource, setDynamicContent, setElementType, setHRefTarget, setId, setName, setStyleExpression, setVisible
public GroupHeader getHeader()
The group header is a report band that contains elements that should be printed at the start of a group.
public void setHeader(GroupHeader header)
header
- the header (null not permitted).NullPointerException
- if the given header is nullpublic GroupFooter getFooter()
public void setFooter(GroupFooter footer)
footer
- the footer (null not permitted).NullPointerException
- if the given footer is null.public void setFields(List<String> c)
c
- the list containing strings.NullPointerException
- if the given list is null or the list contains null-values.public void clearFields()
public int getElementCount()
Section
getElementCount
in class Section
public void addField(String name)
name
- the field name (null not permitted).NullPointerException
- if the name is nullpublic List<String> getFields()
public void setFieldsArray(String[] fields)
public String[] getFieldsArray()
public String toString()
public boolean equals(Object obj)
public int hashCode()
public boolean isGroupChange(DataRow dataRow)
isGroupChange
in class Group
@Deprecated public GroupDataBody findGroupDataBody()
public RelationalGroup clone()
clone
in interface DataTarget
clone
in class Group
public RelationalGroup derive(boolean preserveElementInstanceIds)
Element
derive
in class Group
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.public Element getElement(int index)
Section
getElement
in class Section
index
- the element position within this sectionpublic void setElementAt(int index, Element element)
setElementAt
in class Section
public List<SortConstraint> getSortingConstraint()
getSortingConstraint
in class Group