org.jfree.report.states
Class PostReportInitializedState

java.lang.Object
  extended byorg.jfree.report.states.ReportState
      extended byorg.jfree.report.states.PostReportInitializedState
All Implemented Interfaces:
java.lang.Cloneable

public class PostReportInitializedState
extends ReportState

Prints the report header. This state is the second state in the report processing and was created after the report was initialized.

Author:
Thomas Morgner

Field Summary
 
Fields inherited from class org.jfree.report.states.ReportState
BEFORE_FIRST_GROUP, BEFORE_FIRST_PAGE, BEFORE_FIRST_ROW
 
Constructor Summary
PostReportInitializedState(ReportState clone)
          Constructs a ReportState from an existing ReportState.
 
Method Summary
 ReportState advance()
          The advance method performs a transition from the current report state to the next report state.
 boolean isPrefetchState()
          Returns the corrected display item for this state.
 
Methods inherited from class org.jfree.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, getDataRowPreview, getErrors, getFunctions, getLevel, getLevels, getNumberOfRows, getProperties, getProperty, getProperty, getReport, getReportDefinition, isAncestor, isErrorOccured, isFinish, isLastItemInGroup, isPrepareRun, isProceeding, isStart, leaveGroup, nextPage, resetState, setAncestorHashcode, setCurrentGroupIndex, setCurrentItem, setCurrentPage, setProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostReportInitializedState

public PostReportInitializedState(ReportState clone)
Constructs a ReportState from an existing ReportState.

Parameters:
clone - the existing state.
Method Detail

advance

public ReportState advance()
                    throws ReportProcessingException
The advance method performs a transition from the current report state to the next report state. Each transition will usually involve some processing of the report.

Specified by:
advance in class ReportState
Returns:
the next report state.
Throws:
ReportProcessingException - if there is a problem processing the report.

isPrefetchState

public boolean isPrefetchState()
Returns the corrected display item for this state. As the currentItem has not yet advanced we perform a readAHead lookup when populating elements.

Overrides:
isPrefetchState in class ReportState
Returns:
true; Header related states preview the next itemband DataRow.