com.jrefinery.report.states
Class PostGroupFooterState

java.lang.Object
  |
  +--com.jrefinery.report.states.ReportState
        |
        +--com.jrefinery.report.states.PostGroupFooterState
All Implemented Interfaces:
java.lang.Cloneable, JFreeReportConstants

public final class PostGroupFooterState
extends ReportState

In this state the active group is closed. After that the next state gets activated:

If there is no more data and no more open groups, finish the report and activate the PreReportFooterState state. If there is no more data but there are open groups, close them by activating the next PreGroupFooterState state.

If there is more data, check whether there are any open groups. If there is no parent group or the parent group is not finished, open the next sub group by activating PreGroupHeaderState. If there is a parent group and this parent is finished, close the parent by activating the PreGroupFooterState state.

Author:
David Gilbert, Thomas Morgner

Field Summary
 
Fields inherited from class com.jrefinery.report.states.ReportState
BEFORE_FIRST_GROUP, BEFORE_FIRST_PAGE, BEFORE_FIRST_ROW
 
Fields inherited from interface com.jrefinery.report.JFreeReportConstants
NAME_PROPERTY, REPORT_DATE_PROPERTY, REPORT_DEFINITION_CONTENTBASE, REPORT_DEFINITION_SOURCE, REPORT_PAGECOUNT_PROPERTY, REPORT_PAGEFORMAT_PROPERTY, REPORT_PREPARERUN_PROPERTY
 
Constructor Summary
PostGroupFooterState(ReportState previous)
          Creates a new 'POST-GROUP-FOOTER' report state.
 
Method Summary
 ReportState advance()
          Advances from this state to the next.
 
Methods inherited from class com.jrefinery.report.states.ReportState
advanceItem, clone, createStateProgress, enterGroup, fireGroupFinishedEvent, fireGroupStartedEvent, fireItemsAdvancedEvent, fireItemsFinishedEvent, fireItemsStartedEvent, fireLayoutCompleteEvent, firePageCanceledEvent, firePageFinishedEvent, firePageStartedEvent, firePrepareEvent, fireReportDoneEvent, fireReportFinishedEvent, fireReportInitializedEvent, fireReportStartedEvent, getAncestorHashcode, getCurrentDataItem, getCurrentDisplayItem, getCurrentGroupIndex, getCurrentPage, getDataRow, getDataRowBackend, getDataRowConnector, getErrors, getFunctions, getLevel, getLevels, getNumberOfRows, getProperties, getProperty, getProperty, getReport, isAncestor, isErrorOccured, isFinish, isPrefetchState, isPrepareRun, isProceeding, isStart, leaveGroup, nextPage, resetState, setAncestorHashcode, setCurrentGroupIndex, setCurrentItem, setCurrentPage, setFunctions, setProperty, updateDataRow
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostGroupFooterState

public PostGroupFooterState(ReportState previous)
Creates a new 'POST-GROUP-FOOTER' report state.

Parameters:
previous - the previous report state.
Method Detail

advance

public ReportState advance()
Advances from this state to the next.

Specified by:
advance in class ReportState
Returns:
the next report state.