Class Group

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class Group
    extends Section
    A report group. A group is a repeated section which is bound to an expression.

    Default Behaviour

    Whether a new group should be started is evaluated by the group's expression. If that expression returns Boolean.TRUE, a new group instance is started. (That expression answers the Questions: 'Does this group instance end here?').

    If the group expression is invalid or there is no group expression at all, a group will consume all rows until the datasource is no longer advanceable.

    Author:
    David Gilbert, Thomas Morgner
    See Also:
    Serialized Form
    • Constructor Detail

      • Group

        public Group()
        Constructs a group with no fields, and an empty header and footer.
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a string representation of the group (useful for debugging).
        Overrides:
        toString in class Section
        Returns:
        A string.
      • getGroupingExpression

        public Expression getGroupingExpression()
      • setGroupingExpression

        public void setGroupingExpression​(Expression groupingExpression)
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class Section
        Throws:
        java.lang.CloneNotSupportedException