org.pentaho.reporting.engine.classic.core.layout.output
Class PageState
java.lang.Object
org.pentaho.reporting.engine.classic.core.layout.output.PageState
- All Implemented Interfaces:
- Serializable
public class PageState
- extends Object
- implements Serializable
A page state hold a process state along with its current page counter. This is used to save the report state
to allow faster pagination later on.
- Author:
- Thomas Morgner
- See Also:
- Serialized Form
PageState
public PageState(ProcessState reportState,
int pageCursor)
getPageCursor
public int getPageCursor()
getReportState
public ProcessState getReportState()
prepareStorage
public void prepareStorage()
isSafeToStoreEarly
public boolean isSafeToStoreEarly()
- Tests whether this state can be saved during the pagination stage. This only returns true if there are
no inline-subreports processed in the current state.
- Returns:
- true, if this is a valid safe-state, false otherwise.