|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.GroupList
public class GroupList
The group list is used to store groups in a ordered way. The less specific groups are guaranteed to be listed before the more specific subgroups.
Groups are ordered by comparing the declared fieldnames for the groups. A subgroup of an group must contain all fields from its parent plus at least one new field. This implementation is not synchronized. The group list cannot be empty. JFreeReport needs at least one group instance to work as expected. By default, this default instance does not define any fields (and therefore contains the complete report) and has no Bands defined (rendering it invisible). You cannot remove that group. Every attempt to remove the last group will recreates a new default group. As of version 0.8.10, this list only exists for the support for the legacy parsing.
Field Summary | |
---|---|
static String |
DEFAULT_GROUP_NAME
Deprecated. The name of the automaticly created default group. |
Constructor Summary | |
---|---|
GroupList()
Deprecated. Constructs a new group list, with only a default group inside. |
Method Summary | |
---|---|
void |
add(RelationalGroup o)
Deprecated. Adds a group to the list. |
void |
addAll(Collection c)
Deprecated. Adds all groups of the collection to this group list. |
void |
clear()
Deprecated. Clears the list. |
Object |
clone()
Deprecated. Clones the group list and all contained groups. |
Group |
constructRootGroup()
Deprecated. Creates a hierarchical group structure and moves the data group body to the inner most group. |
Group |
get(int i)
Deprecated. Returns the group at a given position in the list. |
Group |
getGroupByName(String name)
Deprecated. Searches a group by its defined name. |
Iterator |
iterator()
Deprecated. Returns an iterator for the groups of the list. |
boolean |
remove(RelationalGroup o)
Deprecated. Removes an group from the list. |
int |
size()
Deprecated. Returns the number of groups in the list. |
String |
toString()
Deprecated. Returns a string representation of the list (useful for debugging). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_GROUP_NAME
Constructor Detail |
---|
public GroupList()
Method Detail |
---|
public Group get(int i)
i
- the position index (zero-based).
public boolean remove(RelationalGroup o)
o
- the group that should be removed.
NullPointerException
- if the given group object is null.public void clear()
public void add(RelationalGroup o)
o
- the group object.public void addAll(Collection c)
c
- the collection that contains the groups.
NullPointerException
- if the given collection is null.
ClassCastException
- if the collection does not contain groups.public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- if cloning the element failed.Cloneable
public Iterator iterator()
public int size()
public String toString()
toString
in class Object
public Group getGroupByName(String name)
name
- the name of the group.
public Group constructRootGroup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |