org.jfree.report.states
Class InItemGroupState
java.lang.Object
org.jfree.report.states.ReportState
org.jfree.report.states.InItemGroupState
- All Implemented Interfaces:
- java.lang.Cloneable
- public final class InItemGroupState
- extends ReportState
Prints the itemBand. Before the band is printed, the items are advanced and the next
data row gets activated. Before any row has been read, the currentItem state is
BEFORE_FIRST_ITEM, comparable to ResultSet.isBeforeFirst () in java.sql.ResultSet.
After the item has advanced the elements are populated and an
itemsAdvancedEvent is fired.
If the activated Item is the last item in its group, the next state will be an
PostItemGroupHeader. In the other case, the current state remains this ItemsAdvanced state.
- Author:
- David Gilbert
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, 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 |
InItemGroupState
public InItemGroupState(ReportState previous)
- Creates a new '
IN-ITEM-GROUP
' state.
- Parameters:
previous
- the previous state.
advance
public ReportState advance()
throws ReportProcessingException
- Advances from this state to the next.
- Specified by:
advance
in class ReportState
- Returns:
- the next state.
- Throws:
ReportProcessingException
- if there is a problem processing the report.