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
-
-
Constructor Summary
Constructors Constructor Description PageState(ProcessState reportState, int pageCursor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPageCursor()
ProcessState
getReportState()
boolean
isSafeToStoreEarly()
Tests whether this state can be saved during the pagination stage.void
prepareStorage()
-
-
-
Constructor Detail
-
PageState
public PageState(ProcessState reportState, int pageCursor)
-
-
Method Detail
-
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.
-
-