org.pentaho.reporting.engine.classic.core.layout.output
Class PageState

java.lang.Object
  extended by 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
PageState(ProcessState reportState, int pageCursor)
           
 
Method Summary
 int getPageCursor()
           
 ProcessState getReportState()
           
 boolean isSafeToStoreEarly()
          Tests whether this state can be saved during the pagination stage.
 void prepareStorage()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.