protected ReportState restoreState(int count,
ReportState rootstate) throws ReportProcessingException {
if (rootstate == null)
{
throw new NullPointerException("Master is null");
}
ReportState state = rootstate;
ReportStateProgress progress = null;
for (int i = 0; i < = count; i++)
{
progress = state.createStateProgress(progress);
state = master.getReportProcessor().processPage(state, master.getDummyWriter());
set(state, i + 1);
if (state.isFinish())
{
return state;
}
if (state.isProceeding(progress) == false)
{
return null;
}
}
return state;
}
Internal handler function restore a state. Count denotes the number of pages required
to be processed to restore the page, when the reportstate master is used as source element. |