org.jfree.report.states
Class FinishState

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

public final class FinishState
extends ReportState

The report is done. No advance will be done, every call to advance will throw an ReportProcessingException.

Author:
David Gilbert

Field Summary
 
Fields inherited from class org.jfree.report.states.ReportState
BEFORE_FIRST_GROUP, BEFORE_FIRST_PAGE, BEFORE_FIRST_ROW
 
Constructor Summary
FinishState(ReportState previous)
          Creates a new 'finish' report state.
 
Method Summary
 ReportState advance()
          Normally, this method would perform a transition to the next state, but since this is the final state there is nowhere to go, so a ReportProcessingException is thrown.
 boolean isFinish()
          Returns true, to indicate that this is the 'finish' 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, isLastItemInGroup, isPrefetchState, 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

FinishState

public FinishState(ReportState previous)
Creates a new 'finish' report state.

Parameters:
previous - the previous state.
Method Detail

advance

public ReportState advance()
                    throws ReportProcessingException
Normally, this method would perform a transition to the next state, but since this is the final state there is nowhere to go, so a ReportProcessingException is thrown.

Specified by:
advance in class ReportState
Returns:
nothing, since a ReportProcessingException is thrown before the method returns.
Throws:
ReportProcessingException - to indicate that it is not possible to advance to another state from the finish state.

isFinish

public boolean isFinish()
Returns true, to indicate that this is the 'finish' state.

Overrides:
isFinish in class ReportState
Returns:
true, as this report is done and will no longer advance.