// Only if pagination is active ..
final PageGrid pageGrid = logicalPage.getPageGrid();
final int rowCount = pageGrid.getRowCount();
final int colCount = pageGrid.getColumnCount();
final LogicalPageKey key = createLogicalPage(colCount, rowCount);
final int pageCursor = getPageCursor();
if (key.getPosition() != pageCursor)
{
throw new IllegalStateException("Expected position " + pageCursor + " is not the key's position " + key.getPosition());
}
setPageCursor(pageCursor + 1);
return;
}
// thats the real stuff ..
if (isContentGeneratable())
{
final int pageCursor = getPageCursor();
final LogicalPageKey logicalPageKey = getLogicalPage(pageCursor);
processPageContent(logicalPageKey, logicalPage);
setPageCursor(pageCursor + 1);
}
}