com.jrefinery.report.states
Class PreGroupHeaderState

java.lang.Object
  extended bycom.jrefinery.report.states.ReportState
      extended bycom.jrefinery.report.states.PreGroupHeaderState
All Implemented Interfaces:
java.lang.Cloneable, JFreeReportConstants

public final class PreGroupHeaderState
extends ReportState

Processes an groupheader. Activates the next group and fires the GroupStartEvent for that group. then the PostGroupHeaderState-State gets activated.

Author:
David Gilbert

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
PreGroupHeaderState(ReportState previous)
          Creates a new 'PRE-GROUP-HEADER' state.
 
Method Summary
 ReportState advance()
          Advances from this state to the 'POST-GROUP-HEADER' state after fireing the GroupStartedEvent.
 boolean isPrefetchState()
          Returns the corrected display item for this state.
 
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, 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

PreGroupHeaderState

public PreGroupHeaderState(ReportState previous)
Creates a new 'PRE-GROUP-HEADER' state.

Parameters:
previous - the previous state.
Method Detail

advance

public ReportState advance()
Advances from this state to the 'POST-GROUP-HEADER' state after fireing the GroupStartedEvent.

Specified by:
advance in class ReportState
Returns:
the next state ('POST-GROUP-HEADER').

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.