org.outerj.grouping
Class Group
java.lang.Object
org.outerj.grouping.Group
- public class Group
- extends java.lang.Object
This class represents a specific group. It has startRow and endRow properties which
point to the rows in the Table
where this group starts end ends. It also has
a list of child groups, and a list of summary fields.
The Group-tree is usually constructed by the Grouper
.
The summaries are created by the CalculateSummariesVisitor
.
Constructor Summary |
Group()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Group
public Group()
setStartRow
public void setStartRow(int row)
setEndRow
public void setEndRow(int row)
setMainSummary
public void setMainSummary(Group.SummaryField mainSummary)
getStartRow
public int getStartRow()
getEndRow
public int getEndRow()
getFormattedValue
public java.lang.String getFormattedValue(java.util.Locale locale)
getLabel
public java.lang.String getLabel()
getSummaryFields
public java.util.List getSummaryFields()
addGroup
public void addGroup(Group group)
hasChildGroups
public boolean hasChildGroups()
accept
public void accept(GroupVisitor groupVisitor)
throws java.lang.Exception
- Throws:
java.lang.Exception
addSummaryField
public void addSummaryField(java.lang.String id,
boolean error,
java.lang.Object value,
ValueFormatter valueFormatter,
java.lang.String label,
java.lang.String alignColumn)
addSummaryField
public void addSummaryField(Group.SummaryField newSummary)
dump
public void dump(int level)
- Parameters:
level
- the higher the level, the more the dump will be indented (by 2*level spaces)